# Latest

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

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

**Page:** 132

---

## [Storing Animation Frames in 2d Array](https://discourse.processing.org/t/storing-animation-frames-in-2d-array/37383)

<div class="topic-metadata">

**Author:** [@GloriousZero](https://discourse.processing.org/u/GloriousZero)\
**Replies:** 6\
**Last updated:** [June 7, 2022, 8:30pm UTC](https://discourse.processing.org/t/storing-animation-frames-in-2d-array/37383 "2022-06-07T20:30:41Z")

</div>

Currently creating an animation that responds on sound. The animation has 10 loops and 375 frames per loop. these frames are .jpg so to load them in i use a 2d array for( int i=0; i\<Phase; i++) { for( int j=0; j\<F…

---

## [3D graphics Python](https://discourse.processing.org/t/3d-graphics-python/37388)

<div class="topic-metadata">

**Author:** [@Daniel11](https://discourse.processing.org/u/Daniel11)\
**Replies:** 4\
**Last updated:** [June 7, 2022, 7:33pm UTC](https://discourse.processing.org/t/3d-graphics-python/37388 "2022-06-07T19:33:28Z")

</div>

Hi I am really new to processing and I am trying to create a Rubik’s cube simulator with the 3D API. However, when creating an app it just doesn’t make one. Here is the code: def setup(): size(480, 480, P3D) def dr…

---

## [How to count how long a key is pressed](https://discourse.processing.org/t/how-to-count-how-long-a-key-is-pressed/37375)

<div class="topic-metadata">

**Author:** [@gdt1k](https://discourse.processing.org/u/gdt1k)\
**Replies:** 10\
**Last updated:** [June 7, 2022, 9:37am UTC](https://discourse.processing.org/t/how-to-count-how-long-a-key-is-pressed/37375 "2022-06-07T09:37:25Z")

</div>

I’ve been trying to make a program that counts how long you’ve pressed a key. Is this possible in Processing Java? Here’s my code so far: int frames; void keyPressed() { frames++; } void keyReleased() { println(frames…

---

## ["String Index Out Of Bounds Exception: String index out of range: -1907998" Unknow error](https://discourse.processing.org/t/string-index-out-of-bounds-exception-string-index-out-of-range-1907998-unknow-error/37372)

<div class="topic-metadata">

**Author:** [@DybaTube](https://discourse.processing.org/u/DybaTube)\
**Replies:** 1\
**Last updated:** [June 6, 2022, 7:13pm UTC](https://discourse.processing.org/t/string-index-out-of-bounds-exception-string-index-out-of-range-1907998-unknow-error/37372 "2022-06-06T19:13:58Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to import my p5js code to processing, its almost working, but when i try to load the program it cames this error: StringIndexOutOfB…

---

## [Problem with duplicate objects when exporting to PDF](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364)

<div class="topic-metadata">

**Author:** [@S0r0ka](https://discourse.processing.org/u/S0r0ka)\
**Replies:** 10\
**Last updated:** [June 6, 2022, 6:37pm UTC](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364 "2022-06-06T18:37:47Z")

</div>

Could someone help me figure out how to upload to PDF? I draw a simple circle and export the result to PDF. When I open the file in a vector program, I see that two objects have been unloaded at the same place. One objec…

---

## [How do I get my PDF to render properly?](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349)

<div class="topic-metadata">

**Author:** [@jakebeamish](https://discourse.processing.org/u/jakebeamish)\
**Replies:** 4\
**Last updated:** [June 6, 2022, 5:58pm UTC](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349 "2022-06-06T17:58:08Z")

</div>

I’ve just started getting my feet wet with Processing, and I’m having trouble figuring out why I’m having problems with this sketch rendering out PDFs and SVGs that are missing a lot of the picture. I’m using the beginRe…

---

## [Meter library m.updateMeter() only int type](https://discourse.processing.org/t/meter-library-m-updatemeter-only-int-type/32070)

<div class="topic-metadata">

**Author:** [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Replies:** 5\
**Last updated:** [June 6, 2022, 5:07pm UTC](https://discourse.processing.org/t/meter-library-m-updatemeter-only-int-type/32070 "2022-06-06T17:07:35Z")

</div>

hi, I wanted to use the meter library but seems like the meter m.updateMeter() can only work with integer int type but I have float value and needed to display float values. How can I make it work? thank you

---

## [Serial connection of Processing and Arduino](https://discourse.processing.org/t/serial-connection-of-processing-and-arduino/37344)

<div class="topic-metadata">

**Author:** [@jinalilili](https://discourse.processing.org/u/jinalilili)\
**Replies:** 4\
**Last updated:** [June 6, 2022, 5:06pm UTC](https://discourse.processing.org/t/serial-connection-of-processing-and-arduino/37344 "2022-06-06T17:06:25Z")

</div>

I’m try to make a serial connection from processing to arduino. The idea is that when I press “a”, the speaker from Arduino will produce a sound and the same goes with another key pressed but with a different note. Howev…

---

## [Why is a new canvas element added to the DOM every time createGraphics is called?](https://discourse.processing.org/t/why-is-a-new-canvas-element-added-to-the-dom-every-time-creategraphics-is-called/37346)

<div class="topic-metadata">

**Author:** [@sspboyd](https://discourse.processing.org/u/sspboyd)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 3:43pm UTC](https://discourse.processing.org/t/why-is-a-new-canvas-element-added-to-the-dom-every-time-creategraphics-is-called/37346 "2022-06-06T15:43:16Z")

</div>

I have run into an unexpected issue with createGraphics(). Each time I define a new variable to hold a createGraphics object I am getting another canvas element added to the DOM. Here’s a minimalist example and a link t…

---

## [Is there a plan to make Folders in My Sketches?](https://discourse.processing.org/t/is-there-a-plan-to-make-folders-in-my-sketches/37362)

<div class="topic-metadata">

**Author:** [@MissChervinsky](https://discourse.processing.org/u/MissChervinsky)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 3:53pm UTC](https://discourse.processing.org/t/is-there-a-plan-to-make-folders-in-my-sketches/37362 "2022-06-06T15:53:09Z")

</div>

Hello, I am a middle school teacher who uses p5js with her 8th grade students. My Sketches are starting to get filled up with similar projects, and it would be infinitely easier if I were able to folder or sub my works …

---

## [Rotate(); does not work in double for loop in createGraphics canvas](https://discourse.processing.org/t/rotate-does-not-work-in-double-for-loop-in-creategraphics-canvas/37304)

<div class="topic-metadata">

**Author:** [@Annemiek](https://discourse.processing.org/u/Annemiek)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 8:12pm UTC](https://discourse.processing.org/t/rotate-does-not-work-in-double-for-loop-in-creategraphics-canvas/37304 "2022-06-03T20:12:24Z")

</div>

hi! I’m a trying to make a poster generator inside P5.js. I’m quite new to programming and for every new step I watch tutorials so I know what to do. Right now I am facing a problem with rotating my ellipses. At the mom…

---

## [Maximum number in randomSeed() p5js](https://discourse.processing.org/t/maximum-number-in-randomseed-p5js/37352)

<div class="topic-metadata">

**Author:** [@Nik](https://discourse.processing.org/u/Nik)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 12:51pm UTC](https://discourse.processing.org/t/maximum-number-in-randomseed-p5js/37352 "2022-06-06T12:51:39Z")

</div>

Hello! What is maximum number that can be used in randomSeed() in P5JS?

---

## [Can you please tell me what I am doing wrong?](https://discourse.processing.org/t/can-you-please-tell-me-what-i-am-doing-wrong/37330)

<div class="topic-metadata">

**Author:** [@eve](https://discourse.processing.org/u/eve)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 11:14am UTC](https://discourse.processing.org/t/can-you-please-tell-me-what-i-am-doing-wrong/37330 "2022-06-06T11:14:57Z")

</div>

Hi there! I’m a real real beginner student… I’ve got a problem while doing my homework. the task is to make 3D QUAD that can be textured in ‘class’ using beginShape(QUADS), endShape(), vertex(x,y,z,tx,ty), texture…

---

## [How do I pick a string from an array on mouse press?](https://discourse.processing.org/t/how-do-i-pick-a-string-from-an-array-on-mouse-press/37310)

<div class="topic-metadata">

**Author:** [@seeker](https://discourse.processing.org/u/seeker)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 6:40am UTC](https://discourse.processing.org/t/how-do-i-pick-a-string-from-an-array-on-mouse-press/37310 "2022-06-06T06:40:38Z")

</div>

Hi, I want to do the following: Display text from an array on the screen When mouse is not pressed, always display the first string in the array When mouse is pressed, choose a random string from the array and have thi…

---

## [P5 Developer needed :)](https://discourse.processing.org/t/p5-developer-needed/31996)

<div class="topic-metadata">

**Author:** [@avivtech](https://discourse.processing.org/u/avivtech)\
**Replies:** 1\
**Last updated:** [June 5, 2022, 11:43pm UTC](https://discourse.processing.org/t/p5-developer-needed/31996 "2022-06-05T23:43:01Z")

</div>

Hi, I am looking for a p5 developer for a well payed small job ASAP. Please contact me for details.

---

## [Image to characters (ASCII-Art)](https://discourse.processing.org/t/image-to-characters-ascii-art/28371)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 9\
**Last updated:** [June 5, 2022, 8:19pm UTC](https://discourse.processing.org/t/image-to-characters-ascii-art/28371 "2022-06-05T20:19:06Z")

</div>

Image to characters these are the characters used" -~=+\*^\<a#$%0ß@" - = + = \* # # # # # ~ ^ # \* - ~ \< # ~ ~ # …

---

## [How to import OPENGL library](https://discourse.processing.org/t/how-to-import-opengl-library/27387)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 17\
**Last updated:** [June 5, 2022, 1:35am UTC](https://discourse.processing.org/t/how-to-import-opengl-library/27387 "2022-06-05T01:35:47Z")

</div>

I would like to create 3D shapes using OPENGL or P3D mode. However, when I tried to import OPENGL library via Sketch menu (Sketch\>Import Library), it is not there? Thanks for help.

---

## [Do you know why there is an error? I found a new problem](https://discourse.processing.org/t/do-you-know-why-there-is-an-error-i-found-a-new-problem/37315)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 5\
**Last updated:** [June 4, 2022, 5:54pm UTC](https://discourse.processing.org/t/do-you-know-why-there-is-an-error-i-found-a-new-problem/37315 "2022-06-04T17:54:20Z")

</div>

Hello genius! I posted a question yesterday and it was solved, but I am facing a new problem again, so I am asking you again. There’s a problem with the first line of code. It is said that the active mode and static m…

---

## [Finding Processing freelancers](https://discourse.processing.org/t/finding-processing-freelancers/37319)

<div class="topic-metadata">

**Author:** [@panko](https://discourse.processing.org/u/panko)\
**Replies:** 0\
**Last updated:** [June 4, 2022, 4:21pm UTC](https://discourse.processing.org/t/finding-processing-freelancers/37319 "2022-06-04T16:21:08Z")

</div>

hi there - i’m curious if folks had recommendations for freelancers in processing. i’m hitting a wall with some code and was hoping an expert could help. feel free to message off-forum. thanks!

---

## [Forcing a program to end](https://discourse.processing.org/t/forcing-a-program-to-end/37251)

<div class="topic-metadata">

**Author:** [@Timeless\_Mage](https://discourse.processing.org/u/Timeless_Mage)\
**Replies:** 4\
**Last updated:** [June 3, 2022, 1:17pm UTC](https://discourse.processing.org/t/forcing-a-program-to-end/37251 "2022-06-03T13:17:08Z")

</div>

I am writing code to click different colored pixels on my screen, and I need a way to stop it. I have tried the noLoop() function in multiple places, but that did not work. Does anyone have any idea of how to reliably …

---

## [How to keep the display window in the main screen?](https://discourse.processing.org/t/how-to-keep-the-display-window-in-the-main-screen/37302)

<div class="topic-metadata">

**Author:** [@all](https://discourse.processing.org/u/all)\
**Replies:** 1\
**Last updated:** [June 4, 2022, 8:23am UTC](https://discourse.processing.org/t/how-to-keep-the-display-window-in-the-main-screen/37302 "2022-06-04T08:23:58Z")

</div>

Hello, I use my laptop (macbook pro) with up to 4 video projectors. When I launch the display window of Processing, I need to open it only in the screen of my laptop (and not in the screen of another screen or video pr…

---

## [Do you know why there is an error?](https://discourse.processing.org/t/do-you-know-why-there-is-an-error/37301)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 6\
**Last updated:** [June 4, 2022, 5:46am UTC](https://discourse.processing.org/t/do-you-know-why-there-is-an-error/37301 "2022-06-04T05:46:33Z")

</div>

Hello genius! I’m a beginner and I need your help. Why is there an error in the first line of this code? int s\_num = 40; PShape s; PShape b; Virus Virus1 = new Virus\[s\_num\]; Cell Cells= new Cell\[40\]; void setup() …

---

## [How to put a "\>" sign after "==" in an if statement](https://discourse.processing.org/t/how-to-put-a-sign-after-in-an-if-statement/37313)

<div class="topic-metadata">

**Author:** [@mx.pq](https://discourse.processing.org/u/mx.pq)\
**Replies:** 3\
**Last updated:** [June 4, 2022, 5:08am UTC](https://discourse.processing.org/t/how-to-put-a-sign-after-in-an-if-statement/37313 "2022-06-04T05:08:15Z")

</div>

Hi, im kind of new to processing and I am working on a starter fighting game and one of the things that I am using to make it so my character can hit the enemy is if statements. I want to type it out like \< \< if(knight…

---

## [Does Android mode work in Processing 4](https://discourse.processing.org/t/does-android-mode-work-in-processing-4/33413)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 10:02pm UTC](https://discourse.processing.org/t/does-android-mode-work-in-processing-4/33413 "2022-06-03T22:02:11Z")

</div>

Hi, Does android mode work in processing 4? I have setup processing 4 and added Python mode, R mode and REPL mode successfully but Android mode is grayed out and there is a message indicating that 4.2.1 is not compatib…

---

## [How do I play sound smoothly while also running Perlin Flow Field?](https://discourse.processing.org/t/how-do-i-play-sound-smoothly-while-also-running-perlin-flow-field/36657)

<div class="topic-metadata">

**Author:** [@JessJess](https://discourse.processing.org/u/JessJess)\
**Replies:** 9\
**Last updated:** [June 3, 2022, 6:31pm UTC](https://discourse.processing.org/t/how-do-i-play-sound-smoothly-while-also-running-perlin-flow-field/36657 "2022-06-03T18:31:12Z")

</div>

The background sound I used works perfectly fine before I added the code for Perlin Flow Field but now that both sound and Perlin Flow Field code works, the sound that comes out is lagging and distorted, is there any way…

---

## [I got collisions working but character falls through block after colliding with it](https://discourse.processing.org/t/i-got-collisions-working-but-character-falls-through-block-after-colliding-with-it/37287)

<div class="topic-metadata">

**Author:** [@bruhmoment14](https://discourse.processing.org/u/bruhmoment14)\
**Replies:** 4\
**Last updated:** [June 3, 2022, 5:42pm UTC](https://discourse.processing.org/t/i-got-collisions-working-but-character-falls-through-block-after-colliding-with-it/37287 "2022-06-03T17:42:17Z")

</div>

I am a beginner and making a platformer game. I took a while but I got jumping and collisions to work. Only problem now is when my character is on top of the block he falls through it to the ground. I have no clue how to…

---

## ["Wave Collapse Function" algorithm in Processing](https://discourse.processing.org/t/wave-collapse-function-algorithm-in-processing/12983)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 18\
**Last updated:** [June 3, 2022, 5:09pm UTC](https://discourse.processing.org/t/wave-collapse-function-algorithm-in-processing/12983 "2022-06-03T17:09:10Z")

</div>

Dear all, I would like to share with you a customized redesign of the Wave Collapse Function algorithm that works in Processing. My wish is that someone, someday, can port this sketch from Python to Java and make this a…

---

## [Loop with increasing inclination](https://discourse.processing.org/t/loop-with-increasing-inclination/37240)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 24\
**Last updated:** [June 3, 2022, 1:54pm UTC](https://discourse.processing.org/t/loop-with-increasing-inclination/37240 "2022-06-03T13:54:59Z")

</div>

Hi there! I want to make a loop with diagonal lines whose inclination grows little by little. My loop draws lines 10 by 10, but I want to incline them 1 by 1 and I don’t know how. If I use variable ‘i’ I think increase s…

---

## [Terrain art with math](https://discourse.processing.org/t/terrain-art-with-math/28916)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 21\
**Last updated:** [June 3, 2022, 1:49pm UTC](https://discourse.processing.org/t/terrain-art-with-math/28916 "2022-06-03T13:49:17Z")

</div>

I used to think that the terrain is only formed by the noise, but with mathematics is more beautiful

---

## [Need quicker response to key press](https://discourse.processing.org/t/need-quicker-response-to-key-press/37298)

<div class="topic-metadata">

**Author:** [@simonc8](https://discourse.processing.org/u/simonc8)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 10:57am UTC](https://discourse.processing.org/t/need-quicker-response-to-key-press/37298 "2022-06-03T10:57:24Z")

</div>

I’m using processing in a Python trinket for our Code Club to move a shape around the window using the arrow keys. But there’s a significant delay after pressing the key before the shape moves, which makes this almost us…

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

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