# Latest

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

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

**Page:** 240

---

## [Maximum call stack size exceeded error with merge sort function](https://discourse.processing.org/t/maximum-call-stack-size-exceeded-error-with-merge-sort-function/28913)

<div class="topic-metadata">

**Author:** [@michaelberge](https://discourse.processing.org/u/michaelberge)\
**Replies:** 5\
**Last updated:** [March 29, 2021, 5:13am UTC](https://discourse.processing.org/t/maximum-call-stack-size-exceeded-error-with-merge-sort-function/28913 "2021-03-29T05:13:34Z")

</div>

Here is the function, it calls ‘Uncaught RangeError: Maximum call stack size exceeded’ when run, I’m not sure why this is happening. I’m thinking somewhere it’s getting caught in an infinite loop: function mergeSort(val…

---

## [Translate function acting strangely (inverted)](https://discourse.processing.org/t/translate-function-acting-strangely-inverted/28935)

<div class="topic-metadata">

**Author:** [@mangouste77](https://discourse.processing.org/u/mangouste77)\
**Replies:** 1\
**Last updated:** [March 29, 2021, 3:27am UTC](https://discourse.processing.org/t/translate-function-acting-strangely-inverted/28935 "2021-03-29T03:27:11Z")

</div>

Hi, I’m learning processing and python with Peter Farrell Math Adventures. I’m coding Madlebrot set rendering and strangly I have to remove the translate(width/2,height/2) line to have the set origin centered. If I l…

---

## [Constrain one end of sine wave](https://discourse.processing.org/t/constrain-one-end-of-sine-wave/28914)

<div class="topic-metadata">

**Author:** [@brewthom](https://discourse.processing.org/u/brewthom)\
**Replies:** 3\
**Last updated:** [March 28, 2021, 11:33pm UTC](https://discourse.processing.org/t/constrain-one-end-of-sine-wave/28914 "2021-03-28T23:33:58Z")

</div>

I’m trying to figure out how to constrain one end of a sine wave so that the left end of the wave animation is “tied” to the mouse x and mouse y. I’m thinking i need PVectors, but not sure how to implement that. I’ve wor…

---

## [Audio in problem with Mac OS Catalina](https://discourse.processing.org/t/audio-in-problem-with-mac-os-catalina/28897)

<div class="topic-metadata">

**Author:** [@yannisky](https://discourse.processing.org/u/yannisky)\
**Replies:** 6\
**Last updated:** [March 28, 2021, 7:47pm UTC](https://discourse.processing.org/t/audio-in-problem-with-mac-os-catalina/28897 "2021-03-28T19:47:37Z")

</div>

Has anybody else encountered problems with getting the built-in mic to work with Processing with a new OS update? Same patches were working fine until I upgraded to Catalina. Somehow Processing can’t access the microphon…

---

## [Android Notification](https://discourse.processing.org/t/android-notification/28854)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 20\
**Last updated:** [March 28, 2021, 6:21pm UTC](https://discourse.processing.org/t/android-notification/28854 "2021-03-28T18:21:15Z")

</div>

Can someone Help me i need this for my Game

---

## [Removing objects once out of the canvas](https://discourse.processing.org/t/removing-objects-once-out-of-the-canvas/28884)

<div class="topic-metadata">

**Author:** [@yannisky](https://discourse.processing.org/u/yannisky)\
**Replies:** 8\
**Last updated:** [March 28, 2021, 5:41pm UTC](https://discourse.processing.org/t/removing-objects-once-out-of-the-canvas/28884 "2021-03-28T17:41:45Z")

</div>

Hello Forum! I made an object and class sketch to randomly generate curved vertex object in P3D. This is eventually goes over a movie. it works fine BUT after about a hundred or so times it gets called up (with the spa…

---

## [Internationalization improvements in Hindi](https://discourse.processing.org/t/internationalization-improvements-in-hindi/28770)

<div class="topic-metadata">

**Author:** [@akshaykumar23399](https://discourse.processing.org/u/akshaykumar23399)\
**Replies:** 2\
**Last updated:** [March 28, 2021, 4:43pm UTC](https://discourse.processing.org/t/internationalization-improvements-in-hindi/28770 "2021-03-28T16:43:14Z")

</div>

Respected Mentor , I hope you are safe and healthy at your places. My name is Akshay Kumar I am doing my graduation in UIET, MDU, Haryana ,India . This summer I would be very interested in expanding the p5.js web editor…

---

## [Issues with removing an object](https://discourse.processing.org/t/issues-with-removing-an-object/28920)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 4\
**Last updated:** [March 28, 2021, 3:14pm UTC](https://discourse.processing.org/t/issues-with-removing-an-object/28920 "2021-03-28T15:14:13Z")

</div>

Hi! I tried making a program, which makes use of the simplified for loop structure (for(p obj : pro){}) Inside of it, I made a condition stating that if the object obj is outside the screen or has age higher than maxAge…

---

## [Need help to send video with oscP5](https://discourse.processing.org/t/need-help-to-send-video-with-oscp5/28864)

<div class="topic-metadata">

**Author:** [@green](https://discourse.processing.org/u/green)\
**Replies:** 10\
**Last updated:** [March 28, 2021, 2:56pm UTC](https://discourse.processing.org/t/need-help-to-send-video-with-oscp5/28864 "2021-03-28T14:56:49Z")

</div>

Hello guys, I need some help with a couple of sketches where I’m using the oscP5 and the video libraries. In the first sketch I capture the video from my camera and then I extrapolate the RGB float variables and send the…

---

## [About Processing automatically converting double literals to floats](https://discourse.processing.org/t/about-processing-automatically-converting-double-literals-to-floats/28886)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 7\
**Last updated:** [March 28, 2021, 1:34pm UTC](https://discourse.processing.org/t/about-processing-automatically-converting-double-literals-to-floats/28886 "2021-03-28T13:34:46Z")

</div>

Hi everyone, In regular Java and other programming languages, this is well known that you can write : System.out.println(0.1 + 0.2 == 0.3); which gives false!! This is due to floating point precision and how computer…

---

## [P5 starts drawing only after web page is done loading](https://discourse.processing.org/t/p5-starts-drawing-only-after-web-page-is-done-loading/28829)

<div class="topic-metadata">

**Author:** [@ravenwit](https://discourse.processing.org/u/ravenwit)\
**Replies:** 3\
**Last updated:** [March 28, 2021, 1:27pm UTC](https://discourse.processing.org/t/p5-starts-drawing-only-after-web-page-is-done-loading/28829 "2021-03-28T13:27:14Z")

</div>

I have written a preloader animation (supposed to be showed while page is loading in background) with p5 javascript library. But I observed that the animation did not start until the entire web page was loaded up, in my …

---

## [Confuse about what beginCamera() and endCamera() does](https://discourse.processing.org/t/confuse-about-what-begincamera-and-endcamera-does/28798)

<div class="topic-metadata">

**Author:** [@Shubham](https://discourse.processing.org/u/Shubham)\
**Replies:** 5\
**Last updated:** [March 28, 2021, 8:59am UTC](https://discourse.processing.org/t/confuse-about-what-begincamera-and-endcamera-does/28798 "2021-03-28T08:59:55Z")

</div>

Beginner in processing and want to use camera function but unable to understand the use of beginCamera() and endCamera(). Can anybody give more information as the reference is also quite unclear?

---

## [Flocking as in NatureOfCode](https://discourse.processing.org/t/flocking-as-in-natureofcode/28912)

<div class="topic-metadata">

**Author:** [@manno](https://discourse.processing.org/u/manno)\
**Replies:** 5\
**Last updated:** [March 27, 2021, 11:37pm UTC](https://discourse.processing.org/t/flocking-as-in-natureofcode/28912 "2021-03-27T23:37:40Z")

</div>

Question on flocking. In many examples (and also on The Nature of Code) there’s something like: if (count \> 0) { sum.div(count); sum.normalize(); sum.mult(maxspeed); PVector steer = PVector.sub(…

---

## [Timer problem with the value](https://discourse.processing.org/t/timer-problem-with-the-value/28858)

<div class="topic-metadata">

**Author:** [@david27266361313](https://discourse.processing.org/u/david27266361313)\
**Replies:** 5\
**Last updated:** [March 27, 2021, 10:21pm UTC](https://discourse.processing.org/t/timer-problem-with-the-value/28858 "2021-03-27T22:21:23Z")

</div>

I have problem with my timer ,this homework is connect with arduino. My problem is when val==4,the value of sec won’t go properly, it just decrease maybe ten or more at a time,and I want it to decrease one second at a ti…

---

## [Displaying image on mouse click](https://discourse.processing.org/t/displaying-image-on-mouse-click/28906)

<div class="topic-metadata">

**Author:** [@Daphn](https://discourse.processing.org/u/Daphn)\
**Replies:** 1\
**Last updated:** [March 27, 2021, 7:42pm UTC](https://discourse.processing.org/t/displaying-image-on-mouse-click/28906 "2021-03-27T19:42:03Z")

</div>

Hello! This is my first time using processing and I can’t work my problem out. Hopefully someone can help! I am trying to display an image that follows the cursor of the mouse, and when the mouse is clicked I want a fl…

---

## [What is serial?](https://discourse.processing.org/t/what-is-serial/28851)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 7\
**Last updated:** [March 27, 2021, 6:13pm UTC](https://discourse.processing.org/t/what-is-serial/28851 "2021-03-27T18:13:19Z")

</div>

what is serial and what can you use it for? I have to be able to save a hiScore on a server, for example

---

## [Why is this ui function crashing my sketch when i build](https://discourse.processing.org/t/why-is-this-ui-function-crashing-my-sketch-when-i-build/28871)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 13\
**Last updated:** [March 27, 2021, 2:30pm UTC](https://discourse.processing.org/t/why-is-this-ui-function-crashing-my-sketch-when-i-build/28871 "2021-03-27T14:30:25Z")

</div>

i have a function called uiUpdate that runs fine in the preview but freezes the app when i build it. i know this function is responsible, but i don’t know why. here is the entire ui class, i have to comment out every uiU…

---

## [Tower Hanoi (recursive) in Processing](https://discourse.processing.org/t/tower-hanoi-recursive-in-processing/28902)

<div class="topic-metadata">

**Author:** [@dyehuda](https://discourse.processing.org/u/dyehuda)\
**Replies:** 1\
**Last updated:** [March 27, 2021, 2:23pm UTC](https://discourse.processing.org/t/tower-hanoi-recursive-in-processing/28902 "2021-03-27T14:23:19Z")

</div>

I wrote this recursive code for Hanoi tower, but it just draw the first and last position. I don’t understand why I cannot see each step please format code with \</\> button \* homework policy \* asking questions

---

## [Recreate canvas with p5 and Reactjs](https://discourse.processing.org/t/recreate-canvas-with-p5-and-reactjs/28900)

<div class="topic-metadata">

**Author:** [@caruso33](https://discourse.processing.org/u/caruso33)\
**Replies:** 2\
**Last updated:** [March 27, 2021, 2:10pm UTC](https://discourse.processing.org/t/recreate-canvas-with-p5-and-reactjs/28900 "2021-03-27T14:10:34Z")

</div>

Hi, I am trying to implement p5 with react. On the initial render the canvas gets created, however I want to restart the game by clicking a button. I see that the canvas is there but only it’s frame, it is never proper…

---

## [Show video in each element with a specific css class](https://discourse.processing.org/t/show-video-in-each-element-with-a-specific-css-class/28702)

<div class="topic-metadata">

**Author:** [@hilkeros](https://discourse.processing.org/u/hilkeros)\
**Replies:** 5\
**Last updated:** [March 27, 2021, 1:40pm UTC](https://discourse.processing.org/t/show-video-in-each-element-with-a-specific-css-class/28702 "2021-03-27T13:40:24Z")

</div>

I am looking for a way to show the same video in each div with a specific class and looked at different approaches, but I didn’t find a solution. It is not possible to pass a p5.Image as the content of a createDiv functi…

---

## [Counter and if commands](https://discourse.processing.org/t/counter-and-if-commands/28890)

<div class="topic-metadata">

**Author:** [@xiquip](https://discourse.processing.org/u/xiquip)\
**Replies:** 6\
**Last updated:** [March 27, 2021, 1:28pm UTC](https://discourse.processing.org/t/counter-and-if-commands/28890 "2021-03-27T13:28:06Z")

</div>

Hello, does anyone know why the color of the circle does not change when I reach 100? I do not know if it is a problem with the meter or what is happening var contador; var r = 0; var g = 0; var b = 255; function s…

---

## [Quad\_Strip: Okay, but how to do a line break in a bigger grid with Quad\_Strip?](https://discourse.processing.org/t/quad-strip-okay-but-how-to-do-a-line-break-in-a-bigger-grid-with-quad-strip/28623)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [March 27, 2021, 10:26am UTC](https://discourse.processing.org/t/quad-strip-okay-but-how-to-do-a-line-break-in-a-bigger-grid-with-quad-strip/28623 "2021-03-27T10:26:36Z")

</div>

Hello all, the reference has Quad\_Strip, but only for one line of quads. How can I make a bigger grid of QUAD\_STRIP? Actually, the main problem is the line break at the end of one line in the grid. I don’t want the ri…

---

## [How to add color for 3d terrain](https://discourse.processing.org/t/how-to-add-color-for-3d-terrain/28548)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 37\
**Last updated:** [March 27, 2021, 8:33am UTC](https://discourse.processing.org/t/how-to-add-color-for-3d-terrain/28548 "2021-03-27T08:33:59Z")

</div>

hi i need help how to make colors like this ?? thanks in advance

---

## [saveFrame function using background image and p3d](https://discourse.processing.org/t/saveframe-function-using-background-image-and-p3d/28889)

<div class="topic-metadata">

**Author:** [@kiernan](https://discourse.processing.org/u/kiernan)\
**Replies:** 5\
**Last updated:** [March 27, 2021, 2:45am UTC](https://discourse.processing.org/t/saveframe-function-using-background-image-and-p3d/28889 "2021-03-27T02:45:04Z")

</div>

I am having trouble using saveFrame to record a sketch which uses p3d with a background image. When I use saveFrame without the background image everything is captured fine and shows the sketch but when I put the backgro…

---

## [Performance improvement on a halftone grid particle system](https://discourse.processing.org/t/performance-improvement-on-a-halftone-grid-particle-system/28892)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 0\
**Last updated:** [March 26, 2021, 10:32pm UTC](https://discourse.processing.org/t/performance-improvement-on-a-halftone-grid-particle-system/28892 "2021-03-26T22:32:37Z")

</div>

Hi there I’m trying to create an isometric grid of dots that serves both as a halftone effect (which I have reached) and a particle system that reacts to mouse location (gravity / repel). I want the dots to react smoot…

---

## [Python perlin noise loop help](https://discourse.processing.org/t/python-perlin-noise-loop-help/28879)

<div class="topic-metadata">

**Author:** [@Laygos](https://discourse.processing.org/u/Laygos)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 8:42pm UTC](https://discourse.processing.org/t/python-perlin-noise-loop-help/28879 "2021-03-26T20:42:21Z")

</div>

Hi! I’m unable to get my loop to loop :sweat: I was following the video bellow: the code I followed is shown roughly around the 12 min mark. def setup(): size(900,900) def draw(): background(0) …

---

## [Ball bounces off the movable bats (extended PONG version)](https://discourse.processing.org/t/ball-bounces-off-the-movable-bats-extended-pong-version/28882)

<div class="topic-metadata">

**Author:** [@programmer](https://discourse.processing.org/u/programmer)\
**Replies:** 1\
**Last updated:** [March 26, 2021, 7:21pm UTC](https://discourse.processing.org/t/ball-bounces-off-the-movable-bats-extended-pong-version/28882 "2021-03-26T19:21:10Z")

</div>

I am creating an advanced version of the game Pong, where the bats can also move in the x-direction. I am trying to write a code to make the ball bounce off the bats on all four sides of the two bats. I was just able to …

---

## [Video library is 700 Mb in size](https://discourse.processing.org/t/video-library-is-700-mb-in-size/28878)

<div class="topic-metadata">

**Author:** [@onimatrix](https://discourse.processing.org/u/onimatrix)\
**Replies:** 3\
**Last updated:** [March 26, 2021, 6:36pm UTC](https://discourse.processing.org/t/video-library-is-700-mb-in-size/28878 "2021-03-26T18:36:17Z")

</div>

Hello comunity! I’ve just found out that the Video library is 700 Mb in size, as GStreamer has tons of dynamic libraries, seemingly for every codec under the sun. My exported application went from 76 Mb (embedding Java…

---

## [Slime and ant simulations](https://discourse.processing.org/t/slime-and-ant-simulations/28856)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [March 26, 2021, 6:22pm UTC](https://discourse.processing.org/t/slime-and-ant-simulations/28856 "2021-03-26T18:22:53Z")

</div>

Not sure what category to place this in. Anyways here is the latest Sebastian Lague video. He likes to work on natural world simulations.

---

## [selectInput cannot find symbol](https://discourse.processing.org/t/selectinput-cannot-find-symbol/28820)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 6\
**Last updated:** [March 26, 2021, 3:21pm UTC](https://discourse.processing.org/t/selectinput-cannot-find-symbol/28820 "2021-03-26T15:21:47Z")

</div>

Hi, wandering if anyone can help please. I’m struggling to build my latest library as the fileInput class is causing errors. eclipse terminates the build process with the error error: cannot find symbol \[javac\] …

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

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