# Processing

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

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

**Page:** 230

---

## [Mouse wrap around monitor / extend cycle of mouse around screen](https://discourse.processing.org/t/mouse-wrap-around-monitor-extend-cycle-of-mouse-around-screen/18563)

<div class="topic-metadata">

**Author:** [@ZvivZ](https://discourse.processing.org/u/ZvivZ)\
**Replies:** 1\
**Last updated:** [March 11, 2020, 6:26am UTC](https://discourse.processing.org/t/mouse-wrap-around-monitor-extend-cycle-of-mouse-around-screen/18563 "2020-03-11T06:26:41Z")

</div>

Is there a way in Processing to make the mouse cycle around the screen and keep giving mouseX/mouseY positions? This would be for games that use a trackball or spinner. I’m able to use a third party program (CursorUS) …

---

## [SVG file throwing nullPointerException](https://discourse.processing.org/t/svg-file-throwing-nullpointerexception/18466)

<div class="topic-metadata">

**Author:** [@martinh](https://discourse.processing.org/u/martinh)\
**Replies:** 6\
**Last updated:** [March 11, 2020, 2:49am UTC](https://discourse.processing.org/t/svg-file-throwing-nullpointerexception/18466 "2020-03-11T02:49:19Z")

</div>

I was given some svg files by a colleague for incorporating a project I’m working on, but it’s throwing a nullPointerException error (Actuator.svg). snowman.svg is loading fine. Actuator was cause a style error, but I …

---

## [Different Hole Score Question](https://discourse.processing.org/t/different-hole-score-question/18575)

<div class="topic-metadata">

**Author:** [@Dr.Dremur](https://discourse.processing.org/u/Dr.Dremur)\
**Replies:** 1\
**Last updated:** [March 10, 2020, 11:32pm UTC](https://discourse.processing.org/t/different-hole-score-question/18575 "2020-03-10T23:32:30Z")

</div>

Due to other projects and not a lot of time left, my golf game for processing has been adjusting to fit time loss. My new idea for now is a golf skee ball. I have the code to throw the golf ball, but I’m trying to figure…

---

## [Updating the Collision between 2 ellipses](https://discourse.processing.org/t/updating-the-collision-between-2-ellipses/18559)

<div class="topic-metadata">

**Author:** [@Yorunoshi](https://discourse.processing.org/u/Yorunoshi)\
**Replies:** 1\
**Last updated:** [March 10, 2020, 6:48pm UTC](https://discourse.processing.org/t/updating-the-collision-between-2-ellipses/18559 "2020-03-10T18:48:40Z")

</div>

I want the ellipse from “Gegner” to collapse and kill the ellipses from “Dot” can you guys help me? This is the Code: https://codeshare.io/5zpWyr

---

## [How to avoid drawing over oneself while drawing something from loop?](https://discourse.processing.org/t/how-to-avoid-drawing-over-oneself-while-drawing-something-from-loop/18557)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 3\
**Last updated:** [March 10, 2020, 12:32pm UTC](https://discourse.processing.org/t/how-to-avoid-drawing-over-oneself-while-drawing-something-from-loop/18557 "2020-03-10T12:32:57Z")

</div>

I am drawing a visualization map. I have connected a slider with the number of counts of my tables. While increasing the slider, the date I displayed as text draws over itself. How can I avoid it? I’ll place a photo of m…

---

## [G4P/grafica multiwindow plot crash](https://discourse.processing.org/t/g4p-grafica-multiwindow-plot-crash/18440)

<div class="topic-metadata">

**Author:** [@cannocchiale](https://discourse.processing.org/u/cannocchiale)\
**Replies:** 6\
**Last updated:** [March 10, 2020, 10:10am UTC](https://discourse.processing.org/t/g4p-grafica-multiwindow-plot-crash/18440 "2020-03-10T10:10:30Z")

</div>

Hello everyone, I’m having a stability issue when using G4P and grafica libraries. I want to create a program which reads a serial string sent by arduino. It is a two-channel pressure measurements - an E and an F channe…

---

## [What is happening to this Array?](https://discourse.processing.org/t/what-is-happening-to-this-array/18502)

<div class="topic-metadata">

**Author:** [@NoClue](https://discourse.processing.org/u/NoClue)\
**Replies:** 3\
**Last updated:** [March 10, 2020, 6:45am UTC](https://discourse.processing.org/t/what-is-happening-to-this-array/18502 "2020-03-10T06:45:36Z")

</div>

Hello, everybody :smiley: This will be a looong first post. And the error will be embarrassing minor… At first click trough this first code (‘s’ to start and then ‘n’ to proceed until nothing happens), then you’ll get…

---

## [Processing doesn't run my code](https://discourse.processing.org/t/processing-doesnt-run-my-code/12620)

<div class="topic-metadata">

**Author:** [@Mahrokh](https://discourse.processing.org/u/Mahrokh)\
**Replies:** 8\
**Last updated:** [March 9, 2020, 9:05pm UTC](https://discourse.processing.org/t/processing-doesnt-run-my-code/12620 "2020-03-09T21:05:49Z")

</div>

I have Processing 3.4 on Windows 10. When I press the run button, it doesn’t do anything. I tried running simple sample sketches with no result. I’ve had this problem before, but I just restarted my computer and it would…

---

## [Transition between sketches during a live performance](https://discourse.processing.org/t/transition-between-sketches-during-a-live-performance/12131)

<div class="topic-metadata">

**Author:** [@mezhaka](https://discourse.processing.org/u/mezhaka)\
**Replies:** 14\
**Last updated:** [March 9, 2020, 8:13pm UTC](https://discourse.processing.org/t/transition-between-sketches-during-a-live-performance/12131 "2020-03-09T20:13:54Z")

</div>

I would like to find out what are the strategies for switching between the sketches? I am preparing a performance (visual accompanying a live act) and I need some way of transitioning between different sketches that I a…

---

## [Sound library constructor with cache doesn't exist](https://discourse.processing.org/t/sound-library-constructor-with-cache-doesnt-exist/18526)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 6:46pm UTC](https://discourse.processing.org/t/sound-library-constructor-with-cache-doesnt-exist/18526 "2020-03-09T18:46:45Z")

</div>

hey so in the documentation for the library in processing.org the SoundFile class has a constructor with three values one of those being the cache… how ever I’ve tried to use it and it seems to no longer be on the librar…

---

## [Make clouds move](https://discourse.processing.org/t/make-clouds-move/18465)

<div class="topic-metadata">

**Author:** [@M.juliet](https://discourse.processing.org/u/M.juliet)\
**Replies:** 4\
**Last updated:** [March 9, 2020, 6:04pm UTC](https://discourse.processing.org/t/make-clouds-move/18465 "2020-03-09T18:04:23Z")

</div>

Hi, I’m writing some code where I’ve drawn a few clouds in a for loop. Now I want to make these clouds move like they’re coming out of the factory with a while loop. I need them to constantly be moving (not that you can …

---

## [P3D not working in Mojave](https://discourse.processing.org/t/p3d-not-working-in-mojave/18532)

<div class="topic-metadata">

**Author:** [@brewthom](https://discourse.processing.org/u/brewthom)\
**Replies:** 0\
**Last updated:** [March 9, 2020, 3:27pm UTC](https://discourse.processing.org/t/p3d-not-working-in-mojave/18532 "2020-03-09T15:27:09Z")

</div>

I’ve seen some posts on this, but can’t find a solution. P3d gives the following error on all my lab computers running Mojave (25 computers). This happens even with only the following code: (the problem goes away if I ge…

---

## [Change Ball's Color After Collision](https://discourse.processing.org/t/change-balls-color-after-collision/18521)

<div class="topic-metadata">

**Author:** [@Nadiantara](https://discourse.processing.org/u/Nadiantara)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 11:53am UTC](https://discourse.processing.org/t/change-balls-color-after-collision/18521 "2020-03-09T11:53:51Z")

</div>

Hello! I’m trying to make a simulation about hard-sphere collision with some modifications and I’ve been stuck for days. This is the output : However, I want the blue ball to turn its color to red after collided with…

---

## [Datepicker in Processing](https://discourse.processing.org/t/datepicker-in-processing/2128)

<div class="topic-metadata">

**Author:** [@Santy](https://discourse.processing.org/u/Santy)\
**Replies:** 11\
**Last updated:** [March 9, 2020, 9:39am UTC](https://discourse.processing.org/t/datepicker-in-processing/2128 "2020-03-09T09:39:23Z")

</div>

Hello my friends, I need to include in my project a Datepicker, but it seems that no exist nothing about this. I found an exemple in java: import java.util.Locale; import javafx.application.Application; import javafx.…

---

## [Word cloud with data](https://discourse.processing.org/t/word-cloud-with-data/18514)

<div class="topic-metadata">

**Author:** [@anb97871](https://discourse.processing.org/u/anb97871)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 8:15am UTC](https://discourse.processing.org/t/word-cloud-with-data/18514 "2020-03-09T08:15:31Z")

</div>

Hi. I am so new to processing and starting a project where I need to upload data from a csv and take data to display with scale and map of the data. It is simple data and have been able to upload the data. A sample of …

---

## [Receiving error but cannot debug: ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/receiving-error-but-cannot-debug-arrayindexoutofboundsexception/18415)

<div class="topic-metadata">

**Author:** [@firetryer](https://discourse.processing.org/u/firetryer)\
**Replies:** 38\
**Last updated:** [March 9, 2020, 4:45am UTC](https://discourse.processing.org/t/receiving-error-but-cannot-debug-arrayindexoutofboundsexception/18415 "2020-03-09T04:45:08Z")

</div>

int currentScreen; PImage img; PImage img0; PImage img1; import processing.sound.\*; SoundFile file; void setup() { size (1000, 683); noStroke(); smooth(); img = loadImage ("batman.jpeg"); img0 = loadImage ("jo…

---

## [Problem with the use of several sensors, Arduino / Processing](https://discourse.processing.org/t/problem-with-the-use-of-several-sensors-arduino-processing/18118)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 4\
**Last updated:** [March 9, 2020, 12:28am UTC](https://discourse.processing.org/t/problem-with-the-use-of-several-sensors-arduino-processing/18118 "2020-03-09T00:28:55Z")

</div>

Cordial greeting, I am working on a project where I require the use of several sensors and visualize them in processing. I am currently using this code. import processing.serial.\*; Serial puerto; // se declara una vari…

---

## [Combining sketches](https://discourse.processing.org/t/combining-sketches/18265)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 3\
**Last updated:** [March 8, 2020, 11:23pm UTC](https://discourse.processing.org/t/combining-sketches/18265 "2020-03-08T23:23:40Z")

</div>

Is there an easy way to combine sketches if the canvas size and background are the same?

---

## [PShape issues with noFill()](https://discourse.processing.org/t/pshape-issues-with-nofill/18505)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 1\
**Last updated:** [March 8, 2020, 10:20pm UTC](https://discourse.processing.org/t/pshape-issues-with-nofill/18505 "2020-03-08T22:20:41Z")

</div>

When using PShape the noFill() method appears to be missing in action. The following code demonstrates a workaround. Curiously, if I try the P2D renderer, I get no circles at all. Note also the comment about setStrokeW…

---

## [Problem with moving the zero of the graph](https://discourse.processing.org/t/problem-with-moving-the-zero-of-the-graph/18117)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 5\
**Last updated:** [March 8, 2020, 10:08pm UTC](https://discourse.processing.org/t/problem-with-moving-the-zero-of-the-graph/18117 "2020-03-08T22:08:07Z")

</div>

Hello good night, I am working on a project where I am using several sensors, but I only have to graph one of them the air sensor or “inByte \[2\]”, the problem is that the zero of this sensor is very down in the graph and…

---

## [Fisica's FGearJoint](https://discourse.processing.org/t/fisicas-fgearjoint/18037)

<div class="topic-metadata">

**Author:** [@ilinx](https://discourse.processing.org/u/ilinx)\
**Replies:** 2\
**Last updated:** [March 8, 2020, 9:56pm UTC](https://discourse.processing.org/t/fisicas-fgearjoint/18037 "2020-03-08T21:56:01Z")

</div>

Hi all, does anyone have experience with setting up an FGearJoint in Fisica properly? I have attached a little study in which I try to connect two FRevoluteJoints by an FGearJoint. Unfortunately, the Constructor of the…

---

## [\[cp5\] ControlP5 buttons over each others on different page, problem to differenciate them](https://discourse.processing.org/t/cp5-controlp5-buttons-over-each-others-on-different-page-problem-to-differenciate-them/18383)

<div class="topic-metadata">

**Author:** [@anon71376789](https://discourse.processing.org/u/anon71376789)\
**Replies:** 3\
**Last updated:** [March 8, 2020, 9:17pm UTC](https://discourse.processing.org/t/cp5-controlp5-buttons-over-each-others-on-different-page-problem-to-differenciate-them/18383 "2020-03-08T21:17:04Z")

</div>

When I click on “Changer” button, I want to change page, that works. But problem is that I create new buttons and I need them to be the exact same position than those from previous pages but still they need to be distin…

---

## [I have a problem to ask](https://discourse.processing.org/t/i-have-a-problem-to-ask/18500)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 13\
**Last updated:** [March 8, 2020, 8:08pm UTC](https://discourse.processing.org/t/i-have-a-problem-to-ask/18500 "2020-03-08T20:08:06Z")

</div>

Goodmorning everyone, I have a problem with a code I’m working on but I don’t understand what’s wrong, someone who can help me out? int randomNum; //boolean contenitore \[\]; boolean\[\] contenitoreVario = new boolean \[5\]…

---

## [Arraycopy deprecated, is there an alternative method?](https://discourse.processing.org/t/arraycopy-deprecated-is-there-an-alternative-method/18508)

<div class="topic-metadata">

**Author:** [@jshaw3](https://discourse.processing.org/u/jshaw3)\
**Replies:** 2\
**Last updated:** [March 8, 2020, 7:45pm UTC](https://discourse.processing.org/t/arraycopy-deprecated-is-there-an-alternative-method/18508 "2020-03-08T19:45:53Z")

</div>

I’m doing some work with Minim and I found a few samples for visualizing waveforms that are using arraycopy. The samples seem to work as expected in the code, except I’m getting warnings that the method is deprecated. th…

---

## [How to generate waveform or image of entire sound file?](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405)

<div class="topic-metadata">

**Author:** [@tkomforty](https://discourse.processing.org/u/tkomforty)\
**Replies:** 3\
**Last updated:** [March 8, 2020, 7:10pm UTC](https://discourse.processing.org/t/how-to-generate-waveform-or-image-of-entire-sound-file/7405 "2020-03-08T19:10:46Z")

</div>

I am fairly comfortable with real-time audio visualizers. However, I am wondering how to go about coding something that would pre-read the whole audio file and generate a visualization based off that. Static instead of r…

---

## [How to round numbers to two decimal points?](https://discourse.processing.org/t/how-to-round-numbers-to-two-decimal-points/18506)

<div class="topic-metadata">

**Author:** [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Replies:** 1\
**Last updated:** [March 8, 2020, 6:13pm UTC](https://discourse.processing.org/t/how-to-round-numbers-to-two-decimal-points/18506 "2020-03-08T18:13:42Z")

</div>

Is there a way to do that? I need it for money transactions. For example: 10 -\> 10.00 10.5 -\> 10.50 10.55 -\> 10.55 10.555 -\> 10.56 10.554 -\> 10.55

---

## [How to get uniform appearance of color brightness](https://discourse.processing.org/t/how-to-get-uniform-appearance-of-color-brightness/18471)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 4\
**Last updated:** [March 8, 2020, 5:50pm UTC](https://discourse.processing.org/t/how-to-get-uniform-appearance-of-color-brightness/18471 "2020-03-08T17:50:24Z")

</div>

Is there a formula to adjust HSB values to adjust the apparent brightness of colors? Everything except the greens and blues seem way too dark here, I was hoping for a more uniform appearance. The background is 50% gray. …

---

## [How can I use the Argon2 KDF in Processing?](https://discourse.processing.org/t/how-can-i-use-the-argon2-kdf-in-processing/18420)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 6\
**Last updated:** [March 8, 2020, 3:31pm UTC](https://discourse.processing.org/t/how-can-i-use-the-argon2-kdf-in-processing/18420 "2020-03-08T15:31:56Z")

</div>

Hello, I am trying to write a simple Messenger myself, and of course I can’t simply send the password of the user to the backend. I found this GitHub repo, but I’m not quite sure how to use it. Cloning it with git and p…

---

## [Draw a square line by line](https://discourse.processing.org/t/draw-a-square-line-by-line/18059)

<div class="topic-metadata">

**Author:** [@MichelO](https://discourse.processing.org/u/MichelO)\
**Replies:** 12\
**Last updated:** [March 8, 2020, 12:42pm UTC](https://discourse.processing.org/t/draw-a-square-line-by-line/18059 "2020-03-08T12:42:53Z")

</div>

I am trying to draw a square one line at a time, with a keypress. In other words, press “1” to draw a line, turn 90 degrees, press “1” to draw a line, turn 90 degrees, etc. I know about the rectangle function. This is ju…

---

## [How can i make it a 2 player game](https://discourse.processing.org/t/how-can-i-make-it-a-2-player-game/18418)

<div class="topic-metadata">

**Author:** [@KristianChannel](https://discourse.processing.org/u/KristianChannel)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 11:48pm UTC](https://discourse.processing.org/t/how-can-i-make-it-a-2-player-game/18418 "2020-03-07T23:48:10Z")

</div>

Im am working on this project and can’t seem to understand how i can make the ball react to the second paddle aswell as the first. Have in mind that im a beginner and don’t understand a lot of code. Translation: Fart =…

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

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