# Latest

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

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

**Page:** 341

---

## [PGraphics recreation safely](https://discourse.processing.org/t/pgraphics-recreation-safely/21468)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 13\
**Last updated:** [June 4, 2020, 12:45pm UTC](https://discourse.processing.org/t/pgraphics-recreation-safely/21468 "2020-06-04T12:45:07Z")

</div>

if a PGraphics object is recreated with a different size, does the user need to invoke setup() again or is it safe to just keep calling draw()

---

## [Polysynth notes stop](https://discourse.processing.org/t/polysynth-notes-stop/21526)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 2\
**Last updated:** [June 4, 2020, 9:20am UTC](https://discourse.processing.org/t/polysynth-notes-stop/21526 "2020-06-04T09:20:29Z")

</div>

Hello all I am creating a tool to translate image to sound, specifically get brightness of certain pixels and use these as a trigger for a polyphonic synth. As long as a certain pixel has a certain brightness, the synth…

---

## [Anybody have looking at multiple java files; I have a fix for this but I can't get it to work on mac](https://discourse.processing.org/t/anybody-have-looking-at-multiple-java-files-i-have-a-fix-for-this-but-i-cant-get-it-to-work-on-mac/21545)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 2\
**Last updated:** [June 4, 2020, 9:01am UTC](https://discourse.processing.org/t/anybody-have-looking-at-multiple-java-files-i-have-a-fix-for-this-but-i-cant-get-it-to-work-on-mac/21545 "2020-06-04T09:01:29Z")

</div>

I filnally got this done. Remember that it is made for mac so with windows you need C:\\ as a root path and to add ‘’ to the path which is ‘\\’ . it will not start in the root path. it might take a while to display the fi…

---

## [Porting OpenGL Applications to Processing 3 Sketchs](https://discourse.processing.org/t/porting-opengl-applications-to-processing-3-sketchs/21547)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 1\
**Last updated:** [June 4, 2020, 8:01am UTC](https://discourse.processing.org/t/porting-opengl-applications-to-processing-3-sketchs/21547 "2020-06-04T08:01:58Z")

</div>

how would one go about porting an OpenGL Application to a Processing 3 Sketch, or if possible, directly run the OpenGL application with as small as modifications as possible eg maybe implement and use the OpenGL Applica…

---

## [Image error with face detector( noob question)](https://discourse.processing.org/t/image-error-with-face-detector-noob-question/21536)

<div class="topic-metadata">

**Author:** [@panic](https://discourse.processing.org/u/panic)\
**Replies:** 2\
**Last updated:** [June 3, 2020, 11:35pm UTC](https://discourse.processing.org/t/image-error-with-face-detector-noob-question/21536 "2020-06-03T23:35:26Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, I am trying to put an image instead of a square in the face detector code and on a video and it gives me error the image is too big, it d…

---

## [Draw with code programs for young coders](https://discourse.processing.org/t/draw-with-code-programs-for-young-coders/21518)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 10:14pm UTC](https://discourse.processing.org/t/draw-with-code-programs-for-young-coders/21518 "2020-06-03T22:14:54Z")

</div>

Hi community, I want to share with you a booklet with small JavaScript programs for young kids. These programs can be used as part of hour of code or with any other occasion to introduce young kids to the wonderful worl…

---

## [Getting Z coordinate in WEBGL with mouse](https://discourse.processing.org/t/getting-z-coordinate-in-webgl-with-mouse/21476)

<div class="topic-metadata">

**Author:** [@Nis](https://discourse.processing.org/u/Nis)\
**Replies:** 2\
**Last updated:** [June 3, 2020, 9:40pm UTC](https://discourse.processing.org/t/getting-z-coordinate-in-webgl-with-mouse/21476 "2020-06-03T21:40:17Z")

</div>

Like we have mouseX and mouseY for x and y coordinate by mouse click. How can I get for the Z coordinate. I need to add a box in the 3d blank space, wherever I click on that 3d blank.

---

## [Quiz with XML need help](https://discourse.processing.org/t/quiz-with-xml-need-help/21514)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 19\
**Last updated:** [June 3, 2020, 9:16pm UTC](https://discourse.processing.org/t/quiz-with-xml-need-help/21514 "2020-06-03T21:16:44Z")

</div>

Hi all, I am new to both coding and this forum so sorry in advance for whatever errors I am probably already making. For context, for this project, we were provided with a code skeleton. Right now I am having trouble fig…

---

## [P5 soundfile addCue is called multiple times](https://discourse.processing.org/t/p5-soundfile-addcue-is-called-multiple-times/21521)

<div class="topic-metadata">

**Author:** [@casperleerink](https://discourse.processing.org/u/casperleerink)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 8:08pm UTC](https://discourse.processing.org/t/p5-soundfile-addcue-is-called-multiple-times/21521 "2020-06-03T20:08:46Z")

</div>

Hi everyone! I am using the addCue method on a p5.soundFile. I invoke this method in the setup function. The callback function i provide is called multiple times (around 170) instead of just 1 time (which I expected). D…

---

## [Example of P5 + Tone on Node (Android, Linux)](https://discourse.processing.org/t/example-of-p5-tone-on-node-android-linux/21407)

<div class="topic-metadata">

**Author:** [@nxmusic](https://discourse.processing.org/u/nxmusic)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 7:20pm UTC](https://discourse.processing.org/t/example-of-p5-tone-on-node-android-linux/21407 "2020-06-03T19:20:07Z")

</div>

Hi I have done a little tutorial on how to set up a “node / express” working environment, serving static p5 and tone files. I leave the link in case someone can help you: https://github.com/computermusicneix/ToneP5-in…

---

## [Having trouble adding a window](https://discourse.processing.org/t/having-trouble-adding-a-window/21384)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 2\
**Last updated:** [June 3, 2020, 6:26pm UTC](https://discourse.processing.org/t/having-trouble-adding-a-window/21384 "2020-06-03T18:26:00Z")

</div>

Hello There, I am having trouble creating another window using G4P. I can add my controls, but I cannot add my content unless I make two windows. Of course I only want one, how do I make my controls compatible with my c…

---

## [About G4P GUI Builder](https://discourse.processing.org/t/about-g4p-gui-builder/21492)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [June 2, 2020, 10:30pm UTC](https://discourse.processing.org/t/about-g4p-gui-builder/21492 "2020-06-02T22:30:43Z")

</div>

So here is the thing I want to combine both of the windows. Is there a way

---

## [Rotation of cell phone in landscape](https://discourse.processing.org/t/rotation-of-cell-phone-in-landscape/21494)

<div class="topic-metadata">

**Author:** [@JoeMcKay](https://discourse.processing.org/u/JoeMcKay)\
**Replies:** 5\
**Last updated:** [June 3, 2020, 6:09pm UTC](https://discourse.processing.org/t/rotation-of-cell-phone-in-landscape/21494 "2020-06-03T18:09:32Z")

</div>

Question. I am using rotationY to get the rotation of the phone. In portrait, rotationY gives a value between 0 and 360 which is awesome, but when the phone is in landscape the Y values are between 90 to 0, 0 to 90, -…

---

## [Can I make my own library with my assembly code inside it and how would I do it](https://discourse.processing.org/t/can-i-make-my-own-library-with-my-assembly-code-inside-it-and-how-would-i-do-it/21515)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 4:14pm UTC](https://discourse.processing.org/t/can-i-make-my-own-library-with-my-assembly-code-inside-it-and-how-would-i-do-it/21515 "2020-06-03T16:14:51Z")

</div>

So what I need is to somehow include assembly instructions into my project I don’t have time for a lot of complicated things that I cannot understand. If building a library is the easies way to do it then I have to take …

---

## [Video Capture on RaspberryPI4 with Manjaro Arm](https://discourse.processing.org/t/video-capture-on-raspberrypi4-with-manjaro-arm/21523)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [June 3, 2020, 9:57am UTC](https://discourse.processing.org/t/video-capture-on-raspberrypi4-with-manjaro-arm/21523 "2020-06-03T09:57:20Z")

</div>

Lots of people still having issues with Video Capture, the solution at least on linux is not far away, even on exotic systems such as Manjaro Arm (64 bit OS) on RaspberryPI4. Here’s proof:- Now first of all you need u…

---

## [Raspberry Pi 8 giga](https://discourse.processing.org/t/raspberry-pi-8-giga/21461)

<div class="topic-metadata">

**Author:** [@Simmonsstummer](https://discourse.processing.org/u/Simmonsstummer)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 8:05am UTC](https://discourse.processing.org/t/raspberry-pi-8-giga/21461 "2020-06-02T08:05:54Z")

</div>

The new Raspberry Pi 4 with 8giga is out!! Is there any chance to update processing for pi to follow the raspberry pi progress? Right now you can’t use it even with the simplest sketch around. We have gave the new rasp…

---

## [Is there an easier way to get the updated Pixels](https://discourse.processing.org/t/is-there-an-easier-way-to-get-the-updated-pixels/21485)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 3:15pm UTC](https://discourse.processing.org/t/is-there-an-easier-way-to-get-the-updated-pixels/21485 "2020-06-03T15:15:46Z")

</div>

I want to get the pixels that were updated in code between a and b without comparing loadPixels () at a with loadPixels() at b. Is that possible? (-\> and how is that possible?)

---

## [Control volume with Minim Library](https://discourse.processing.org/t/control-volume-with-minim-library/21055)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 2:56pm UTC](https://discourse.processing.org/t/control-volume-with-minim-library/21055 "2020-06-03T14:56:59Z")

</div>

Hello, I would like to set volume of different audio output with mini library. Thanks

---

## [Problems with this code (Help please)](https://discourse.processing.org/t/problems-with-this-code-help-please/21517)

<div class="topic-metadata">

**Author:** [@panic](https://discourse.processing.org/u/panic)\
**Replies:** 2\
**Last updated:** [June 3, 2020, 5:12am UTC](https://discourse.processing.org/t/problems-with-this-code-help-please/21517 "2020-06-03T05:12:58Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am new to processing and am having trouble creating code. I’m using a face detector, but instead of a square I want the face to pixel that are…

---

## [Interactive tutorials using p5](https://discourse.processing.org/t/interactive-tutorials-using-p5/17091)

<div class="topic-metadata">

**Author:** [@stixan](https://discourse.processing.org/u/stixan)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 10:39am UTC](https://discourse.processing.org/t/interactive-tutorials-using-p5/17091 "2020-06-03T10:39:59Z")

</div>

I am very inspired by Tim Holman’s Tutorial Markdown project. It allows you to create interactive tutorials by injecting and running code into a canvas as you scroll down the page. Here’s a live demo. For a research pro…

---

## [How to make a Noisy Grain Gradient](https://discourse.processing.org/t/how-to-make-a-noisy-grain-gradient/21522)

<div class="topic-metadata">

**Author:** [@antoniofrom1984](https://discourse.processing.org/u/antoniofrom1984)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 10:13am UTC](https://discourse.processing.org/t/how-to-make-a-noisy-grain-gradient/21522 "2020-06-03T10:13:05Z")

</div>

Hello all, i am aware of lerp color, but i’m wondering if it’s possible to do a noisy gradient like the image, and apply to several elements, say a wall of shapes. i wondered if Pixels function was the way to do it, but…

---

## [Experiments with 64 bit OS on RaspberryPI4](https://discourse.processing.org/t/experiments-with-64-bit-os-on-raspberrypi4/20628)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 8:32am UTC](https://discourse.processing.org/t/experiments-with-64-bit-os-on-raspberrypi4/20628 "2020-06-03T08:32:45Z")

</div>

If you use the Raspbian Distro you are stuck with a 32bit OS for foreseeable future. I have been experimenting with the Manjaro distribution. Results are promising with my PiCrate (processing in ruby for RaspberryPI):- ,…

---

## [PApplet call order (multi-threading thread safety)](https://discourse.processing.org/t/papplet-call-order-multi-threading-thread-safety/21447)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 9\
**Last updated:** [June 1, 2020, 10:48am UTC](https://discourse.processing.org/t/papplet-call-order-multi-threading-thread-safety/21447 "2020-06-01T10:48:36Z")

</div>

what is the call order for the following methods: setup() draw() mousePressed() mouseDragged() mouseReleased() // related keyboard methods in particular: am i correct to assume that draw() will pause during the run o…

---

## [Making a light inside the room](https://discourse.processing.org/t/making-a-light-inside-the-room/21164)

<div class="topic-metadata">

**Author:** [@alkyonemis](https://discourse.processing.org/u/alkyonemis)\
**Replies:** 14\
**Last updated:** [June 3, 2020, 7:00am UTC](https://discourse.processing.org/t/making-a-light-inside-the-room/21164 "2020-06-03T07:00:03Z")

</div>

Hi, I am a new coder on processing. Normally, my code is 1000 lines.However, I prepared for you a simple code that I can modify on my code. The project last date is very soon. So, please be poilte and gentle. The code wh…

---

## [RGB blur experiments](https://discourse.processing.org/t/rgb-blur-experiments/6364)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 6:10pm UTC](https://discourse.processing.org/t/rgb-blur-experiments/6364 "2020-06-02T18:10:14Z")

</div>

I’ve been experimenting with blur and was quite happy about the results so far. I created classes and shaders that convert simple shapes (imagine a thin curved line with vertices) into thick ones (meshes) with generat…

---

## [createCapture() produces getUserMedia error on iOS Chrome even on HTTPS](https://discourse.processing.org/t/createcapture-produces-getusermedia-error-on-ios-chrome-even-on-https/21509)

<div class="topic-metadata">

**Author:** [@crafah](https://discourse.processing.org/u/crafah)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 7:58pm UTC](https://discourse.processing.org/t/createcapture-produces-getusermedia-error-on-ios-chrome-even-on-https/21509 "2020-06-02T19:58:23Z")

</div>

I have noticed that a sketch I’m working on, which uses createCapture() to access the webcam, hasn’t been working on Chrome on my iPhone (version 83.0,4103.88). I noticed this issue on GitHub that addresses the problem. …

---

## [For loop is not being called](https://discourse.processing.org/t/for-loop-is-not-being-called/21493)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 6\
**Last updated:** [June 2, 2020, 4:43pm UTC](https://discourse.processing.org/t/for-loop-is-not-being-called/21493 "2020-06-02T16:43:25Z")

</div>

I am working through a snake game program and have run into a really odd problem. Everything works except that the snake does not crash into itself. When the snake runs into itself the screen should turn red temporarily.…

---

## [Ellipse with large StrokeWeight not displaying correctly on mobile](https://discourse.processing.org/t/ellipse-with-large-strokeweight-not-displaying-correctly-on-mobile/21450)

<div class="topic-metadata">

**Author:** [@ella\_d](https://discourse.processing.org/u/ella_d)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 4:16pm UTC](https://discourse.processing.org/t/ellipse-with-large-strokeweight-not-displaying-correctly-on-mobile/21450 "2020-06-02T16:16:27Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’ve got the following very basic code: function setup() { createCanvas(windowWidth, windowHeight); } function draw() { background(25…

---

## [Save drawn Constructs](https://discourse.processing.org/t/save-drawn-constructs/21473)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 9\
**Last updated:** [June 2, 2020, 3:20pm UTC](https://discourse.processing.org/t/save-drawn-constructs/21473 "2020-06-02T15:20:00Z")

</div>

Hello. I want to save drawn constructs, if they are too big to recalculate every tick. I don’t know exactly how it works, but I think it works with PMatrix. My Idea was: ConstructXY x; void setup(){ x = new ConstructXY…

---

## [Size() Bug in Processing 3.5.4](https://discourse.processing.org/t/size-bug-in-processing-3-5-4/21431)

<div class="topic-metadata">

**Author:** [@brent](https://discourse.processing.org/u/brent)\
**Replies:** 5\
**Last updated:** [June 2, 2020, 3:13pm UTC](https://discourse.processing.org/t/size-bug-in-processing-3-5-4/21431 "2020-06-02T15:13:38Z")

</div>

I’m trying to position rectangles for the UI of a basic painting program in relation to the Width and Height of the window. I’ve looked elsewhere and found I should introduce ‘size()’ in ‘settings()’ as opposed to ‘setup…

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

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