# Latest

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

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

**Page:** 203

---

## [Trying to store the previous value of a variable](https://discourse.processing.org/t/trying-to-store-the-previous-value-of-a-variable/31606)

<div class="topic-metadata">

**Author:** [@G03TH3](https://discourse.processing.org/u/G03TH3)\
**Replies:** 6\
**Last updated:** [August 10, 2021, 8:45am UTC](https://discourse.processing.org/t/trying-to-store-the-previous-value-of-a-variable/31606 "2021-08-10T08:45:22Z")

</div>

I’m attempting to create a ball that is moved through the x-axis reading data from an ultrasonic sensor connected to an Arduino, since the ultrasonic sensor sometimes does not gets the wished value for a second(given to …

---

## [Creating and removing one object from an array](https://discourse.processing.org/t/creating-and-removing-one-object-from-an-array/31601)

<div class="topic-metadata">

**Author:** [@atagger](https://discourse.processing.org/u/atagger)\
**Replies:** 14\
**Last updated:** [August 9, 2021, 8:32pm UTC](https://discourse.processing.org/t/creating-and-removing-one-object-from-an-array/31601 "2021-08-09T20:32:31Z")

</div>

This is probably a really silly question, but I can’t seem to find an answer. If you want to create one object and then delete it, what is the typical way to do this? Since I only have one object I don’t want to push it …

---

## [Processing-p5-convert](https://discourse.processing.org/t/processing-p5-convert/31586)

<div class="topic-metadata">

**Author:** [@dkessner](https://discourse.processing.org/u/dkessner)\
**Replies:** 2\
**Last updated:** [August 9, 2021, 5:49pm UTC](https://discourse.processing.org/t/processing-p5-convert/31586 "2021-08-09T17:49:54Z")

</div>

Hello Processing community! First of all, thank you to all of the Processing and p5.js developers! I have been lurking in the shadows of your great work for several years now. I teach Math and Computer Science at a gi…

---

## [Cyrillic characters in the Android application](https://discourse.processing.org/t/cyrillic-characters-in-the-android-application/19082)

<div class="topic-metadata">

**Author:** [@dron3903](https://discourse.processing.org/u/dron3903)\
**Replies:** 17\
**Last updated:** [August 9, 2021, 5:05pm UTC](https://discourse.processing.org/t/cyrillic-characters-in-the-android-application/19082 "2021-08-09T17:05:55Z")

</div>

Hello forum users. I am having a problem with Cyrillic characters. When launching the application on the android, gibberish will turn out. Someone knows how to fix it. Здравствуйте форумчане. У меня возникла проблема с …

---

## [Happy Anniversary](https://discourse.processing.org/t/happy-anniversary/31648)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 0\
**Last updated:** [August 9, 2021, 4:24pm UTC](https://discourse.processing.org/t/happy-anniversary/31648 "2021-08-09T16:24:08Z")

</div>

Happy anniversary @REAS @shiffman @fry :birthday:

---

## [Beat Detection Algorithm help / feedback](https://discourse.processing.org/t/beat-detection-algorithm-help-feedback/31588)

<div class="topic-metadata">

**Author:** [@atagger](https://discourse.processing.org/u/atagger)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 9:42pm UTC](https://discourse.processing.org/t/beat-detection-algorithm-help-feedback/31588 "2021-08-06T21:42:40Z")

</div>

I am trying to recreate an algorithm from this link - specifically the one for frequency selected sound energy: Frequency selected sound energy In the author’s work he uses a constant C set to 250. This constant does n…

---

## [Do i need to upgrade Sketch?](https://discourse.processing.org/t/do-i-need-to-upgrade-sketch/31645)

<div class="topic-metadata">

**Author:** [@sjriga](https://discourse.processing.org/u/sjriga)\
**Replies:** 1\
**Last updated:** [August 9, 2021, 2:31pm UTC](https://discourse.processing.org/t/do-i-need-to-upgrade-sketch/31645 "2021-08-09T14:31:47Z")

</div>

Hi, I’m unable to render 3D in my current version of Sketch, where/how do I upgrade?

---

## [Reading pixels from an image](https://discourse.processing.org/t/reading-pixels-from-an-image/31592)

<div class="topic-metadata">

**Author:** [@Kiliad](https://discourse.processing.org/u/Kiliad)\
**Replies:** 32\
**Last updated:** [August 9, 2021, 10:58am UTC](https://discourse.processing.org/t/reading-pixels-from-an-image/31592 "2021-08-09T10:58:05Z")

</div>

Hi. I’m having a problem with what I thought would be a a very simple piece of code. There’s not much point posting any of my attempts as I’m confused enough as is. Ultimately I have something more complex in mind, bu…

---

## [How to make my rects bigger based on proximity (bigger the closer to my mouse) pjs](https://discourse.processing.org/t/how-to-make-my-rects-bigger-based-on-proximity-bigger-the-closer-to-my-mouse-pjs/31637)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 15\
**Last updated:** [August 9, 2021, 10:50am UTC](https://discourse.processing.org/t/how-to-make-my-rects-bigger-based-on-proximity-bigger-the-closer-to-my-mouse-pjs/31637 "2021-08-09T10:50:22Z")

</div>

void setup() { frameRate(60); size(1020, 510); } void draw() { background(0); int spacing\_x = 45; int spacing\_y = 45; for (int x = 0; x \< width + spacing\_x; x = x + spacing\_x) { for (int y = 0; y \< …

---

## [Processing to read Arduino](https://discourse.processing.org/t/processing-to-read-arduino/31614)

<div class="topic-metadata">

**Author:** [@Kanuta](https://discourse.processing.org/u/Kanuta)\
**Replies:** 7\
**Last updated:** [August 9, 2021, 10:32am UTC](https://discourse.processing.org/t/processing-to-read-arduino/31614 "2021-08-09T10:32:12Z")

</div>

Hello! I am trying to get Processing to read LDR sensor values from Arduino to create moving images but it doesn’t seem to work. Arduino reads the changes fine but Processing keeps showing 0’s and constant numbers. I am…

---

## [Loops using arrays](https://discourse.processing.org/t/loops-using-arrays/30253)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 8\
**Last updated:** [August 9, 2021, 10:13am UTC](https://discourse.processing.org/t/loops-using-arrays/30253 "2021-08-09T10:13:05Z")

</div>

what is wrong with this code? Why does not the ellipses change colors? \< color c\[\]; int x = 0; void setup() { size(400,400); c\[0\]=color(255, 0, 0); // first color c\[1\]=color(0, 255, 0); // second c\[2\]=color(0, 0,…

---

## [Processing online game](https://discourse.processing.org/t/processing-online-game/31639)

<div class="topic-metadata">

**Author:** [@Arsenii237](https://discourse.processing.org/u/Arsenii237)\
**Replies:** 1\
**Last updated:** [August 9, 2021, 8:18am UTC](https://discourse.processing.org/t/processing-online-game/31639 "2021-08-09T08:18:33Z")

</div>

How to make a local game for phones.

---

## [Processing bug - setting A (object) to B (object) and modifying A, it will change B too!](https://discourse.processing.org/t/processing-bug-setting-a-object-to-b-object-and-modifying-a-it-will-change-b-too/31627)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [August 8, 2021, 9:07pm UTC](https://discourse.processing.org/t/processing-bug-setting-a-object-to-b-object-and-modifying-a-it-will-change-b-too/31627 "2021-08-08T21:07:31Z")

</div>

Hello everyone! There is an issue with PVectors and objects. If you do this: PVector a = new PVector(0,0); PVector b = new PVector(100,100); PVector c = a; c.lerp(b,0.5); println(a,c); //prints \[ 50.0, 50.0, 0.0 \] \[ 5…

---

## [Signed Package export isues](https://discourse.processing.org/t/signed-package-export-isues/27718)

<div class="topic-metadata">

**Author:** [@gimly1000](https://discourse.processing.org/u/gimly1000)\
**Replies:** 5\
**Last updated:** [August 8, 2021, 5:59pm UTC](https://discourse.processing.org/t/signed-package-export-isues/27718 "2021-08-08T17:59:50Z")

</div>

I can’t figure out how to export a signed package. the first time i tried i got a message saying i needed to change the name in the XML file. after doing so it then wanted me to “add an icon to the sketch folder” after a…

---

## [Editing PShape vertices vs drawing immediate mode](https://discourse.processing.org/t/editing-pshape-vertices-vs-drawing-immediate-mode/31626)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 0\
**Last updated:** [August 8, 2021, 3:59pm UTC](https://discourse.processing.org/t/editing-pshape-vertices-vs-drawing-immediate-mode/31626 "2021-08-08T15:59:31Z")

</div>

I knew that PShape is generally faster than immediate mode (begin/endShape), but I didn’t know if editing PShape vertices before drawing ends up slower or faster than the immediate mode. So I tested it with the following…

---

## [The get() function with width and height not working](https://discourse.processing.org/t/the-get-function-with-width-and-height-not-working/31613)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 10\
**Last updated:** [August 8, 2021, 9:28am UTC](https://discourse.processing.org/t/the-get-function-with-width-and-height-not-working/31613 "2021-08-08T09:28:50Z")

</div>

The code is very simple and I am referring to \<https://processing.org/reference/get\_.html\> But when I try to use get(100, 100, 5, 5) I get the error “cannot convert from PImage to int”. Is it me, or the code? PImage im…

---

## [Uploading jpeg files= removed add file feature](https://discourse.processing.org/t/uploading-jpeg-files-removed-add-file-feature/31618)

<div class="topic-metadata">

**Author:** [@gregts13](https://discourse.processing.org/u/gregts13)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 12:39am UTC](https://discourse.processing.org/t/uploading-jpeg-files-removed-add-file-feature/31618 "2021-08-08T00:39:09Z")

</div>

as you can see someone has removed the browse the computer for files to upload on the add files I wanted to upload a few pictures to an existing p5.js sketch, but can’t as the feature is gone what do I do now??

---

## [Faster Rendering Techniques in P3D?](https://discourse.processing.org/t/faster-rendering-techniques-in-p3d/31465)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 16\
**Last updated:** [August 7, 2021, 2:37pm UTC](https://discourse.processing.org/t/faster-rendering-techniques-in-p3d/31465 "2021-08-07T14:37:41Z")

</div>

I’ve made a very large 3D game with Processing, and for the past few months, I’ve dealt with pretty shotty performance, considering only 2,000 or so quads are being drawn at any given time. With enough workarounds, I’ve …

---

## [How to add to an ArrayList every x seconds?](https://discourse.processing.org/t/how-to-add-to-an-arraylist-every-x-seconds/31609)

<div class="topic-metadata">

**Author:** [@chaotic.rabbit](https://discourse.processing.org/u/chaotic.rabbit)\
**Replies:** 1\
**Last updated:** [August 7, 2021, 11:29am UTC](https://discourse.processing.org/t/how-to-add-to-an-arraylist-every-x-seconds/31609 "2021-08-07T11:29:14Z")

</div>

void setup(){ jellies = new ArrayList(); for(int i=0; i\<=5; i++){ jellies.add(new Jellyfish(random(0, 800), random(height), random(-40, 40), random(0.05, 0.35))); } for(int i = jellies.size()-1; i\>=0; i–){ Jellyfis…

---

## [Unable to perform CSS image-rendering on p5 canvas in the browser](https://discourse.processing.org/t/unable-to-perform-css-image-rendering-on-p5-canvas-in-the-browser/31600)

<div class="topic-metadata">

**Author:** [@willyfly](https://discourse.processing.org/u/willyfly)\
**Replies:** 4\
**Last updated:** [August 7, 2021, 10:12am UTC](https://discourse.processing.org/t/unable-to-perform-css-image-rendering-on-p5-canvas-in-the-browser/31600 "2021-08-07T10:12:43Z")

</div>

First, sorry for my English and I’ll try to explain. I’m trying to display pixelated image on p5 canvas in the browser by providing the canvas element in style.css with image-rendering property. I found code below by Be…

---

## [Try to access parseObj(model,strings) in P5 code](https://discourse.processing.org/t/try-to-access-parseobj-model-strings-in-p5-code/31593)

<div class="topic-metadata">

**Author:** [@pirela](https://discourse.processing.org/u/pirela)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 8:34pm UTC](https://discourse.processing.org/t/try-to-access-parseobj-model-strings-in-p5-code/31593 "2021-08-06T20:34:23Z")

</div>

I create obj data on the fly and want to use it directly without going through a file. loadModel( model, fileName) uses a file, but internally it uses the function : (line 100206 of p5.js) : function parseObj(model, …

---

## [Add beep to your project](https://discourse.processing.org/t/add-beep-to-your-project/31602)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 6:15pm UTC](https://discourse.processing.org/t/add-beep-to-your-project/31602 "2021-08-06T18:15:50Z")

</div>

int tick = 10; for (int i = 0; i \< tick; ++i) { println("Beep : " + i); // Ring the bell again using the Toolkit java.awt.Toolkit.getDefaultToolkit().beep(); try { Thread.sleep(1011); …

---

## [Set size() from calculations within the sketch](https://discourse.processing.org/t/set-size-from-calculations-within-the-sketch/31594)

<div class="topic-metadata">

**Author:** [@LindowMan](https://discourse.processing.org/u/LindowMan)\
**Replies:** 4\
**Last updated:** [August 6, 2021, 12:39pm UTC](https://discourse.processing.org/t/set-size-from-calculations-within-the-sketch/31594 "2021-08-06T12:39:09Z")

</div>

Hi! I searched the forum but didn’t really find an answer… I have a sketch that generates a list of lists of integers(it’s what the apply\_rule function in the screenshot does). Some calculations are performed and I …

---

## [Creative Technologist Role](https://discourse.processing.org/t/creative-technologist-role/31595)

<div class="topic-metadata">

**Author:** [@George](https://discourse.processing.org/u/George)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 12:08pm UTC](https://discourse.processing.org/t/creative-technologist-role/31595 "2021-08-06T12:08:53Z")

</div>

If you’re looking to grow as a creative technologist and challenge yourself in areas such as generative art, kinectic art and lots of LED lighting using a broad range of tools such as Processing / Arduino / JS and more t…

---

## [Can not update save image](https://discourse.processing.org/t/can-not-update-save-image/30654)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 8:31am UTC](https://discourse.processing.org/t/can-not-update-save-image/30654 "2021-08-06T08:31:03Z")

</div>

hi i am using ketai camera to take shoots of images and save them to folder the sketch works fine and save the pics to the folder but when start new shoots the pics in the folder remains the old once not the newer desp…

---

## [Help - push an array into array simple question](https://discourse.processing.org/t/help-push-an-array-into-array-simple-question/31577)

<div class="topic-metadata">

**Author:** [@atagger](https://discourse.processing.org/u/atagger)\
**Replies:** 12\
**Last updated:** [August 6, 2021, 12:34am UTC](https://discourse.processing.org/t/help-push-an-array-into-array-simple-question/31577 "2021-08-06T00:34:10Z")

</div>

I’m racking my head not understanding why this doesn’t work. i was expecting the sampleBuffer array to become a length 32 array containing 32 arrays each with 3 random numbers. Instead I get a length 32 array of 32 arra…

---

## [How to draw with coordinates from face-api.js?](https://discourse.processing.org/t/how-to-draw-with-coordinates-from-face-api-js/31562)

<div class="topic-metadata">

**Author:** [@hermitcrab](https://discourse.processing.org/u/hermitcrab)\
**Replies:** 3\
**Last updated:** [August 5, 2021, 9:15pm UTC](https://discourse.processing.org/t/how-to-draw-with-coordinates-from-face-api-js/31562 "2021-08-05T21:15:56Z")

</div>

I have this code from GitHub - WebDevSimplified/Face-Detection-JavaScript, using face-api.js. const video = document.getElementById('video') Promise.all(\[ faceapi.nets.tinyFaceDetector.loadFromUri('/models'), facea…

---

## [Beginner question/s for a simple project](https://discourse.processing.org/t/beginner-question-s-for-a-simple-project/31570)

<div class="topic-metadata">

**Author:** [@sloppy](https://discourse.processing.org/u/sloppy)\
**Replies:** 4\
**Last updated:** [August 5, 2021, 8:52am UTC](https://discourse.processing.org/t/beginner-question-s-for-a-simple-project/31570 "2021-08-05T08:52:59Z")

</div>

Hi everyone, I’ve just started learning P5 and have just made an simplistic randomized program. I’m looking to make it a touch more complex but the 3 things I want to do, I don’t even have the coding vocabulary/thought…

---

## [Variable inside a string](https://discourse.processing.org/t/variable-inside-a-string/31532)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 5\
**Last updated:** [August 4, 2021, 10:50pm UTC](https://discourse.processing.org/t/variable-inside-a-string/31532 "2021-08-04T22:50:02Z")

</div>

I want to make a string that changes depending on the variable so in my example hello and the number would have to touch, so no spaces and the x should be the number that x is Float x; Void draw(){ X=random(30); Print(H…

---

## [For loop matrix index](https://discourse.processing.org/t/for-loop-matrix-index/31508)

<div class="topic-metadata">

**Author:** [@niuuin](https://discourse.processing.org/u/niuuin)\
**Replies:** 14\
**Last updated:** [August 4, 2021, 12:52pm UTC](https://discourse.processing.org/t/for-loop-matrix-index/31508 "2021-08-04T12:52:19Z")

</div>

int total; float itemSize; void setup() { size(800, 800); pixelDensity(2); smooth(); rectMode(CENTER); total = 4; itemSize = width/total; } void draw() { clear(); for (int i = 0; i \< sq(total); i ++) …

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

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