# Latest

**URL:** https://discourse.processing.org/latest.md?page=485

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

**Page:** 486

---

## [Need help with an Arduino program](https://discourse.processing.org/t/need-help-with-an-arduino-program/11306)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 4\
**Last updated:** [May 17, 2019, 1:40am UTC](https://discourse.processing.org/t/need-help-with-an-arduino-program/11306 "2019-05-17T01:40:13Z")

</div>

My goal is to write a processing program that turns an LED on or off whenever a “button” (drawn on the screen), is clicked with the mouse. int circleX, circleY; int circleSize = 93; color circleColor, baseColor; c…

---

## [How do I stop an if-statement from carrying over to the next function](https://discourse.processing.org/t/how-do-i-stop-an-if-statement-from-carrying-over-to-the-next-function/11309)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 6\
**Last updated:** [May 16, 2019, 8:46pm UTC](https://discourse.processing.org/t/how-do-i-stop-an-if-statement-from-carrying-over-to-the-next-function/11309 "2019-05-16T20:46:14Z")

</div>

I would like the ball to bounce along the x-axis; the donut to bounce along the y-axis. Currently the ball movement is fine. The donut movement is following the if-statement for the ball as well as the donut. How do I…

---

## [LerpColor seamless motion](https://discourse.processing.org/t/lerpcolor-seamless-motion/11303)

<div class="topic-metadata">

**Author:** [@ale.moso](https://discourse.processing.org/u/ale.moso)\
**Replies:** 6\
**Last updated:** [May 16, 2019, 6:24pm UTC](https://discourse.processing.org/t/lerpcolor-seamless-motion/11303 "2019-05-16T18:24:46Z")

</div>

Hi dear community, I want to made gradients where colors move from one to another constantly changing but whitout a blink like a flow of colors. Any ideas in how acomplish this? Many thanks

---

## [Softkey & EditText](https://discourse.processing.org/t/softkey-edittext/11129)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 29\
**Last updated:** [May 16, 2019, 3:48pm UTC](https://discourse.processing.org/t/softkey-edittext/11129 "2019-05-16T15:48:15Z")

</div>

Hi, sorry for the “idiots guide to the universe” type of question, just grant me the newbie status… I want to create a softkey and upon mouse click on it a 5 digit editable number field/widget?) should allow me to ente…

---

## [Travelling trees](https://discourse.processing.org/t/travelling-trees/11226)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [May 16, 2019, 3:01pm UTC](https://discourse.processing.org/t/travelling-trees/11226 "2019-05-16T15:01:02Z")

</div>

Hi all, https://editor.p5js.org/paulgoux/sketches/NyWLGYBof I have made a program, which generates mazes, and I’m stuck when trying to count the steps from node to node. To be clear, I can generate the nodes, but I can…

---

## [Outputting video/gif](https://discourse.processing.org/t/outputting-video-gif/11301)

<div class="topic-metadata">

**Author:** [@Avatrin](https://discourse.processing.org/u/Avatrin)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 11:29am UTC](https://discourse.processing.org/t/outputting-video-gif/11301 "2019-05-16T11:29:30Z")

</div>

Hi I have an animation which run in Processing.py. How can I output a video of the, lets say, first n seconds of that animation? I would prefer a gif, but any format would do.

---

## [serialEvent out of bounds error](https://discourse.processing.org/t/serialevent-out-of-bounds-error/11272)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 10:28am UTC](https://discourse.processing.org/t/serialevent-out-of-bounds-error/11272 "2019-05-16T10:28:36Z")

</div>

Below is the function causing the exception, followed by the error message. This HAD been working - not sure what I’ve done differently to ‘break’ it. Any ideas where to start looking? =A. void serialEvent(Serial com…

---

## [Rotating entire space before animation](https://discourse.processing.org/t/rotating-entire-space-before-animation/11174)

<div class="topic-metadata">

**Author:** [@Avatrin](https://discourse.processing.org/u/Avatrin)\
**Replies:** 12\
**Last updated:** [May 16, 2019, 9:04am UTC](https://discourse.processing.org/t/rotating-entire-space-before-animation/11174 "2019-05-16T09:04:57Z")

</div>

Hi Look at the three dimensional animation here: https://p5js.org/reference/#/p5/applyMatrix Lets say I want it to rotate the opposite direction. However, instead of just changing the signs of the existing matrix, I w…

---

## [Sending and saving multiple values from Arduino to Processing](https://discourse.processing.org/t/sending-and-saving-multiple-values-from-arduino-to-processing/11299)

<div class="topic-metadata">

**Author:** [@skmr](https://discourse.processing.org/u/skmr)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 9:13am UTC](https://discourse.processing.org/t/sending-and-saving-multiple-values-from-arduino-to-processing/11299 "2019-05-16T09:13:08Z")

</div>

Hi, I’m new to coding with processing, so apologies in advance for rookie mistakes. I’m working on a project where I’m collectiog multiple orientation angles from 2 BNO055 sensors using Arduino. The idea is to create a…

---

## [How to take control and/or remove the cursor?](https://discourse.processing.org/t/how-to-take-control-and-or-remove-the-cursor/11258)

<div class="topic-metadata">

**Author:** [@2000mater](https://discourse.processing.org/u/2000mater)\
**Replies:** 3\
**Last updated:** [May 16, 2019, 8:15am UTC](https://discourse.processing.org/t/how-to-take-control-and-or-remove-the-cursor/11258 "2019-05-16T08:15:11Z")

</div>

Is there a way to ‘listen to’ where the mouse wanted to move even if there is no place for it? Basically telling the program the same data the touchpad or mouse would give the device. I’ve seen cases where the page aske…

---

## [\[SOLVED\] Adding createButton() causes an error](https://discourse.processing.org/t/solved-adding-createbutton-causes-an-error/11296)

<div class="topic-metadata">

**Author:** [@akathewb](https://discourse.processing.org/u/akathewb)\
**Replies:** 1\
**Last updated:** [May 16, 2019, 5:37am UTC](https://discourse.processing.org/t/solved-adding-createbutton-causes-an-error/11296 "2019-05-16T05:37:41Z")

</div>

Error: Uncaught ReferenceError: createButton is not defined Things I’ve tried to fix: I tried replacing the script tag to the CDN version of p5 8.0 thinking maybe I was not using the latest code base, but this did no…

---

## [Is possible use different layer for the axes on chart?](https://discourse.processing.org/t/is-possible-use-different-layer-for-the-axes-on-chart/11150)

<div class="topic-metadata">

**Author:** [@dondu](https://discourse.processing.org/u/dondu)\
**Replies:** 8\
**Last updated:** [May 16, 2019, 5:15am UTC](https://discourse.processing.org/t/is-possible-use-different-layer-for-the-axes-on-chart/11150 "2019-05-16T05:15:44Z")

</div>

Hello, I’m just starting with Processing to process data from serial port. I want to show animated data on chart something like the chart below. Is possible use different layer for the axes and scale lines on chart? …

---

## [Music loop with minim library](https://discourse.processing.org/t/music-loop-with-minim-library/11163)

<div class="topic-metadata">

**Author:** [@yonjukyu](https://discourse.processing.org/u/yonjukyu)\
**Replies:** 1\
**Last updated:** [May 16, 2019, 4:59am UTC](https://discourse.processing.org/t/music-loop-with-minim-library/11163 "2019-05-16T04:59:37Z")

</div>

Hello. I want to make a loop with my music, like when she stop she start again. i’m using the minim library. here is my code. import ddf.minim.\*; Minim minim; AudioSnippet son\_musique; void setup(){ minim = new Mi…

---

## [Can GameControlPlus send data TO device?](https://discourse.processing.org/t/can-gamecontrolplus-send-data-to-device/11275)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 9\
**Last updated:** [May 16, 2019, 1:34am UTC](https://discourse.processing.org/t/can-gamecontrolplus-send-data-to-device/11275 "2019-05-16T01:34:41Z")

</div>

I am using @Quark’s SUPER GameControlPlus to have a custom joystick (using an Arduino Micro) to send to Processing. And it is working great! When the joystick fire button is pressed this may or may not start an event i…

---

## [Request for guidance:- Making 3D objects appear static on a webcam feed using arduino & an IMU:](https://discourse.processing.org/t/request-for-guidance-making-3d-objects-appear-static-on-a-webcam-feed-using-arduino-an-imu/10902)

<div class="topic-metadata">

**Author:** [@moh\_maya](https://discourse.processing.org/u/moh_maya)\
**Replies:** 28\
**Last updated:** [May 15, 2019, 11:05pm UTC](https://discourse.processing.org/t/request-for-guidance-making-3d-objects-appear-static-on-a-webcam-feed-using-arduino-an-imu/10902 "2019-05-15T23:05:01Z")

</div>

Request for guidance:- Making 3D objects appear static on a webcam feed using arduino & an IMU: Is this possible? Hello, I’m new to processing (but have some coding experience in python & java / android). I am trying t…

---

## [Need help with arduino program](https://discourse.processing.org/t/need-help-with-arduino-program/11287)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 10:01pm UTC](https://discourse.processing.org/t/need-help-with-arduino-program/11287 "2019-05-15T22:01:56Z")

</div>

so i was asked to make a Processing program that simulates an RGB LED changing through the color spectrum. Prompt the user for a speed when your program starts. The larger the speed value, the quicker your RGB LED will c…

---

## [Calculation for variables in D. Shiffman book "Learning Processing"](https://discourse.processing.org/t/calculation-for-variables-in-d-shiffman-book-learning-processing/11286)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 9:29pm UTC](https://discourse.processing.org/t/calculation-for-variables-in-d-shiffman-book-learning-processing/11286 "2019-05-15T21:29:35Z")

</div>

I’m trying to get a better understanding on how Dan Shiffman drew his raindrop shape via the variables below AND the starting y position. Any help is most appreciated! Text in bold placed next to the 3 areas in questio…

---

## [Converting from java to p5js, not working as intended](https://discourse.processing.org/t/converting-from-java-to-p5js-not-working-as-intended/11179)

<div class="topic-metadata">

**Author:** [@dakito](https://discourse.processing.org/u/dakito)\
**Replies:** 9\
**Last updated:** [May 15, 2019, 8:52pm UTC](https://discourse.processing.org/t/converting-from-java-to-p5js-not-working-as-intended/11179 "2019-05-15T20:52:35Z")

</div>

Just like the title says, I have absolutely no idea on what I am supposed to change. I fixed all error messages, replaced variable statements, changed the functions that I know I need to change. I am mostly a newbie to p…

---

## [Unsigned types and cast](https://discourse.processing.org/t/unsigned-types-and-cast/11285)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 8:42pm UTC](https://discourse.processing.org/t/unsigned-types-and-cast/11285 "2019-05-15T20:42:25Z")

</div>

Hi, is there anything like unsigned, e.g. unsigned int? … or how to treat numbers which would after conversion long -\> int normally fall into minus?? Is there anything like cast e.g. int COG = (int) location.getBear…

---

## [NullPointerException with objects](https://discourse.processing.org/t/nullpointerexception-with-objects/11280)

<div class="topic-metadata">

**Author:** [@DoubleTony](https://discourse.processing.org/u/DoubleTony)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 4:43pm UTC](https://discourse.processing.org/t/nullpointerexception-with-objects/11280 "2019-05-15T16:43:23Z")

</div>

Hi I’m creating a random maze generator but it doesn’t seem to generate the cells that make up the maze and I get a NullPointerException when I try to access the cells to give them the position of the vertices, I ask for…

---

## [Animating masks P5.js](https://discourse.processing.org/t/animating-masks-p5-js/11271)

<div class="topic-metadata">

**Author:** [@Hobie](https://discourse.processing.org/u/Hobie)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 3:39pm UTC](https://discourse.processing.org/t/animating-masks-p5-js/11271 "2019-05-15T15:39:40Z")

</div>

Hello, For my thesis i’m researching generative design for online advertisements. I have been working with P5 to generate background visuals for SEAT. (this is a fictional case). I want to animate masks to display cert…

---

## [Receiving data from Arduino](https://discourse.processing.org/t/receiving-data-from-arduino/11239)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 2:58pm UTC](https://discourse.processing.org/t/receiving-data-from-arduino/11239 "2019-05-15T14:58:11Z")

</div>

HI! I’am having problem with my code, iam able to read the data, on arduino serial its fine but on Processing its too much slow, i dont have a clue about whats going on. void recebeData(){ if(myPort.available()\>0){ …

---

## [Problem with procesing in game](https://discourse.processing.org/t/problem-with-procesing-in-game/11265)

<div class="topic-metadata">

**Author:** [@Garcia](https://discourse.processing.org/u/Garcia)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 2:56pm UTC](https://discourse.processing.org/t/problem-with-procesing-in-game/11265 "2019-05-15T14:56:09Z")

</div>

Hey guys! I have a little problem. I’m making a game for classes. It’s similar to Space Invaders. So when i’m press \<- (to left) and -\> (to right), sometimes it takes to move. Does anyone have a solution? My code fo…

---

## [How do I bounce all the balls?](https://discourse.processing.org/t/how-do-i-bounce-all-the-balls/11225)

<div class="topic-metadata">

**Author:** [@tai](https://discourse.processing.org/u/tai)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 2:21pm UTC](https://discourse.processing.org/t/how-do-i-bounce-all-the-balls/11225 "2019-05-15T14:21:54Z")

</div>

Nice to meet you. Use this site for the first time. I am worried about not doing anything rude. I want you to help. I want all the balls to bounce the wall. However, only one ball bounces the wall. Please tell me h…

---

## [Ayuda para realizar un programa](https://discourse.processing.org/t/ayuda-para-realizar-un-programa/11276)

<div class="topic-metadata">

**Author:** [@irenefrontela](https://discourse.processing.org/u/irenefrontela)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 2:18pm UTC](https://discourse.processing.org/t/ayuda-para-realizar-un-programa/11276 "2019-05-15T14:18:15Z")

</div>

Hola! Podría alguien decirme cómo puedo llevar a cabo el siguiente programa en processing: “Escribe un programa que cree una bola en movimiento. Cada vez que toque una pared se deberá crear a su vez una bola nueva con u…

---

## [Launch() function on win10 + Processing 3](https://discourse.processing.org/t/launch-function-on-win10-processing-3/11273)

<div class="topic-metadata">

**Author:** [@mar](https://discourse.processing.org/u/mar)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 2:05pm UTC](https://discourse.processing.org/t/launch-function-on-win10-processing-3/11273 "2019-05-15T14:05:27Z")

</div>

Hello, I’m trying to use the launch() function to run an .exe developed and exported for win 10 but it do not works. It have worked well on mac. Either the exec() function do not works on win10. I’ve tried more path po…

---

## [P5js Music Loop Crash](https://discourse.processing.org/t/p5js-music-loop-crash/11250)

<div class="topic-metadata">

**Author:** [@mcldad1901](https://discourse.processing.org/u/mcldad1901)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 12:30pm UTC](https://discourse.processing.org/t/p5js-music-loop-crash/11250 "2019-05-15T12:30:43Z")

</div>

So, I have just start JS this year for my uni course (diploma), we have been tasked to build a simple game that includes arrays, images, sound, objects, etc. That is why the code may be all over the place, as we must inc…

---

## [Open Pixel Control over Wifi for stage design help! sketch freezing!](https://discourse.processing.org/t/open-pixel-control-over-wifi-for-stage-design-help-sketch-freezing/11267)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 11:27am UTC](https://discourse.processing.org/t/open-pixel-control-over-wifi-for-stage-design-help-sketch-freezing/11267 "2019-05-15T11:27:15Z")

</div>

hiya so I’m using Processing with Open Pixel Control to control 10 Feather M0’s over wifi. each M0 has 1 to 3 different strands of NeoPixels. Its for a touring band and all of these neopixels are built into their clothin…

---

## [\[resolved\] Bootstrap and p5 invisble canvas in jumbotron](https://discourse.processing.org/t/resolved-bootstrap-and-p5-invisble-canvas-in-jumbotron/11256)

<div class="topic-metadata">

**Author:** [@Valoute\_GS](https://discourse.processing.org/u/Valoute_GS)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 9:47am UTC](https://discourse.processing.org/t/resolved-bootstrap-and-p5-invisble-canvas-in-jumbotron/11256 "2019-05-15T09:47:34Z")

</div>

Hello, I’ve got a small problem, I was trying the bootstrap and p5 exemple here and it works great, but not when I try it localy. I’ve make some modification (path to the sketch) and simplify but the code but nothing wo…

---

## [Tip: Do NOT addEventListener to draw()](https://discourse.processing.org/t/tip-do-not-addeventlistener-to-draw/8462)

<div class="topic-metadata">

**Author:** [@2000mater](https://discourse.processing.org/u/2000mater)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 9:31am UTC](https://discourse.processing.org/t/tip-do-not-addeventlistener-to-draw/8462 "2019-05-15T09:31:41Z")

</div>

I don’t know if I have permission to leave tips but as a beginner I made the mistake of assuming an event listener works like keyIsDown(). As it turns out it doesn’t. I struggled so much with my framerate before finally …

[Previous page](https://discourse.processing.org/latest.md?page=484)

[Next page](https://discourse.processing.org/latest.md?page=486)
