# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=260

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

**Page:** 261

---

## [How to get objects to start moving again after collision](https://discourse.processing.org/t/how-to-get-objects-to-start-moving-again-after-collision/15399)

<div class="topic-metadata">

**Author:** [@Lane](https://discourse.processing.org/u/Lane)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 6:53am UTC](https://discourse.processing.org/t/how-to-get-objects-to-start-moving-again-after-collision/15399 "2019-11-11T06:53:36Z")

</div>

Hi! I have 2 cats that float around until they stop when they come into contact with each other, which I called catFight();. I want them to start floating around again normally every time ‘m’ is pressed. I’m new so proce…

---

## [How to plot multiple graphs in one plot?](https://discourse.processing.org/t/how-to-plot-multiple-graphs-in-one-plot/15392)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 5\
**Last updated:** [November 11, 2019, 6:32am UTC](https://discourse.processing.org/t/how-to-plot-multiple-graphs-in-one-plot/15392 "2019-11-11T06:32:40Z")

</div>

I need to plot multiple graphs in a single plot in real-time. How can I do it ???

---

## [How do I break serial/audio output loop?](https://discourse.processing.org/t/how-do-i-break-serial-audio-output-loop/15395)

<div class="topic-metadata">

**Author:** [@mdrou001](https://discourse.processing.org/u/mdrou001)\
**Replies:** 1\
**Last updated:** [November 11, 2019, 3:23am UTC](https://discourse.processing.org/t/how-do-i-break-serial-audio-output-loop/15395 "2019-11-11T03:23:07Z")

</div>

I’m having problems with having an RFID tag scanned and triggering an audio file. Every time I scan an RFID tag the audio constantly plays multiple instances at once, creating a Doppler effect. I did println(file.isPlayi…

---

## [Making variables persistent?](https://discourse.processing.org/t/making-variables-persistent/15393)

<div class="topic-metadata">

**Author:** [@Everdro1d](https://discourse.processing.org/u/Everdro1d)\
**Replies:** 2\
**Last updated:** [November 11, 2019, 3:09am UTC](https://discourse.processing.org/t/making-variables-persistent/15393 "2019-11-11T03:09:47Z")

</div>

What I’m trying to do is make a persistent colour saver, which means that the variables that store the custom colours will need to be saved on exit and loaded on startup. I thought maybe if i could make the program write…

---

## [Hexadecimal-\> file (jpg) / how to convert?](https://discourse.processing.org/t/hexadecimal-file-jpg-how-to-convert/14200)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [November 10, 2019, 8:34pm UTC](https://discourse.processing.org/t/hexadecimal-file-jpg-how-to-convert/14200 "2019-11-10T20:34:25Z")

</div>

Hexadecimal-\> file (jpg) Link: Hex to file (binary) converter Good morning. I want to convert the HEX value into a jpg file, Pimage img; I want to put a jpg file in the img variable and display it on the screen. D…

---

## [Teensy 3.2 + Octows2811 adaptor - Processing error: InvocationTargetException](https://discourse.processing.org/t/teensy-3-2-octows2811-adaptor-processing-error-invocationtargetexception/15365)

<div class="topic-metadata">

**Author:** [@adds666](https://discourse.processing.org/u/adds666)\
**Replies:** 2\
**Last updated:** [November 10, 2019, 8:22pm UTC](https://discourse.processing.org/t/teensy-3-2-octows2811-adaptor-processing-error-invocationtargetexception/15365 "2019-11-10T20:22:38Z")

</div>

Hello all, New here - wanting to make an LED TV using Teensy 3.2 and ws2811 adaptor. https://www.pjrc.com/teensy/td\_libs\_OctoWS2811.html#videodisplay OS: Ubuntu 16.04 64-bit Intel® Core™ i5-2450M CPU @ 2.50GHz × 4 Go…

---

## [Processing on Jetson TX2 dev kit?](https://discourse.processing.org/t/processing-on-jetson-tx2-dev-kit/15256)

<div class="topic-metadata">

**Author:** [@darioringach](https://discourse.processing.org/u/darioringach)\
**Replies:** 1\
**Last updated:** [November 10, 2019, 5:34pm UTC](https://discourse.processing.org/t/processing-on-jetson-tx2-dev-kit/15256 "2019-11-10T17:34:20Z")

</div>

Any luck installing Processing on the Jetson TX2? Does anyone have step-by-step instructions? Thank you! Dario

---

## [Ellipse not moving](https://discourse.processing.org/t/ellipse-not-moving/15351)

<div class="topic-metadata">

**Author:** [@Tobias](https://discourse.processing.org/u/Tobias)\
**Replies:** 5\
**Last updated:** [November 10, 2019, 1:46pm UTC](https://discourse.processing.org/t/ellipse-not-moving/15351 "2019-11-10T13:46:01Z")

</div>

I used to know almost all the features in processing like a year ago, and now I decided to get back and try again. I just made a simple script telling the console to show a circle with some gravity, and everything works …

---

## [Array isn't loading any values](https://discourse.processing.org/t/array-isnt-loading-any-values/15368)

<div class="topic-metadata">

**Author:** [@bs.17](https://discourse.processing.org/u/bs.17)\
**Replies:** 15\
**Last updated:** [November 10, 2019, 4:18am UTC](https://discourse.processing.org/t/array-isnt-loading-any-values/15368 "2019-11-10T04:18:45Z")

</div>

\*\*//(Dice game, roll two dice 36 times and store each value, then after you determine how many times 12 showed in that array, but the array 1-36 is all filled with 0's, and it prints that shows 12 0 times. New to coding…

---

## [Trying to create a polygon point connector](https://discourse.processing.org/t/trying-to-create-a-polygon-point-connector/15362)

<div class="topic-metadata">

**Author:** [@musiciantriescoding](https://discourse.processing.org/u/musiciantriescoding)\
**Replies:** 1\
**Last updated:** [November 10, 2019, 2:21am UTC](https://discourse.processing.org/t/trying-to-create-a-polygon-point-connector/15362 "2019-11-10T02:21:43Z")

</div>

Hello! I am trying to create a polygon point connector that works likes this: 1. draw n amount of points on a circle equidistant from each other 2. connect the points to the nth point next to it to create polygons an…

---

## [Intersection of ellipses](https://discourse.processing.org/t/intersection-of-ellipses/15357)

<div class="topic-metadata">

**Author:** [@edward](https://discourse.processing.org/u/edward)\
**Replies:** 6\
**Last updated:** [November 9, 2019, 11:54pm UTC](https://discourse.processing.org/t/intersection-of-ellipses/15357 "2019-11-09T23:54:31Z")

</div>

Hi guys. I’m finding this quite a challenge. The way I have it in this code, any ellipse avoids contact with the others whilst dragging it, which is kind of what I want. However, in order to keep on dragging an ellipse …

---

## [Minor Problem with arrays and loops](https://discourse.processing.org/t/minor-problem-with-arrays-and-loops/15095)

<div class="topic-metadata">

**Author:** [@haidershah](https://discourse.processing.org/u/haidershah)\
**Replies:** 3\
**Last updated:** [November 9, 2019, 11:38pm UTC](https://discourse.processing.org/t/minor-problem-with-arrays-and-loops/15095 "2019-11-09T23:38:53Z")

</div>

PVector\[\] record = new PVector\[100\]; int curr = 0; void setup() { size(800, 800); for (int i = 0; i\<record.length; i++) { record\[i\]= new PVector(100, 100); } } void draw() { } void mousePressed() {…

---

## [Can't create a Serializable object and convert it to a byte\[\]](https://discourse.processing.org/t/cant-create-a-serializable-object-and-convert-it-to-a-byte/15360)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 4\
**Last updated:** [November 9, 2019, 10:49pm UTC](https://discourse.processing.org/t/cant-create-a-serializable-object-and-convert-it-to-a-byte/15360 "2019-11-09T22:49:22Z")

</div>

So I don’t have much to say, the only thing is that I don’t know why this code: import java.io.\*; void setup() { Foo foo = new Foo(); try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); Objec…

---

## [Fade effect from an image to another](https://discourse.processing.org/t/fade-effect-from-an-image-to-another/12244)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 2\
**Last updated:** [November 9, 2019, 11:25pm UTC](https://discourse.processing.org/t/fade-effect-from-an-image-to-another/12244 "2019-11-09T23:25:32Z")

</div>

I have this code but when I press the mouse I want an image fade transition, any help? Thanks! void setup() { size(600, 600); estaciones = new PImage\[2\]; estaciones\[0\]=loadImage("test.png"); estaciones\[1\]=load…

---

## [Processing, Arduino and Linux](https://discourse.processing.org/t/processing-arduino-and-linux/15344)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 4\
**Last updated:** [November 9, 2019, 11:08pm UTC](https://discourse.processing.org/t/processing-arduino-and-linux/15344 "2019-11-09T23:08:35Z")

</div>

Thank you for reading my first post. This question relates to the Simple Write serial example. String portName = Serial.list()\[0\]; myPort = new Serial(this, portName, 9600); This doesn’t find the correct port but …

---

## [Increasing the size of an object made up of two triangles](https://discourse.processing.org/t/increasing-the-size-of-an-object-made-up-of-two-triangles/14956)

<div class="topic-metadata">

**Author:** [@Anotherrat](https://discourse.processing.org/u/Anotherrat)\
**Replies:** 2\
**Last updated:** [November 9, 2019, 11:07pm UTC](https://discourse.processing.org/t/increasing-the-size-of-an-object-made-up-of-two-triangles/14956 "2019-11-09T23:07:21Z")

</div>

Hi, I am relatively new to coding and I’ve encountered a small issue. I have diamond shape made up of two triangle shapes, I’ve turned the shape in to an object that includes x & y properties, I can move it round the sc…

---

## [Random Custom Classes](https://discourse.processing.org/t/random-custom-classes/15354)

<div class="topic-metadata">

**Author:** [@cajk24](https://discourse.processing.org/u/cajk24)\
**Replies:** 4\
**Last updated:** [November 9, 2019, 5:21pm UTC](https://discourse.processing.org/t/random-custom-classes/15354 "2019-11-09T17:21:15Z")

</div>

I’m trying to create a program where different types of fish are defined into different classes, and the user would be able to spawn them randomly by pressing the ‘f’ key. I can’t seem to figure out how to define the ran…

---

## [SimpleOpenNI + Kinect V1 problem](https://discourse.processing.org/t/simpleopenni-kinect-v1-problem/15329)

<div class="topic-metadata">

**Author:** [@Andrea](https://discourse.processing.org/u/Andrea)\
**Replies:** 6\
**Last updated:** [November 9, 2019, 1:43pm UTC](https://discourse.processing.org/t/simpleopenni-kinect-v1-problem/15329 "2019-11-09T13:43:33Z")

</div>

Hi!:blush: I’m a beginner at Processing and I’m currently using Windows10, Processing version 3.5.3 and I have the Kinect 1414 (version 1 I believe). I’ve been trying to use somebody elses code, here’s the video of what …

---

## [Performance Image vs Vector Graphics](https://discourse.processing.org/t/performance-image-vs-vector-graphics/15333)

<div class="topic-metadata">

**Author:** [@agp](https://discourse.processing.org/u/agp)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 10:05pm UTC](https://discourse.processing.org/t/performance-image-vs-vector-graphics/15333 "2019-11-08T22:05:58Z")

</div>

Hello, what I am trying to achieve is having an interactive program that does some stuff. I am using Keystone library, Pgraphics, PImages (lots of them, drawing them when something happens, translate them around, and oth…

---

## [Processing.js code on openprocessing - nothing happens when you click](https://discourse.processing.org/t/processing-js-code-on-openprocessing-nothing-happens-when-you-click/15323)

<div class="topic-metadata">

**Author:** [@scruffyboy13](https://discourse.processing.org/u/scruffyboy13)\
**Replies:** 8\
**Last updated:** [November 8, 2019, 8:44pm UTC](https://discourse.processing.org/t/processing-js-code-on-openprocessing-nothing-happens-when-you-click/15323 "2019-11-08T20:44:05Z")

</div>

I’ve been using openprocessing.org to create a processingjs code but something is going wrong where nothing happens when you click on the main screen but it’s supposed to change to the tutorial screen. I’ve been trying f…

---

## [How to return a PVector array?](https://discourse.processing.org/t/how-to-return-a-pvector-array/15340)

<div class="topic-metadata">

**Author:** [@Djharr](https://discourse.processing.org/u/Djharr)\
**Replies:** 2\
**Last updated:** [November 8, 2019, 7:31pm UTC](https://discourse.processing.org/t/how-to-return-a-pvector-array/15340 "2019-11-08T19:31:51Z")

</div>

HI, wondering how i’m meant to return a PVector array; public PVector VECTORS(){ PVector\[\] v = new PVector\[1000\]; for(int i =0; i\<v.length; i++){ v\[i\] = new PVector(random(width), random(height)); } return v; } t…

---

## [Easy typing program](https://discourse.processing.org/t/easy-typing-program/15226)

<div class="topic-metadata">

**Author:** [@helpme123](https://discourse.processing.org/u/helpme123)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 5:30pm UTC](https://discourse.processing.org/t/easy-typing-program/15226 "2019-11-08T17:30:06Z")

</div>

Im trying to create a program where a random letter appears on the screen and the user has to type it to gain 1 point and if they type it within a time frame they get bonus points (I haven’t wrote the point system yet be…

---

## [Creating a self-moving face (eyes and mouth only)](https://discourse.processing.org/t/creating-a-self-moving-face-eyes-and-mouth-only/15293)

<div class="topic-metadata">

**Author:** [@JigKSaw](https://discourse.processing.org/u/JigKSaw)\
**Replies:** 3\
**Last updated:** [November 8, 2019, 3:52pm UTC](https://discourse.processing.org/t/creating-a-self-moving-face-eyes-and-mouth-only/15293 "2019-11-08T15:52:20Z")

</div>

Hi there. It’s my intention to create a storyteller at the center of the window, who will speak, kinda like this: :eyes: :lips: which opens autonomously eyes and mouth (in a mechanic way). How can I draw/create them? …

---

## [Convert image in to blinking LED on processing](https://discourse.processing.org/t/convert-image-in-to-blinking-led-on-processing/15022)

<div class="topic-metadata">

**Author:** [@shonerudeetha](https://discourse.processing.org/u/shonerudeetha)\
**Replies:** 45\
**Last updated:** [November 8, 2019, 6:37am UTC](https://discourse.processing.org/t/convert-image-in-to-blinking-led-on-processing/15022 "2019-11-08T06:37:43Z")

</div>

Dear guys, i m a very beginner for processing.i m looking for a help from you.i have connect a SD card and a LED on my arduino board. I know processing can get a pixel array from that image which have saved in SD. ther…

---

## [RGB Colour Squares](https://discourse.processing.org/t/rgb-colour-squares/15266)

<div class="topic-metadata">

**Author:** [@Civil](https://discourse.processing.org/u/Civil)\
**Replies:** 4\
**Last updated:** [November 8, 2019, 5:48am UTC](https://discourse.processing.org/t/rgb-colour-squares/15266 "2019-11-08T05:48:04Z")

</div>

So I thought a fun little thing to do would be to draw some squares using RGB and the simple double for loop. However, there are 3 different combinations that you can do: Iterate Red and Green, leave Blue 255 Iterate R…

---

## [Unsure why I cant call a method from a class](https://discourse.processing.org/t/unsure-why-i-cant-call-a-method-from-a-class/15315)

<div class="topic-metadata">

**Author:** [@Djharr](https://discourse.processing.org/u/Djharr)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 5:45pm UTC](https://discourse.processing.org/t/unsure-why-i-cant-call-a-method-from-a-class/15315 "2019-11-07T17:45:58Z")

</div>

Why does it say my DATE class or method doesnt exist? probably missing something silly but new to processing.

---

## [string.toUpperCase() behaving weirdly](https://discourse.processing.org/t/string-touppercase-behaving-weirdly/15321)

<div class="topic-metadata">

**Author:** [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 5:19pm UTC](https://discourse.processing.org/t/string-touppercase-behaving-weirdly/15321 "2019-11-07T17:19:21Z")

</div>

I was trying to make an if statement that checks a string but isn’t case sensitive, and I came across some weird behavior: String str = "Hello World."; void setup(){ println(str.toUpperCase()); //Outputs HELLO WORLD.…

---

## [How to create real randomized objects](https://discourse.processing.org/t/how-to-create-real-randomized-objects/15304)

<div class="topic-metadata">

**Author:** [@Andreas](https://discourse.processing.org/u/Andreas)\
**Replies:** 1\
**Last updated:** [November 7, 2019, 1:55pm UTC](https://discourse.processing.org/t/how-to-create-real-randomized-objects/15304 "2019-11-07T13:55:05Z")

</div>

I want to make an ‘iOS dynamic wallpaper generator’ in processing. I made a class that can draw a dynamic gradient color spot. But I don’t know how to draw multiple spots with different(random) color, shape, and positio…

---

## [Pong collision when ball hits paddle](https://discourse.processing.org/t/pong-collision-when-ball-hits-paddle/15281)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 11:46am UTC](https://discourse.processing.org/t/pong-collision-when-ball-hits-paddle/15281 "2019-11-07T11:46:57Z")

</div>

Hello, can you help me how to do collision so when the ball hits the paddle, it will go back? The code \> float x = 400; float y = 300; float k = width - 20; float e = height / 2; float c = 715; float h = height / 2; fl…

---

## [Keep getting misclicks, with my buttonClicked function](https://discourse.processing.org/t/keep-getting-misclicks-with-my-buttonclicked-function/15295)

<div class="topic-metadata">

**Author:** [@JellyG37](https://discourse.processing.org/u/JellyG37)\
**Replies:** 3\
**Last updated:** [November 7, 2019, 11:30am UTC](https://discourse.processing.org/t/keep-getting-misclicks-with-my-buttonclicked-function/15295 "2019-11-07T11:30:10Z")

</div>

Hello everyone. I’m coding a GUI for a schoolproject, where i need to register whether or not the user has clicked on the right button or not. I’ve made different hitboxes on the screen where the clicks will be true, but…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=259)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=261)
