# Latest

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

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

**Page:** 443

---

## [indexOf with nested ArrayList](https://discourse.processing.org/t/indexof-with-nested-arraylist/14272)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 4\
**Last updated:** [September 30, 2019, 8:22pm UTC](https://discourse.processing.org/t/indexof-with-nested-arraylist/14272 "2019-09-30T20:22:21Z")

</div>

Hi there, I’ve got some menu structure where I’m nesting ArrayLists like this class Menu extends ArrayList\<Menu\>. It gives me some really interesting results when I’m using indexOf. Somehow it looks like it’s doing a re…

---

## [Trouble with bouncing ball](https://discourse.processing.org/t/trouble-with-bouncing-ball/14312)

<div class="topic-metadata">

**Author:** [@abigail](https://discourse.processing.org/u/abigail)\
**Replies:** 6\
**Last updated:** [September 30, 2019, 2:08pm UTC](https://discourse.processing.org/t/trouble-with-bouncing-ball/14312 "2019-09-30T14:08:17Z")

</div>

Hi, so far I just have a ball bouncing on the screen, but the sketch stops working when I add the number 125 into the - if (y \<= 125), part of my code, although it works when I have 100 instead of 125. Can anyone explai…

---

## [Saving p5js canvas as image to a server/database](https://discourse.processing.org/t/saving-p5js-canvas-as-image-to-a-server-database/14199)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 1:56pm UTC](https://discourse.processing.org/t/saving-p5js-canvas-as-image-to-a-server-database/14199 "2019-09-30T13:56:46Z")

</div>

Hi Short question What is the simplest way to save the p5js canvas on a public website (that everybody can access) as an image file to a server (that only I can see)? Longer explantion: I have made an art project wit…

---

## [3D view in processing](https://discourse.processing.org/t/3d-view-in-processing/14292)

<div class="topic-metadata">

**Author:** [@alice](https://discourse.processing.org/u/alice)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 12:06pm UTC](https://discourse.processing.org/t/3d-view-in-processing/14292 "2019-09-30T12:06:18Z")

</div>

Hello, I have a question regarding the 3D view in processing : I’m trying to have a 3D view of the following code but looks like doesn’t work … I’m trying to have that black background as in the image Cell\[\]\[\] grid;…

---

## [Fill with points with noise stroke without killing FPS](https://discourse.processing.org/t/fill-with-points-with-noise-stroke-without-killing-fps/14286)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 4\
**Last updated:** [September 30, 2019, 10:59am UTC](https://discourse.processing.org/t/fill-with-points-with-noise-stroke-without-killing-fps/14286 "2019-09-30T10:59:39Z")

</div>

Is there a way to do this without having the frame rate go down to about 8fps? Use noise to set the stroke color of a dot between 0-255, uniformly fill an area with dots. Like TV snow. float noiseScale = 0.02; float r;…

---

## [P5.js interfering with my normal js?](https://discourse.processing.org/t/p5-js-interfering-with-my-normal-js/14299)

<div class="topic-metadata">

**Author:** [@grant](https://discourse.processing.org/u/grant)\
**Replies:** 0\
**Last updated:** [September 30, 2019, 3:17am UTC](https://discourse.processing.org/t/p5-js-interfering-with-my-normal-js/14299 "2019-09-30T03:17:03Z")

</div>

Hello, I’m trying to figure out why my typewriter effect wont work with my existing p5.js sketch? gif to give some explanation (https://gyazo.com/0421c071bdb4a2b5ecd0dfdf3ec3e66d) Basically, I created a whole new html…

---

## [Only using line commands](https://discourse.processing.org/t/only-using-line-commands/14294)

<div class="topic-metadata">

**Author:** [@elcougario](https://discourse.processing.org/u/elcougario)\
**Replies:** 1\
**Last updated:** [September 30, 2019, 3:51am UTC](https://discourse.processing.org/t/only-using-line-commands/14294 "2019-09-30T03:51:54Z")

</div>

Hey guys! I’m new to this whole processing thing. I have a project for a class and we can only use the line command. I’m trying to duplicate what i’ve done on the left side of my window to the right to make it look kin…

---

## [Small help with a small draw](https://discourse.processing.org/t/small-help-with-a-small-draw/14300)

<div class="topic-metadata">

**Author:** [@pokedav](https://discourse.processing.org/u/pokedav)\
**Replies:** 1\
**Last updated:** [September 30, 2019, 3:41am UTC](https://discourse.processing.org/t/small-help-with-a-small-draw/14300 "2019-09-30T03:41:10Z")

</div>

Hi guys, I just want to draw somethin, clear the screen and draw another thing, and put that in a loop, here´s the code: void setup() { fullScreen(); frameRate(1); background(190); } void draw() { int j=0; f…

---

## [10 boxes with random colors in specific locations](https://discourse.processing.org/t/10-boxes-with-random-colors-in-specific-locations/14227)

<div class="topic-metadata">

**Author:** [@van326](https://discourse.processing.org/u/van326)\
**Replies:** 4\
**Last updated:** [September 30, 2019, 3:41am UTC](https://discourse.processing.org/t/10-boxes-with-random-colors-in-specific-locations/14227 "2019-09-30T03:41:00Z")

</div>

I have finally started to understand classes and arrays (somewhat)! In the link I provided, I was trying to make at least 10 boxes with random colors in specific locations. So far, I think they are all showing, but I am …

---

## [Accurate event Timer?](https://discourse.processing.org/t/accurate-event-timer/14260)

<div class="topic-metadata">

**Author:** [@edward](https://discourse.processing.org/u/edward)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 2:01am UTC](https://discourse.processing.org/t/accurate-event-timer/14260 "2019-09-30T02:01:26Z")

</div>

Hi guys, I’d be grateful for your guidance. I would like to have a Timer that triggers an event every 20ms. with good accuracy. Every 20ms it will read a value from an arrayList and it will send it through Serial. I hav…

---

## [Conflicting libraries (YOLO comp vision)](https://discourse.processing.org/t/conflicting-libraries-yolo-comp-vision/6812)

<div class="topic-metadata">

**Author:** [@TTG](https://discourse.processing.org/u/TTG)\
**Replies:** 7\
**Last updated:** [September 30, 2019, 1:24am UTC](https://discourse.processing.org/t/conflicting-libraries-yolo-comp-vision/6812 "2019-09-30T01:24:48Z")

</div>

Hi team, i seem not to be able to get YOLO working despite some step by step guidance stated on: from mr MagicandLove. I removed libraries and replaced them to try get the error removed. Is there a tip that can s…

---

## [Help in Slit-Scan](https://discourse.processing.org/t/help-in-slit-scan/14195)

<div class="topic-metadata">

**Author:** [@royal96](https://discourse.processing.org/u/royal96)\
**Replies:** 2\
**Last updated:** [September 29, 2019, 11:58pm UTC](https://discourse.processing.org/t/help-in-slit-scan/14195 "2019-09-29T23:58:04Z")

</div>

hello :slight\_smile: i have written this code for Slit-Scan, import processing.video.\*; Capture video; int x = 0; void setup() { size(2000, 720); frameRate(120); video = new Capture(this, 1280, 720); // Start c…

---

## [Sound Recognition](https://discourse.processing.org/t/sound-recognition/14291)

<div class="topic-metadata">

**Author:** [@Arjuna](https://discourse.processing.org/u/Arjuna)\
**Replies:** 0\
**Last updated:** [September 29, 2019, 9:09pm UTC](https://discourse.processing.org/t/sound-recognition/14291 "2019-09-29T21:09:14Z")

</div>

Hello! I want to know if there is some library to recognize specific sounds. That is, some parts of the code will be triggered only when a certain sound is recognized. So far I tried to isolate only low sounds from voic…

---

## [How to build processing with sources?](https://discourse.processing.org/t/how-to-build-processing-with-sources/14285)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [September 29, 2019, 5:50pm UTC](https://discourse.processing.org/t/how-to-build-processing-with-sources/14285 "2019-09-29T17:50:21Z")

</div>

I really like having a jar with the sources so I can jump to the code. However, I can’t just get it done, and the last one on maven that has sources is really outdated. Here more about it: someone please help.

---

## [Understanding rotate before translate](https://discourse.processing.org/t/understanding-rotate-before-translate/8631)

<div class="topic-metadata">

**Author:** [@dougouverson](https://discourse.processing.org/u/dougouverson)\
**Replies:** 14\
**Last updated:** [February 24, 2019, 9:58pm UTC](https://discourse.processing.org/t/understanding-rotate-before-translate/8631 "2019-02-24T21:58:32Z")

</div>

I’m on page 168 of “Getting Started with P5.js” and having a difficulty wrapping my head around the rotate() before translate() vs translate() before rotate(): When rotate() is before translate(), why does "The shape no…

---

## [Linear array of values to grid](https://discourse.processing.org/t/linear-array-of-values-to-grid/14206)

<div class="topic-metadata">

**Author:** [@tombass](https://discourse.processing.org/u/tombass)\
**Replies:** 4\
**Last updated:** [September 29, 2019, 4:05pm UTC](https://discourse.processing.org/t/linear-array-of-values-to-grid/14206 "2019-09-29T16:05:28Z")

</div>

Say i have an array of 16 values eg {10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25} but i want to display them in a 4 x 4 grid. What is the easiest way to get them into a 2d array that looks like this? { {10,11,12,1…

---

## [Could not run the sketch.( Target VM failed to initialize)](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize/14280)

<div class="topic-metadata">

**Author:** [@yangms3302](https://discourse.processing.org/u/yangms3302)\
**Replies:** 1\
**Last updated:** [September 29, 2019, 2:30pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize/14280 "2019-09-29T14:30:13Z")

</div>

Hi. I am getting this error message every time I run a code. I put jpg file in the sketch file folder in ‘data’ folder, and already tried several times. Here is a code: PImage img; void setup() { size(640, 360); fram…

---

## [Minim and assign character](https://discourse.processing.org/t/minim-and-assign-character/14274)

<div class="topic-metadata">

**Author:** [@nishafatin96](https://discourse.processing.org/u/nishafatin96)\
**Replies:** 1\
**Last updated:** [September 29, 2019, 2:16pm UTC](https://discourse.processing.org/t/minim-and-assign-character/14274 "2019-09-29T14:16:24Z")

</div>

hi there, do help me, first of all, I have problem to add more than 1 sound and make sound that I add detect the beat of it. my sound is in different file because I want to do wearable electronic using fingers and assig…

---

## [P5js: 3D Typography Problems/Bugs?](https://discourse.processing.org/t/p5js-3d-typography-problems-bugs/14271)

<div class="topic-metadata">

**Author:** [@raetrakt](https://discourse.processing.org/u/raetrakt)\
**Replies:** 0\
**Last updated:** [September 29, 2019, 11:24am UTC](https://discourse.processing.org/t/p5js-3d-typography-problems-bugs/14271 "2019-09-29T11:24:24Z")

</div>

Adding Typography to my Sphere sketch caused further problems: -Some of the glyphs appear to have a white background, whereas others appear to have a transparent background. (Potentially an issue caused by the font bein…

---

## [Referencing a class using a string stored in another class?](https://discourse.processing.org/t/referencing-a-class-using-a-string-stored-in-another-class/14268)

<div class="topic-metadata">

**Author:** [@Inertia\_Squared](https://discourse.processing.org/u/Inertia_Squared)\
**Replies:** 1\
**Last updated:** [September 29, 2019, 11:02am UTC](https://discourse.processing.org/t/referencing-a-class-using-a-string-stored-in-another-class/14268 "2019-09-29T11:02:49Z")

</div>

I’m having trouble getting a class to reference a variable from another class using a string, it gives me the error ‘that the global variable “variableName” does not exist.’ How could I get this to work? For an example …

---

## [Server equilavent to clientEvent()?](https://discourse.processing.org/t/server-equilavent-to-clientevent/14265)

<div class="topic-metadata">

**Author:** [@Brastin](https://discourse.processing.org/u/Brastin)\
**Replies:** 0\
**Last updated:** [September 29, 2019, 8:02am UTC](https://discourse.processing.org/t/server-equilavent-to-clientevent/14265 "2019-09-29T08:02:01Z")

</div>

I’m trying to make a multiplayer game, and at the start it needs to send map data across from the host to the other players. A lot of examples I’ve seen use two different applications, a client and a server, but I’ve tie…

---

## [Help with Drawing scaling](https://discourse.processing.org/t/help-with-drawing-scaling/14264)

<div class="topic-metadata">

**Author:** [@Chrollo](https://discourse.processing.org/u/Chrollo)\
**Replies:** 1\
**Last updated:** [September 29, 2019, 7:09am UTC](https://discourse.processing.org/t/help-with-drawing-scaling/14264 "2019-09-29T07:09:23Z")

</div>

hello. I need help figuring out how to do this specific function. My assignment asks that I make an animal that grows bigger and smaller depending on the Y value of the mouse. I managed to make the main body parts scale …

---

## [Merging Canvas With HTML Website](https://discourse.processing.org/t/merging-canvas-with-html-website/14250)

<div class="topic-metadata">

**Author:** [@grant](https://discourse.processing.org/u/grant)\
**Replies:** 3\
**Last updated:** [September 28, 2019, 10:56pm UTC](https://discourse.processing.org/t/merging-canvas-with-html-website/14250 "2019-09-28T22:56:38Z")

</div>

Hello, I’m relatively new to HTML, CSS, and recently JS. I was inspired from https://ertdfgcvb.xyz/ to create something like that website with the js animations and mouse tracking interactions/trail for my first project. …

---

## [How to play sound on muted iPhone?](https://discourse.processing.org/t/how-to-play-sound-on-muted-iphone/12870)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 2\
**Last updated:** [September 28, 2019, 8:35pm UTC](https://discourse.processing.org/t/how-to-play-sound-on-muted-iphone/12870 "2019-09-28T20:35:48Z")

</div>

Hi. I alluded to this elsewhere in a post but I can’t figure out why P5 won’t play sound on a muted iPhone. I’m new to coding but it seems like a lot of other javascript will play sounds on muted iPhones. Here’s a post f…

---

## [Join vertices of PShapes after translation / rotation](https://discourse.processing.org/t/join-vertices-of-pshapes-after-translation-rotation/14246)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 2\
**Last updated:** [September 28, 2019, 7:47pm UTC](https://discourse.processing.org/t/join-vertices-of-pshapes-after-translation-rotation/14246 "2019-09-28T19:47:52Z")

</div>

Hello Forum. I’m trying to join the top and bottom of two cubes which are being rotated in 3D space. I can’t seem to reliably update the vertices of these shapes after they are being rotated. I’ve tried simply joining…

---

## [Animating Sketch 101](https://discourse.processing.org/t/animating-sketch-101/14254)

<div class="topic-metadata">

**Author:** [@las6525](https://discourse.processing.org/u/las6525)\
**Replies:** 2\
**Last updated:** [September 28, 2019, 7:47am UTC](https://discourse.processing.org/t/animating-sketch-101/14254 "2019-09-28T07:47:49Z")

</div>

Hi All, Below is my first sketch, I am aiming to animated it (besides bouncing around the window). I am in some serious need of pointers of how I should set up my code to have a shape appear and disappear with the mouse…

---

## [How to get x and y lines follow mouse + draw coordinates](https://discourse.processing.org/t/how-to-get-x-and-y-lines-follow-mouse-draw-coordinates/14257)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 7\
**Last updated:** [September 28, 2019, 4:57pm UTC](https://discourse.processing.org/t/how-to-get-x-and-y-lines-follow-mouse-draw-coordinates/14257 "2019-09-28T16:57:37Z")

</div>

Me and my 13 year old son just started to learn programming in processing with the guidence from “the coding train”. I have a hard time explaining how easy the coorinate system is. Drawing on paper and stuff but I guess…

---

## [Audio Example not working](https://discourse.processing.org/t/audio-example-not-working/14188)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 15\
**Last updated:** [September 28, 2019, 4:46pm UTC](https://discourse.processing.org/t/audio-example-not-working/14188 "2019-09-28T16:46:09Z")

</div>

Hi, I’m a total noob to p5 although I have done a fair amount of Processing work over the years. I am trying to get the “hello amplitude” sketch to work but keep getting errors… I took the files from here. https://the…

---

## [Quicksort visualization](https://discourse.processing.org/t/quicksort-visualization/14120)

<div class="topic-metadata">

**Author:** [@hawko](https://discourse.processing.org/u/hawko)\
**Replies:** 9\
**Last updated:** [September 28, 2019, 1:37pm UTC](https://discourse.processing.org/t/quicksort-visualization/14120 "2019-09-28T13:37:59Z")

</div>

I’m trying to write a quicksort visualization, but the sorting happens too fast. float\[\] values; void swap(float\[\] arr, int a, int b) { float temp = arr\[a\]; arr\[a\] = arr\[b\]; arr\[b\] = temp; // delay(1); red…

---

## [Particles not deleting at the same time](https://discourse.processing.org/t/particles-not-deleting-at-the-same-time/14190)

<div class="topic-metadata">

**Author:** [@flengwin](https://discourse.processing.org/u/flengwin)\
**Replies:** 3\
**Last updated:** [September 28, 2019, 5:06am UTC](https://discourse.processing.org/t/particles-not-deleting-at-the-same-time/14190 "2019-09-28T05:06:30Z")

</div>

Hello, I am working on a fireworks project. It seems when I increase the amount of particles to spawn in setup they delete at different times. I have them all updating at the same time so I don’t understand why they are …

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

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