# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=528

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 529

---

## [Help with splitting cell](https://discourse.processing.org/t/help-with-splitting-cell/7726)

<div class="topic-metadata">

**Author:** [@nielsKoel](https://discourse.processing.org/u/nielsKoel)\
**Replies:** 3\
**Last updated:** [February 3, 2019, 6:01pm UTC](https://discourse.processing.org/t/help-with-splitting-cell/7726 "2019-02-03T18:01:33Z")

</div>

Hi everyone! I’ve been stuck for a while on this sketch and hope to get some help. What I’m trying to achieve is to create a grid cells (I’ll start my sketch with 4 cells). If clicked, each cell will split into 4 new ce…

---

## [How to make an object smoothly transition to a new location?](https://discourse.processing.org/t/how-to-make-an-object-smoothly-transition-to-a-new-location/7980)

<div class="topic-metadata">

**Author:** [@kirkpatrick876](https://discourse.processing.org/u/kirkpatrick876)\
**Replies:** 3\
**Last updated:** [February 3, 2019, 5:55pm UTC](https://discourse.processing.org/t/how-to-make-an-object-smoothly-transition-to-a-new-location/7980 "2019-02-03T17:55:48Z")

</div>

Hello I am trying to make a program in which an ellipse is redrawn at any point in the canvas where the mouse is clicked, although I am stuck on one problem. I am trying to get the ellipse to move smoothly from point A (…

---

## [Showing variable value + text in one single line](https://discourse.processing.org/t/showing-variable-value-text-in-one-single-line/8041)

<div class="topic-metadata">

**Author:** [@Cas](https://discourse.processing.org/u/Cas)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 5:55pm UTC](https://discourse.processing.org/t/showing-variable-value-text-in-one-single-line/8041 "2019-02-03T17:55:02Z")

</div>

Hello, In arduino I’m sending the following: Serial.println(float(mlGeschonkenTotaal/1000),1); This is a results in a number like 0.1 which increases which 0.1 over time. In processing I would like to draw this …

---

## [Angular object models](https://discourse.processing.org/t/angular-object-models/8028)

<div class="topic-metadata">

**Author:** [@domedisorder](https://discourse.processing.org/u/domedisorder)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 5:54pm UTC](https://discourse.processing.org/t/angular-object-models/8028 "2019-02-03T17:54:43Z")

</div>

I’d like to create a model for the objects I’m drawing but I’m struggling with how to do that in Angular. I know p5 methods aren’t recognized outside of specific functions but that seems to be what I need to do here? I’…

---

## [How to fill with HEX color in p5.js](https://discourse.processing.org/t/how-to-fill-with-hex-color-in-p5-js/8048)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 4\
**Last updated:** [February 3, 2019, 5:31pm UTC](https://discourse.processing.org/t/how-to-fill-with-hex-color-in-p5-js/8048 "2019-02-03T17:31:56Z")

</div>

I intend to fill shape with hex color because I’ll use a GUI to allow users to pick color and dat.gui returns a hex value. The two methods I attempted is either to use red(), green(), blue() on the color or use a hex2tg…

---

## [Resizing p5.Graphics](https://discourse.processing.org/t/resizing-p5-graphics/8068)

<div class="topic-metadata">

**Author:** [@marksan](https://discourse.processing.org/u/marksan)\
**Replies:** 9\
**Last updated:** [February 3, 2019, 2:41pm UTC](https://discourse.processing.org/t/resizing-p5-graphics/8068 "2019-02-03T14:41:41Z")

</div>

Hi all , I have a use case in which I draw few small dots ( graphics.ellipse(…) ) on p5.graphics ( for efficiency purpose ) . now on resizing the window I want to resize the graphics along with it’s content ( those smal…

---

## [My multiplayer .io game made with p5.js](https://discourse.processing.org/t/my-multiplayer-io-game-made-with-p5-js/8073)

<div class="topic-metadata">

**Author:** [@Extension\_Shoe](https://discourse.processing.org/u/Extension_Shoe)\
**Replies:** 0\
**Last updated:** [February 3, 2019, 1:57pm UTC](https://discourse.processing.org/t/my-multiplayer-io-game-made-with-p5-js/8073 "2019-02-03T13:57:13Z")

</div>

Hello everyone I recently started to build another game with p5.js and I wanted to share my progress with you here I will be posting to this thread as the the progresses (If I don’t forget to do so…) Here is the link t…

---

## [Class/Object as a PVector for Kinect repelling](https://discourse.processing.org/t/class-object-as-a-pvector-for-kinect-repelling/7966)

<div class="topic-metadata">

**Author:** [@wewantwok](https://discourse.processing.org/u/wewantwok)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 12:07pm UTC](https://discourse.processing.org/t/class-object-as-a-pvector-for-kinect-repelling/7966 "2019-02-03T12:07:21Z")

</div>

Hi! First time posting on here. I’m writing a Sketch for a Kinect camera to make an attractor/repeller for some particles. I started out with an attraction/repelling tutorial from Daniel Shiffmann and tried to combine …

---

## [PImage pixel array is an array of ints](https://discourse.processing.org/t/pimage-pixel-array-is-an-array-of-ints/8064)

<div class="topic-metadata">

**Author:** [@mchangxe](https://discourse.processing.org/u/mchangxe)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 8:37am UTC](https://discourse.processing.org/t/pimage-pixel-array-is-an-array-of-ints/8064 "2019-02-03T08:37:28Z")

</div>

im loading a jpg image and displaying the underlying pixel array. The picture has the same amount of pixels as the canvas, which is 438 x 1200. However when printing out the contents of the canvas’ pixel variable and t…

---

## [What is right method to pass led info from processing to arduino](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010)

<div class="topic-metadata">

**Author:** [@angelman](https://discourse.processing.org/u/angelman)\
**Replies:** 15\
**Last updated:** [February 2, 2019, 11:48pm UTC](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010 "2019-02-02T23:48:55Z")

</div>

I am just a beginner. This my processing code; stil lhave a little trouble with the clear part of the input function . but main thing is the arduino write.out. My arduino code works. with the serial port. The processing…

---

## [Save and load string from text file](https://discourse.processing.org/t/save-and-load-string-from-text-file/7994)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 16\
**Last updated:** [February 2, 2019, 7:23pm UTC](https://discourse.processing.org/t/save-and-load-string-from-text-file/7994 "2019-02-02T19:23:36Z")

</div>

I’m trying to use loadString() and saveString() and convert the string to int and the other way around. But I get the errors "Type mismatch, “java.lang.String” does not match with “java.lang.String” on String loadHig…

---

## [How to add/push a new object to array upon mouse click in p5.js](https://discourse.processing.org/t/how-to-add-push-a-new-object-to-array-upon-mouse-click-in-p5-js/8043)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 5\
**Last updated:** [February 2, 2019, 6:29pm UTC](https://discourse.processing.org/t/how-to-add-push-a-new-object-to-array-upon-mouse-click-in-p5-js/8043 "2019-02-02T18:29:36Z")

</div>

I have this code to add a new ball to the array but strangely it doesn’t work. let balls = \[\]; let num\_balls = 1; let w = 800; let h = 600; function setup() { createCanvas(w, h); for (let i = 0; i \< num\_balls; …

---

## [Processing Community Day @ London](https://discourse.processing.org/t/processing-community-day-london/3824)

<div class="topic-metadata">

**Author:** [@limzykenneth](https://discourse.processing.org/u/limzykenneth)\
**Replies:** 4\
**Last updated:** [February 2, 2019, 6:07pm UTC](https://discourse.processing.org/t/processing-community-day-london/3824 "2019-02-02T18:07:43Z")

</div>

Hi everyone! I’m starting a thread here for PCD@London 2019. We just had out first meeting (albeit over Skype) yesterday and we are all excited to get things going. We have managed to find a location and a date while n…

---

## [Drawing a rect on an p5.graphics doesnt seem to update the pixels](https://discourse.processing.org/t/drawing-a-rect-on-an-p5-graphics-doesnt-seem-to-update-the-pixels/8033)

<div class="topic-metadata">

**Author:** [@mat](https://discourse.processing.org/u/mat)\
**Replies:** 3\
**Last updated:** [February 2, 2019, 11:43am UTC](https://discourse.processing.org/t/drawing-a-rect-on-an-p5-graphics-doesnt-seem-to-update-the-pixels/8033 "2019-02-02T11:43:27Z")

</div>

the following code should change the color of the circles when you draw with your mouse, but the pixels array doesnt change at all, while the p5 graphic changes on the image(g,0,0) let g; function setup() { createC…

---

## [Processing Animation](https://discourse.processing.org/t/processing-animation/8034)

<div class="topic-metadata">

**Author:** [@Craig](https://discourse.processing.org/u/Craig)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 8:25pm UTC](https://discourse.processing.org/t/processing-animation/8034 "2019-02-01T20:25:19Z")

</div>

I just made my first animation. It’s titled Loose Leaf. While it was assembled and animated in Final Cut X, the content (floating pages) were created in processing. Graphics on the pages were algorithmically created. The…

---

## [Processing library for checkbox, combobox, Text Box, Command Button, ecc](https://discourse.processing.org/t/processing-library-for-checkbox-combobox-text-box-command-button-ecc/8022)

<div class="topic-metadata">

**Author:** [@aster](https://discourse.processing.org/u/aster)\
**Replies:** 8\
**Last updated:** [February 1, 2019, 7:48pm UTC](https://discourse.processing.org/t/processing-library-for-checkbox-combobox-text-box-command-button-ecc/8022 "2019-02-01T19:48:19Z")

</div>

Hello, Recently I have been using Visul Basic for Apllication (VBA) and I made a userForm with it. Even if i didn’t enjoyed too much VBA I fallen completely in love with the ease of use of some tools inside it, you can …

---

## [G4P & GUI Builder new versions available](https://discourse.processing.org/t/g4p-gui-builder-new-versions-available/7788)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 7\
**Last updated:** [February 1, 2019, 6:00pm UTC](https://discourse.processing.org/t/g4p-gui-builder-new-versions-available/7788 "2019-02-01T18:00:34Z")

</div>

G4P 4.2 This is an exciting release in that it allows the user to embed 2D / 3D views as PeasyCam views into the main sketch. I have described these in the previous posts GView and GViewPeasyCam. GUI Builder 4.3 This …

---

## [Toggle Text on controlP5](https://discourse.processing.org/t/toggle-text-on-controlp5/8014)

<div class="topic-metadata">

**Author:** [@Coolconor98](https://discourse.processing.org/u/Coolconor98)\
**Replies:** 2\
**Last updated:** [February 1, 2019, 5:51pm UTC](https://discourse.processing.org/t/toggle-text-on-controlp5/8014 "2019-02-01T17:51:04Z")

</div>

So I’m using a library called controlP5 for a project I’m doing. I’m making a menu where I use conrtolP5’s buttons and toggles. The buttons work fine but I’m having a problem with the toggles. The buttons have the nam…

---

## [Displaying image slows down program](https://discourse.processing.org/t/displaying-image-slows-down-program/8001)

<div class="topic-metadata">

**Author:** [@8BitRift](https://discourse.processing.org/u/8BitRift)\
**Replies:** 1\
**Last updated:** [February 1, 2019, 1:28am UTC](https://discourse.processing.org/t/displaying-image-slows-down-program/8001 "2019-02-01T01:28:38Z")

</div>

EDIT I figured out why the the program was slowing down but this has spawned a new question I have with the same title so ill just reword it. Why does rendering a copied image cripple framerate, for example: PImage ima…

---

## [Trying to make a button that switches tabs with Control P5. Currently it switches between tabs, but everything on that tab becomes unusable](https://discourse.processing.org/t/trying-to-make-a-button-that-switches-tabs-with-control-p5-currently-it-switches-between-tabs-but-everything-on-that-tab-becomes-unusable/8008)

<div class="topic-metadata">

**Author:** [@ryan123rudder](https://discourse.processing.org/u/ryan123rudder)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 11:51pm UTC](https://discourse.processing.org/t/trying-to-make-a-button-that-switches-tabs-with-control-p5-currently-it-switches-between-tabs-but-everything-on-that-tab-becomes-unusable/8008 "2019-01-31T23:51:26Z")

</div>

I need a button on one page that switches to another tab. This would be in addition to the original tab button. With great difficulty, I have it in such a state that it switches to the right tab, but it makes everything …

---

## [How to make my Android Game compatible with all screen sizes](https://discourse.processing.org/t/how-to-make-my-android-game-compatible-with-all-screen-sizes/8004)

<div class="topic-metadata">

**Author:** [@Alexander](https://discourse.processing.org/u/Alexander)\
**Replies:** 7\
**Last updated:** [January 31, 2019, 9:49pm UTC](https://discourse.processing.org/t/how-to-make-my-android-game-compatible-with-all-screen-sizes/8004 "2019-01-31T21:49:53Z")

</div>

Hello guys, i have a big problem. I am almost ready to publish my first game in google play, but i cannot figure out how to make the app compatible with all the different sizes of screens (1280x720, 1920x1080 etc.) . Her…

---

## [Help needed to create irregular circles](https://discourse.processing.org/t/help-needed-to-create-irregular-circles/7897)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 8:39pm UTC](https://discourse.processing.org/t/help-needed-to-create-irregular-circles/7897 "2019-01-31T20:39:09Z")

</div>

I intend to create irregular circles like this but unsure how to get smooth noisy lines in circular manner. function setup() { createCanvas(600, 600); background(255); angleMode(DEGREES); } function draw() { …

---

## [Has anyone tried Py4J with Processing (Java) app?](https://discourse.processing.org/t/has-anyone-tried-py4j-with-processing-java-app/7218)

<div class="topic-metadata">

**Author:** [@HartzaQ](https://discourse.processing.org/u/HartzaQ)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 2:17pm UTC](https://discourse.processing.org/t/has-anyone-tried-py4j-with-processing-java-app/7218 "2019-01-31T14:17:24Z")

</div>

It seems that it’s be possible to hook Python interpreter with a Java app with Py4J. Based on the example at Py4j webpage, I cannot see why it wouldn’t work with Processing app, but has anyone tried it? Reason why I’m i…

---

## [Processing meetup in UK midlands?](https://discourse.processing.org/t/processing-meetup-in-uk-midlands/7670)

<div class="topic-metadata">

**Author:** [@seanzshow](https://discourse.processing.org/u/seanzshow)\
**Replies:** 2\
**Last updated:** [January 31, 2019, 1:12pm UTC](https://discourse.processing.org/t/processing-meetup-in-uk-midlands/7670 "2019-01-31T13:12:17Z")

</div>

Hi, I am fairly new to processing and was wondering if there are any regular meetups in the UK (midlands preferably but I can travel) or alternatively if there might be interest in one. We have a venue where we run regu…

---

## [G4P: How can I make text inside editText field be Capital letter?](https://discourse.processing.org/t/g4p-how-can-i-make-text-inside-edittext-field-be-capital-letter/7984)

<div class="topic-metadata">

**Author:** [@sagagt505](https://discourse.processing.org/u/sagagt505)\
**Replies:** 3\
**Last updated:** [January 31, 2019, 9:06am UTC](https://discourse.processing.org/t/g4p-how-can-i-make-text-inside-edittext-field-be-capital-letter/7984 "2019-01-31T09:06:59Z")

</div>

Hello, I finally make some input field to insert my data but I need my text inside input field shows the only capital letter. No matter I input the text with a capital letter or not. Example: If I want to type text “hi”…

---

## [Call for artists - Amsterdam JSnation Exhibition](https://discourse.processing.org/t/call-for-artists-amsterdam-jsnation-exhibition/7985)

<div class="topic-metadata">

**Author:** [@EnriqueAG](https://discourse.processing.org/u/EnriqueAG)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 8:28am UTC](https://discourse.processing.org/t/call-for-artists-amsterdam-jsnation-exhibition/7985 "2019-01-31T08:28:45Z")

</div>

Hey everyone! We’re looking for gifs and images to exhibit in our conference. Submit any of your masterpieces, moving or still image are accepted! The only condition is that the pieces use Javascript in any way or shape…

---

## [Issue with reading Arduino Port](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846)

<div class="topic-metadata">

**Author:** [@Ryan12](https://discourse.processing.org/u/Ryan12)\
**Replies:** 14\
**Last updated:** [January 30, 2019, 11:55pm UTC](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846 "2019-01-30T23:55:31Z")

</div>

I have a phototransistor and an LED, when I test in Arduino I do get readings from the phototransistor, but when trying to get the same readings in Processing I just get continuous 0’s. Can any one help? I’ve placed the …

---

## [Masking an Image](https://discourse.processing.org/t/masking-an-image/7952)

<div class="topic-metadata">

**Author:** [@analog](https://discourse.processing.org/u/analog)\
**Replies:** 3\
**Last updated:** [January 30, 2019, 11:46pm UTC](https://discourse.processing.org/t/masking-an-image/7952 "2019-01-30T23:46:25Z")

</div>

I’m just trying to create a simple graphic and then mask off part of it. This works if I replace the createdGraphic with just an image, but for some reason, when using createGraphic and then saving off an image, it will…

---

## [NURBS surface with Toxiclibs](https://discourse.processing.org/t/nurbs-surface-with-toxiclibs/7747)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 9:58pm UTC](https://discourse.processing.org/t/nurbs-surface-with-toxiclibs/7747 "2019-01-30T21:58:38Z")

</div>

Hi all, I’m desperately trying to create a nurbs surface using the toxiclibs library. Because of the missing Java doc and also because of the complete lack of related example on the web I contacted Karsten Schmidt abou…

---

## [\[SOLVED\] Instantiating a particular class constructor using reflection](https://discourse.processing.org/t/solved-instantiating-a-particular-class-constructor-using-reflection/7968)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 22\
**Last updated:** [January 30, 2019, 9:46pm UTC](https://discourse.processing.org/t/solved-instantiating-a-particular-class-constructor-using-reflection/7968 "2019-01-30T21:46:50Z")

</div>

Hello again, oh great Java gurus! :star\_struck: I find myself having to instantiate a class from a string using one of its particular constructors. The api for getDeclaredConstructors() indicates this is possible, but t…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=527)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=529)
