# Latest

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

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

**Page:** 175

---

## [Towers of Hanoy, made P. Java, online](https://discourse.processing.org/t/towers-of-hanoy-made-p-java-online/33761)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [November 25, 2021, 11:53pm UTC](https://discourse.processing.org/t/towers-of-hanoy-made-p-java-online/33761 "2021-11-25T23:53:05Z")

</div>

Online Hanoy now it works, i made a Hanoy clone, with P3 Java, and run it with a script on my homepage. You can choose number of stones and normal or chaos. chaos set the stones random. its pitty slow but im happy its…

---

## [Generate seed while runtime](https://discourse.processing.org/t/generate-seed-while-runtime/33736)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 8:16pm UTC](https://discourse.processing.org/t/generate-seed-while-runtime/33736 "2021-11-25T20:16:37Z")

</div>

Hey guys, how can I create a unique seed while run time to save the script with this seed and use it for random functions. The goal is to have an instance of the script that returns the same result while using random fu…

---

## [Newbie advice... stop a blinking cursor](https://discourse.processing.org/t/newbie-advice-stop-a-blinking-cursor/33734)

<div class="topic-metadata">

**Author:** [@AudioBabble](https://discourse.processing.org/u/AudioBabble)\
**Replies:** 4\
**Last updated:** [November 25, 2021, 8:11pm UTC](https://discourse.processing.org/t/newbie-advice-stop-a-blinking-cursor/33734 "2021-11-25T20:11:24Z")

</div>

I’m totally new to processing and to coding in general. At the moment I’m really not sure if my brain is capable of learning code… have been trying to understand some of the reference section with limited success. I’ve…

---

## [Changing a normal string to camelCase](https://discourse.processing.org/t/changing-a-normal-string-to-camelcase/33744)

<div class="topic-metadata">

**Author:** [@it\_begins](https://discourse.processing.org/u/it_begins)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 12:20pm UTC](https://discourse.processing.org/t/changing-a-normal-string-to-camelcase/33744 "2021-11-25T12:20:38Z")

</div>

Hi, i have to change a set of string to calmelcase i.e removing punctuations and spaces,and capitalizing the first letter of each word… Using only these string functions: charAt(), length(), toUpperCase(), toLowerCase(…

---

## [Problem in code 2](https://discourse.processing.org/t/problem-in-code-2/33755)

<div class="topic-metadata">

**Author:** [@dohvk](https://discourse.processing.org/u/dohvk)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 3:22pm UTC](https://discourse.processing.org/t/problem-in-code-2/33755 "2021-11-25T15:22:36Z")

</div>

Hello everyone, I have a problem with my code. I would want to click on one single rectangle to change the color of it but every rectangle change color at the same time. Can someone help? And is there a function to give …

---

## [Still struggling with Interactive Graph](https://discourse.processing.org/t/still-struggling-with-interactive-graph/33708)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 4\
**Last updated:** [November 25, 2021, 1:40pm UTC](https://discourse.processing.org/t/still-struggling-with-interactive-graph/33708 "2021-11-25T13:40:24Z")

</div>

Hello beginners want to ask, I want to make an interactive graph of the incoming data array. I have three types of data which are rpm, torque and power. I send all the data via the Arduino serial. I created the graph usi…

---

## [Turning a set of string to constant case](https://discourse.processing.org/t/turning-a-set-of-string-to-constant-case/33745)

<div class="topic-metadata">

**Author:** [@it\_begins](https://discourse.processing.org/u/it_begins)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 12:18pm UTC](https://discourse.processing.org/t/turning-a-set-of-string-to-constant-case/33745 "2021-11-25T12:18:56Z")

</div>

Help needed urgently. I have a question that needs to change a set of strings to constant case. That is replacing spaces with underscores, removing punctuations, and capitalizing all letters. using only these string fun…

---

## [How to make histogram but the PImage location is not 0, 0](https://discourse.processing.org/t/how-to-make-histogram-but-the-pimage-location-is-not-0-0/33742)

<div class="topic-metadata">

**Author:** [@RNWA](https://discourse.processing.org/u/RNWA)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 12:06pm UTC](https://discourse.processing.org/t/how-to-make-histogram-but-the-pimage-location-is-not-0-0/33742 "2021-11-25T12:06:56Z")

</div>

Hi, im a beginner in processing and tried to make histogram from PImage but the location i want to start it for example 200, 100. I tried play around with it and i got nothing, so pls any help i really appreciate it, and…

---

## [Is it Possible to change icon window exported application?](https://discourse.processing.org/t/is-it-possible-to-change-icon-window-exported-application/33748)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 0\
**Last updated:** [November 25, 2021, 8:22am UTC](https://discourse.processing.org/t/is-it-possible-to-change-icon-window-exported-application/33748 "2021-11-25T08:22:23Z")

</div>

I made a simple software to display the data from the sensor using processing when I export the application it worked no problem. But the window icon is just a “plain black square”. Software that I made for Windows 64 b…

---

## [When do you need "var"? Can you only use "let" to declare variables?](https://discourse.processing.org/t/when-do-you-need-var-can-you-only-use-let-to-declare-variables/19673)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 5\
**Last updated:** [November 25, 2021, 2:42am UTC](https://discourse.processing.org/t/when-do-you-need-var-can-you-only-use-let-to-declare-variables/19673 "2021-11-25T02:42:50Z")

</div>

Hello Forum, Can p5js variables be declared and used exclusively with “let” or are there instances when you need “var”? Thank you for your help let move = 150; let on = true; //or var move; var on;

---

## [Color Histogram by Greg Borenstein](https://discourse.processing.org/t/color-histogram-by-greg-borenstein/33727)

<div class="topic-metadata">

**Author:** [@RNWA](https://discourse.processing.org/u/RNWA)\
**Replies:** 0\
**Last updated:** [November 24, 2021, 5:10pm UTC](https://discourse.processing.org/t/color-histogram-by-greg-borenstein/33727 "2021-11-24T17:10:47Z")

</div>

Hi guys, recently i download library by Greg Borenstein from his website which was PSVM and i tried to look at his example but his code hasn’t finished yet, and i got Syntax Error - Missing operator after return histogra…

---

## [System Performance](https://discourse.processing.org/t/system-performance/33702)

<div class="topic-metadata">

**Author:** [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 9:42pm UTC](https://discourse.processing.org/t/system-performance/33702 "2021-11-24T21:42:55Z")

</div>

I will be upgrading to a 4k display from the current 1080P. I realize that at times, the increased pixel count will decrease my framerate/ performance. So I am trying to decide if a new system is warranted (or not). For …

---

## [P5.js choosing randomly from an array of functions](https://discourse.processing.org/t/p5-js-choosing-randomly-from-an-array-of-functions/33666)

<div class="topic-metadata">

**Author:** [@okkobroderson](https://discourse.processing.org/u/okkobroderson)\
**Replies:** 10\
**Last updated:** [November 24, 2021, 7:09pm UTC](https://discourse.processing.org/t/p5-js-choosing-randomly-from-an-array-of-functions/33666 "2021-11-24T19:09:22Z")

</div>

hi, first post! i have declared an array of functions like funx = \[func1, func2, ...\]; in the draw loop i want to call theese randomly like funx\[random(funx)\](); it works when i call the functions by index like fun…

---

## [Problem with x-coordinate of the subsection of the source image in image() on safari. P5JS](https://discourse.processing.org/t/problem-with-x-coordinate-of-the-subsection-of-the-source-image-in-image-on-safari-p5js/33676)

<div class="topic-metadata">

**Author:** [@kalwas](https://discourse.processing.org/u/kalwas)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 5:23pm UTC](https://discourse.processing.org/t/problem-with-x-coordinate-of-the-subsection-of-the-source-image-in-image-on-safari-p5js/33676 "2021-11-24T17:23:48Z")

</div>

Hi, I have a problem with my work. On all browsers it works correctly only not on safari. I noticed that the error occurs (only on safari) if sx in image() in line 66 is different than 0. Does anyone have an idea why th…

---

## [Using React with p5.js (React Hooks and Context)](https://discourse.processing.org/t/using-react-with-p5-js-react-hooks-and-context/10521)

<div class="topic-metadata">

**Author:** [@atoro](https://discourse.processing.org/u/atoro)\
**Replies:** 8\
**Last updated:** [November 24, 2021, 4:46pm UTC](https://discourse.processing.org/t/using-react-with-p5-js-react-hooks-and-context/10521 "2021-11-24T16:46:38Z")

</div>

Using React with p5.js This project demonstrates how to combine React (including the latest features such as hooks and context) and p5.js: Multiple p5 sketches on a same screen; Multiple instances of one sketch mount…

---

## [Why is P3D drawing to the pixel grid wrong?](https://discourse.processing.org/t/why-is-p3d-drawing-to-the-pixel-grid-wrong/33717)

<div class="topic-metadata">

**Author:** [@rodsn](https://discourse.processing.org/u/rodsn)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 2:53pm UTC](https://discourse.processing.org/t/why-is-p3d-drawing-to-the-pixel-grid-wrong/33717 "2021-11-24T14:53:12Z")

</div>

PImage sprite; int size = 10; void setup() { sprite = loadImage("sprite\_10.png"); size(500, 500, P3D); ortho(); noStroke(); noSmooth(); } void draw() { background(255); loadPixels(); sprite.loadPixels(); print…

---

## [Other video libraries](https://discourse.processing.org/t/other-video-libraries/33721)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 2:49pm UTC](https://discourse.processing.org/t/other-video-libraries/33721 "2021-11-24T14:49:33Z")

</div>

If there are people that have positive experience with using a library other then the processing video library then please share. At this point, videos are often black, skipping threw frames is missing a ton of inbetwee…

---

## [Low frequency oscillator](https://discourse.processing.org/t/low-frequency-oscillator/33711)

<div class="topic-metadata">

**Author:** [@moutcast](https://discourse.processing.org/u/moutcast)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 1:43pm UTC](https://discourse.processing.org/t/low-frequency-oscillator/33711 "2021-11-24T13:43:06Z")

</div>

hi, beginner here. how can i create a low frequency oscillator with adjustable frequency? i am trying soundloop but i cant figure out how to adjust the tempo from a function with a slider. other examples very welcome?…

---

## [Processing Serial. list() no show anything](https://discourse.processing.org/t/processing-serial-list-no-show-anything/33714)

<div class="topic-metadata">

**Author:** [@jun](https://discourse.processing.org/u/jun)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 12:21pm UTC](https://discourse.processing.org/t/processing-serial-list-no-show-anything/33714 "2021-11-24T12:21:23Z")

</div>

Hi, I have had this problem for quite a long time, processing can’t find my serial list, even I printArray(Serial.list()); it shows nothing. Can I ask how to solve it? Or anyone knows how processing detects serial, m…

---

## [2d camera in processing](https://discourse.processing.org/t/2d-camera-in-processing/33659)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 3\
**Last updated:** [November 24, 2021, 3:30am UTC](https://discourse.processing.org/t/2d-camera-in-processing/33659 "2021-11-24T03:30:55Z")

</div>

Hello everyone, I need help making a 2d camera for a game I’ve been making. I want to be able to rotate an image to point towards the mouse or “looking”. Unfortunately, I have no idea how to go about this.

---

## [Problem in code](https://discourse.processing.org/t/problem-in-code/33700)

<div class="topic-metadata">

**Author:** [@dohvk](https://discourse.processing.org/u/dohvk)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 8:05pm UTC](https://discourse.processing.org/t/problem-in-code/33700 "2021-11-23T20:05:40Z")

</div>

Hello everyone! I am a beginner in Processing and I have a problem with my code. I have random rectangles but now i want them to be aligned: 4 rows in each 4 rectangles (16 in total). Can someone help? This is my code f…

---

## [The file"..." needs to be inside a sketch folder named "..."](https://discourse.processing.org/t/the-file-needs-to-be-inside-a-sketch-folder-named/25903)

<div class="topic-metadata">

**Author:** [@lafitte\_que](https://discourse.processing.org/u/lafitte_que)\
**Replies:** 10\
**Last updated:** [November 23, 2021, 6:12pm UTC](https://discourse.processing.org/t/the-file-needs-to-be-inside-a-sketch-folder-named/25903 "2021-11-23T18:12:49Z")

</div>

Hello, When using processing.py, I often have to open projects with multiple files inside a single folder. Every time I try opening the main file Processing wants to create a new folder even if the folder I am working w…

---

## [Use Webgl2 in p5js](https://discourse.processing.org/t/use-webgl2-in-p5js/33695)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 5:45pm UTC](https://discourse.processing.org/t/use-webgl2-in-p5js/33695 "2021-11-23T17:45:54Z")

</div>

Is there any way (with example prefered), to use WEBGL2? I have to make quite advanced shaders, that at this point I would prefer to move to three.js then missing out on certain shader features.

---

## [Help memory leak processing](https://discourse.processing.org/t/help-memory-leak-processing/33697)

<div class="topic-metadata">

**Author:** [@blacknazgul](https://discourse.processing.org/u/blacknazgul)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 5:21pm UTC](https://discourse.processing.org/t/help-memory-leak-processing/33697 "2021-11-23T17:21:14Z")

</div>

hello, i’m a noob in processing, and i have a problem when i run the sketch, memory usage goes up indefinitely this is my code import peasy.\*; import controlP5.\*; import processing.opengl.\*; import java.util.\*; Textar…

---

## [Sharing just the sketch?](https://discourse.processing.org/t/sharing-just-the-sketch/33667)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 4\
**Last updated:** [November 23, 2021, 11:02am UTC](https://discourse.processing.org/t/sharing-just-the-sketch/33667 "2021-11-23T11:02:20Z")

</div>

Hi , this is a very basic question. I was using p5js web editor to experiment on my sketches . However there is a lot of code written on a trial or error basis . Is there a way to just share the sketch ? I think with the…

---

## [Another Shader Toy sketch translated to JRubyArt](https://discourse.processing.org/t/another-shader-toy-sketch-translated-to-jrubyart/33694)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 3:10pm UTC](https://discourse.processing.org/t/another-shader-toy-sketch-translated-to-jrubyart/33694 "2021-11-23T15:10:33Z")

</div>

From time to time I find a nice Shadertoy sketch to convert to JRubyArt, I usually start using a default wrapper (simply inserting the shader code into the default wrapper see here. But often is quite easy to unwrap the …

---

## [Particles from webcam](https://discourse.processing.org/t/particles-from-webcam/33693)

<div class="topic-metadata">

**Author:** [@Mandarini6](https://discourse.processing.org/u/Mandarini6)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 3:02pm UTC](https://discourse.processing.org/t/particles-from-webcam/33693 "2021-11-23T15:02:10Z")

</div>

Good morning everyone, i was trying to create an ensable of particles recreated from images from the webcam. ideally i would like to be able to then move and distor those particles. i am stuck at the beginning. I know th…

---

## [Shader test for audio visualizer](https://discourse.processing.org/t/shader-test-for-audio-visualizer/33554)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 1:08pm UTC](https://discourse.processing.org/t/shader-test-for-audio-visualizer/33554 "2021-11-16T13:08:22Z")

</div>

Just sharing a work in progress. Its basically a combination of multiple shaders with a feedback loop for the image. it produces some interesting results and plays nicely with shapes drawn onto the canvas. Will post upda…

---

## [Displaying Arduino data but getting blurry, Need some help](https://discourse.processing.org/t/displaying-arduino-data-but-getting-blurry-need-some-help/33669)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 4\
**Last updated:** [November 23, 2021, 6:36am UTC](https://discourse.processing.org/t/displaying-arduino-data-but-getting-blurry-need-some-help/33669 "2021-11-23T06:36:08Z")

</div>

Hello, beginners want to ask again… I made a GUI and Display for the Arduino project and it was made using processing, where there are seven data that I will send to the display. Actually there is no error in the code t…

---

## [Transitioning from scalar to vector](https://discourse.processing.org/t/transitioning-from-scalar-to-vector/33680)

<div class="topic-metadata">

**Author:** [@ADG](https://discourse.processing.org/u/ADG)\
**Replies:** 3\
**Last updated:** [November 23, 2021, 4:25am UTC](https://discourse.processing.org/t/transitioning-from-scalar-to-vector/33680 "2021-11-23T04:25:44Z")

</div>

Hello, I’m trying to rewrite my programs & classes to use vectors. vectors themselves are easy, but going about the operations in p5.js has me getting lost in the syntax. As a simple example I make 2 vectors to create…

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

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