# Latest

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

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

**Page:** 384

---

## [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…

---

## [Creative Coding for Kids](https://discourse.processing.org/t/creative-coding-for-kids/18485)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 2\
**Last updated:** [March 9, 2020, 2:31am UTC](https://discourse.processing.org/t/creative-coding-for-kids/18485 "2020-03-09T02:31:45Z")

</div>

Hi, I want to introduce you a great book named “Creative Coding for Kids”. The book is based for teaching beginners coding via creative coding using Processing API. Tariq Rashid, the author of the book, put a lot of t…

---

## [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…

---

## [Scale canvas in web editor](https://discourse.processing.org/t/scale-canvas-in-web-editor/18411)

<div class="topic-metadata">

**Author:** [@1igor](https://discourse.processing.org/u/1igor)\
**Replies:** 7\
**Last updated:** [March 8, 2020, 9:21pm UTC](https://discourse.processing.org/t/scale-canvas-in-web-editor/18411 "2020-03-08T21:21:11Z")

</div>

Hi! I have a big canvas which doesn’t fit in my screen with editor. Can I somehow change its scale so I could see it whole without zooming out the whole page?

---

## [\[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…

---

## [Guidance for working on making sketches private in the web editor](https://discourse.processing.org/t/guidance-for-working-on-making-sketches-private-in-the-web-editor/18498)

<div class="topic-metadata">

**Author:** [@nik72619c](https://discourse.processing.org/u/nik72619c)\
**Replies:** 0\
**Last updated:** [March 8, 2020, 12:46pm UTC](https://discourse.processing.org/t/guidance-for-working-on-making-sketches-private-in-the-web-editor/18498 "2020-03-08T12:46:47Z")

</div>

Hi, I am Nikhil Sharma, a final year undergrad from India. Build apps using react, node , graphQL and git. I am gained an experiance of almost 3 years with react, interning with companies like BITCS, Educhamp and Postma…

---

## [INTRO for gsoc 2020](https://discourse.processing.org/t/intro-for-gsoc-2020/18199)

<div class="topic-metadata">

**Author:** [@endurance21](https://discourse.processing.org/u/endurance21)\
**Replies:** 4\
**Last updated:** [March 8, 2020, 12:44pm UTC](https://discourse.processing.org/t/intro-for-gsoc-2020/18199 "2020-03-08T12:44:13Z")

</div>

Hola peeps! Myself DIVYASNHU RAJ ,a sophomore at IIT-ROORKEE , INDIA. i have been exploring P5.js library from past year . i am fond of audio synthesis and visualisation , and p5.js was best option for me to do the b…

---

## [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…

---

## [Forum: catching badly formatted code posts](https://discourse.processing.org/t/forum-catching-badly-formatted-code-posts/226)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 8\
**Last updated:** [March 8, 2020, 12:09am UTC](https://discourse.processing.org/t/forum-catching-badly-formatted-code-posts/226 "2020-03-08T00:09:12Z")

</div>

One major complaint for regulars on the old forum was the constant need to write back to new users and explain to them how to format their code. Regular responders wrote “please format your code” or shared links to the F…

---

## [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 =…

---

## [Error in my code :(](https://discourse.processing.org/t/error-in-my-code/18468)

<div class="topic-metadata">

**Author:** [@noahgabeschaun](https://discourse.processing.org/u/noahgabeschaun)\
**Replies:** 4\
**Last updated:** [March 7, 2020, 10:38pm UTC](https://discourse.processing.org/t/error-in-my-code/18468 "2020-03-07T22:38:53Z")

</div>

I’ve just recently started coding and it says “unexcpected token: void” what’s up with my code? (it’s not finished yet, i’m just trying to run it) Star\[\] stars = new Star\[100\] void setup() { size(400,400); for (int i…

---

## [Creating a Maze Game (Walls Not Working)](https://discourse.processing.org/t/creating-a-maze-game-walls-not-working/18392)

<div class="topic-metadata">

**Author:** [@burakkuboido](https://discourse.processing.org/u/burakkuboido)\
**Replies:** 3\
**Last updated:** [March 7, 2020, 10:37pm UTC](https://discourse.processing.org/t/creating-a-maze-game-walls-not-working/18392 "2020-03-07T22:37:44Z")

</div>

Hey guys, I’ve recently tried making a maze game using 2d arrays. I know this might not be the best way but I’m trying to keep doing this way. Could anyone help me understand why the first wall in the array is registere…

---

## [Hitbox around a triangle?](https://discourse.processing.org/t/hitbox-around-a-triangle/18473)

<div class="topic-metadata">

**Author:** [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Replies:** 6\
**Last updated:** [March 7, 2020, 9:55pm UTC](https://discourse.processing.org/t/hitbox-around-a-triangle/18473 "2020-03-07T21:55:56Z")

</div>

Is there an accurate way to create a hitbox (for collision detection) around a triangle?

---

## [Pixel flow teleporting test object](https://discourse.processing.org/t/pixel-flow-teleporting-test-object/18395)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 8:02pm UTC](https://discourse.processing.org/t/pixel-flow-teleporting-test-object/18395 "2020-03-07T20:02:00Z")

</div>

Can someone tell me why sometimes it looks like the circle will teleport? import com.thomasdiewald.pixelflow.java.DwPixelFlow; import com.thomasdiewald.pixelflow.java.dwgl.DwGLTexture; import com.thomasdiewald.pixelflow…

---

## [PixelFlow Examples work on 3.1.x but in 3.5 some things are not drawing can you explain why?](https://discourse.processing.org/t/pixelflow-examples-work-on-3-1-x-but-in-3-5-some-things-are-not-drawing-can-you-explain-why/18376)

<div class="topic-metadata">

**Author:** [@kendrick90](https://discourse.processing.org/u/kendrick90)\
**Replies:** 4\
**Last updated:** [March 7, 2020, 7:12pm UTC](https://discourse.processing.org/t/pixelflow-examples-work-on-3-1-x-but-in-3-5-some-things-are-not-drawing-can-you-explain-why/18376 "2020-03-07T19:12:41Z")

</div>

I am using PixelFlow - Fluid\_Basic as my starting point and I noticed that some elements for example the outer boundary are not drawn in recent versions of processing. Can someone explain to me why it won’t draw the obst…

---

## [Is USB hub sufficient to control 4 Arduino boards?](https://discourse.processing.org/t/is-usb-hub-sufficient-to-control-4-arduino-boards/18378)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 7:09pm UTC](https://discourse.processing.org/t/is-usb-hub-sufficient-to-control-4-arduino-boards/18378 "2020-03-07T19:09:59Z")

</div>

I am acquiring data from 4 arduino boards (3 Nano and 1 Uno) using serial communication. The USBs of each ardunio is connected to a USB hub device. From USB hub outlet is connected to the PC. I am plotting the received …

---

## [Turn many subclass specific methods into one](https://discourse.processing.org/t/turn-many-subclass-specific-methods-into-one/18463)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 10:45pm UTC](https://discourse.processing.org/t/turn-many-subclass-specific-methods-into-one/18463 "2020-03-06T22:45:20Z")

</div>

Hello I have 4 different methods to get different objects that derive from a superclass, I want to be able to call a method passing a class as a parameter and getting an ArrayList This are the 4 methods: ArrayList\<Cam…

---

## [Fxml-file integrate in processing?](https://discourse.processing.org/t/fxml-file-integrate-in-processing/18325)

<div class="topic-metadata">

**Author:** [@em\_sha](https://discourse.processing.org/u/em_sha)\
**Replies:** 11\
**Last updated:** [March 7, 2020, 5:43pm UTC](https://discourse.processing.org/t/fxml-file-integrate-in-processing/18325 "2020-03-07T17:43:08Z")

</div>

Hi :slight\_smile: Is there a possibility to integrate a fxml-file in processing? If there is one, could somebody give me an example? Thanks. M.

---

## [Reliable way to make smooth 3D objects?](https://discourse.processing.org/t/reliable-way-to-make-smooth-3d-objects/18322)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 4\
**Last updated:** [March 7, 2020, 5:21pm UTC](https://discourse.processing.org/t/reliable-way-to-make-smooth-3d-objects/18322 "2020-03-07T17:21:54Z")

</div>

Is there a way to make 3D objects in Processing that don’t appear as polygonal? Currently I make 3D shapes by using functions such as beginShape(TRIANGLE\_STRIP), but I would like to learn the more technical aspects. If …

---

## [Getting Swing and Processing to work together](https://discourse.processing.org/t/getting-swing-and-processing-to-work-together/18486)

<div class="topic-metadata">

**Author:** [@Dinoswarleafs](https://discourse.processing.org/u/Dinoswarleafs)\
**Replies:** 0\
**Last updated:** [March 7, 2020, 4:58pm UTC](https://discourse.processing.org/t/getting-swing-and-processing-to-work-together/18486 "2020-03-07T16:58:44Z")

</div>

Hey, Right now I’m creating an application with Swing and Processing in separate windows. I’ve verified the Processing methods I call are functional, so I believe the following issues occur because Processing and Swing …

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

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