# Latest

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

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

**Page:** 328

---

## [TypeError: arraySequence\[0\] is undefined](https://discourse.processing.org/t/typeerror-arraysequence-0-is-undefined/22005)

<div class="topic-metadata">

**Author:** [@antocreo](https://discourse.processing.org/u/antocreo)\
**Replies:** 7\
**Last updated:** [July 3, 2020, 9:42am UTC](https://discourse.processing.org/t/typeerror-arraysequence-0-is-undefined/22005 "2020-07-03T09:42:36Z")

</div>

Hi all, I am getting this error since Firefox update to 77.0.1 TypeError: arraySequence\[0\] is undefined I think it might related to the p5-sound library as it’s the only place where I’ve found arraySequence\[0\]. I’v…

---

## [Data from PDE to Arduinio IDE on continual basis](https://discourse.processing.org/t/data-from-pde-to-arduinio-ide-on-continual-basis/22310)

<div class="topic-metadata">

**Author:** [@kmot](https://discourse.processing.org/u/kmot)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 9:14am UTC](https://discourse.processing.org/t/data-from-pde-to-arduinio-ide-on-continual-basis/22310 "2020-07-03T09:14:12Z")

</div>

"Building" a PDE / IDE connection to pass ongoing and changing data from PC (W10/64) to an Arduino board with an LCD. Eventual goal is an LCD-display clock. \*My existing code succeeds,up to a point.\*. In the test se…

---

## [Batch Edit: Load Multiple images from data folder](https://discourse.processing.org/t/batch-edit-load-multiple-images-from-data-folder/22344)

<div class="topic-metadata">

**Author:** [@CKMJPEG](https://discourse.processing.org/u/CKMJPEG)\
**Replies:** 7\
**Last updated:** [July 3, 2020, 3:31am UTC](https://discourse.processing.org/t/batch-edit-load-multiple-images-from-data-folder/22344 "2020-07-03T03:31:24Z")

</div>

Hi Processing Community! In most examples I have seen that work with loadImage, you usually work with single images, but what If you want to process at least 100 images with the same script? How would you load images f…

---

## [Move Pixels Based on Brightness](https://discourse.processing.org/t/move-pixels-based-on-brightness/22343)

<div class="topic-metadata">

**Author:** [@CKMJPEG](https://discourse.processing.org/u/CKMJPEG)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 11:36pm UTC](https://discourse.processing.org/t/move-pixels-based-on-brightness/22343 "2020-07-02T23:36:53Z")

</div>

Hi Processing community. I am new to processing, but have used many scripts and am somewhat familiar with the interface and in thinking through the code. My question is I would like to move the pixels of an image based…

---

## [Animated sliders inspired in the resolume ones](https://discourse.processing.org/t/animated-sliders-inspired-in-the-resolume-ones/22341)

<div class="topic-metadata">

**Author:** [@Jpupper](https://discourse.processing.org/u/Jpupper)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 10:32pm UTC](https://discourse.processing.org/t/animated-sliders-inspired-in-the-resolume-ones/22341 "2020-07-02T22:32:41Z")

</div>

Im trying to liberate 3 years of coding proyects in processing. one each day. today is the day of Guipp5int, a sketch wich allows you to use animated sliders like the ones that resolume has. it lacks some optimización …

---

## [Detecting mouse clicks that are outside the canvas?](https://discourse.processing.org/t/detecting-mouse-clicks-that-are-outside-the-canvas/22335)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 4\
**Last updated:** [July 2, 2020, 9:37pm UTC](https://discourse.processing.org/t/detecting-mouse-clicks-that-are-outside-the-canvas/22335 "2020-07-02T21:37:14Z")

</div>

I have researched all that I could for this, there is not many stuff to see. I read somewhere that this is not possible but I feel like it is. Does anyone know? Like when I do void mousePressed() { } that only works w…

---

## [Processing in Swing](https://discourse.processing.org/t/processing-in-swing/22120)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 9:26pm UTC](https://discourse.processing.org/t/processing-in-swing/22120 "2020-07-02T21:26:30Z")

</div>

Is there any way to get Processing to render into a JFrame (or something along those lines)? I’ve been reading and trying for myself but coudn’t get it to work The idea is to be able to make a UI using swing on top of …

---

## [About Local and global variables](https://discourse.processing.org/t/about-local-and-global-variables/22333)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 7:40pm UTC](https://discourse.processing.org/t/about-local-and-global-variables/22333 "2020-07-02T19:40:54Z")

</div>

import controlP5.\*; ControlP5 cp5; RadioButton r1, r2; void setup() { size(700,400); cp5 = new ControlP5(this); r1 = cp5.addRadioButton("radioButton") .setPosition(100,180) .setSize(40,20) …

---

## [Setup method runs twice](https://discourse.processing.org/t/setup-method-runs-twice/21275)

<div class="topic-metadata">

**Author:** [@dansumption](https://discourse.processing.org/u/dansumption)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 6:36pm UTC](https://discourse.processing.org/t/setup-method-runs-twice/21275 "2020-07-02T18:36:17Z")

</div>

My p5js app runs the setup function twice. I have stripped the whole thing down as much as possible, and it’s still happening. This is messing with my app because (a) I wish to run some fairly heavy operations in setup a…

---

## [Processing API can help to make math courses more engaging](https://discourse.processing.org/t/processing-api-can-help-to-make-math-courses-more-engaging/22327)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 4:21pm UTC](https://discourse.processing.org/t/processing-api-can-help-to-make-math-courses-more-engaging/22327 "2020-07-02T16:21:40Z")

</div>

Did you know that processing API can make your math based coding course more engaging? This is just an example of displaying primes numbers on a canvas. A little bit more fun than displaying them on the console. … of …

---

## [Render a lot of same images](https://discourse.processing.org/t/render-a-lot-of-same-images/22289)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 7\
**Last updated:** [July 2, 2020, 3:43pm UTC](https://discourse.processing.org/t/render-a-lot-of-same-images/22289 "2020-07-02T15:43:44Z")

</div>

Is there a way to render a lot of same images fast?i made a array with 2 PImage objects…and rendering 2304 of them on the screen…with this i have 23-24 FPS on average…how can i(if possible) make this faster?thanks)

---

## [Text in loop to in several rows](https://discourse.processing.org/t/text-in-loop-to-in-several-rows/22323)

<div class="topic-metadata">

**Author:** [@Maxnotabletoprogramm](https://discourse.processing.org/u/Maxnotabletoprogramm)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 2:00pm UTC](https://discourse.processing.org/t/text-in-loop-to-in-several-rows/22323 "2020-07-02T14:00:52Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hey, I want to make a loop that counts the Numbers up to 1500 and draws them. The size is (700, 700) so I have to make rows of numbers. Just so…

---

## [Referencing functions within object properties does not work](https://discourse.processing.org/t/referencing-functions-within-object-properties-does-not-work/22150)

<div class="topic-metadata">

**Author:** [@kdmb](https://discourse.processing.org/u/kdmb)\
**Replies:** 11\
**Last updated:** [July 2, 2020, 1:13pm UTC](https://discourse.processing.org/t/referencing-functions-within-object-properties-does-not-work/22150 "2020-07-02T13:13:56Z")

</div>

When I press a key, I have the following: function action1 () { // Do some action. } keys = { ArrowUp: action1; } // Function from P5.js function keyPressed () { console.log( \`Key ${key} pressed!\` ); if ( …

---

## [Processing saving empty PDF](https://discourse.processing.org/t/processing-saving-empty-pdf/22315)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 4\
**Last updated:** [July 2, 2020, 9:22am UTC](https://discourse.processing.org/t/processing-saving-empty-pdf/22315 "2020-07-02T09:22:16Z")

</div>

I’ve run into this problem where my pdf is coming out blank even though there is stuff on the screen. I think it has to do with how I’m drawing to the canvas using mousePressed. any ideas? import processing.pdf.\*; boo…

---

## [Arrange array in ascending order](https://discourse.processing.org/t/arrange-array-in-ascending-order/22314)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.processing.org/u/alex)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 6:19am UTC](https://discourse.processing.org/t/arrange-array-in-ascending-order/22314 "2020-07-02T06:19:05Z")

</div>

Hi, How do i arrange an array of number for e.g. int \[\] array = {3,2,7,4,9,1}; into ascending order without using the sort() function? Thanks

---

## [Anyone had success with p5js on ipads?](https://discourse.processing.org/t/anyone-had-success-with-p5js-on-ipads/21323)

<div class="topic-metadata">

**Author:** [@CrouchingPython](https://discourse.processing.org/u/CrouchingPython)\
**Replies:** 5\
**Last updated:** [July 2, 2020, 1:36am UTC](https://discourse.processing.org/t/anyone-had-success-with-p5js-on-ipads/21323 "2020-07-02T01:36:18Z")

</div>

Has anyone used p5js in a class setting with ipads? I know it’s web-based but I’ve like it to “just work”. I’m teaching middle school and want to eliminate any barriers to using it! Thanks.

---

## [Creative Coding for Kids - A structured course for young coders and beginners](https://discourse.processing.org/t/creative-coding-for-kids-a-structured-course-for-young-coders-and-beginners/22288)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 1:33am UTC](https://discourse.processing.org/t/creative-coding-for-kids-a-structured-course-for-young-coders-and-beginners/22288 "2020-07-02T01:33:35Z")

</div>

Hi processing community, I want to share with you a free course / book in PDF format written by Tariq Rashid. Tariq was kind enough to have his course adapted for codeguppy.com users as well. Direct download https://c…

---

## [Solar system simulation in JavaScript](https://discourse.processing.org/t/solar-system-simulation-in-javascript/22312)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 12:52am UTC](https://discourse.processing.org/t/solar-system-simulation-in-javascript/22312 "2020-07-02T00:52:48Z")

</div>

Hi teachers, This is an interesting way to use processing API in the classroom: simulate natural processes. Take a look for instance at this solar system simulation:

---

## [Png\<-\>txt converter for processing java](https://discourse.processing.org/t/png-txt-converter-for-processing-java/22272)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 11:22pm UTC](https://discourse.processing.org/t/png-txt-converter-for-processing-java/22272 "2020-07-01T23:22:15Z")

</div>

https://github.com/XQSkys/Pic\_to\_txt/blob/master/Pic\_to\_txt\_coverter\_v0\_0\_5.7z i wrote my first usefull tool it coverts png to text and back like 244 122 eol 111 134 eol eof exemple for a 2X2 gray picture no…

---

## [TurtleGFX - an open-source Turtle Graphics library for p5.js](https://discourse.processing.org/t/turtlegfx-an-open-source-turtle-graphics-library-for-p5-js/22201)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 11:17pm UTC](https://discourse.processing.org/t/turtlegfx-an-open-source-turtle-graphics-library-for-p5-js/22201 "2020-07-01T23:17:56Z")

</div>

Hello community, I want to introduce you an open-source Turtle Graphics library for p5.js sketches. This library is great for both education and creative coding. Library supports two modes: Easy Mode / Default tu…

---

## [Video Tutorial for Processing.py](https://discourse.processing.org/t/video-tutorial-for-processing-py/18793)

<div class="topic-metadata">

**Author:** [@Neo\_Wang](https://discourse.processing.org/u/Neo_Wang)\
**Replies:** 2\
**Last updated:** [July 1, 2020, 7:56pm UTC](https://discourse.processing.org/t/video-tutorial-for-processing-py/18793 "2020-07-01T19:56:14Z")

</div>

wondering when there will be video tutorials for processing python mode. the tutorial like what daniel did for p5js would be so helpful for learners like me.

---

## [Multiple html pages and CSS sketch with editor.p5js.org](https://discourse.processing.org/t/multiple-html-pages-and-css-sketch-with-editor-p5js-org/22294)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 7:27pm UTC](https://discourse.processing.org/t/multiple-html-pages-and-css-sketch-with-editor-p5js-org/22294 "2020-07-01T19:27:21Z")

</div>

Hi everybody, I’ve used the p5.js online editor with my students for remote teaching during the covid19 period. And it’s really a great tool that simplify programming learning! Thanks a lot all its developpers! Teachin…

---

## [Data exchanges via PORTS - Arduino and Processing](https://discourse.processing.org/t/data-exchanges-via-ports-arduino-and-processing/22264)

<div class="topic-metadata">

**Author:** [@kmot](https://discourse.processing.org/u/kmot)\
**Replies:** 8\
**Last updated:** [July 1, 2020, 6:19pm UTC](https://discourse.processing.org/t/data-exchanges-via-ports-arduino-and-processing/22264 "2020-07-01T18:19:52Z")

</div>

BASIC QUESTION: : reading and / writing short data streams (char, int, binary. strings).VIA THE ports The code for each side (IDE and PDE) is from a tutorial web site: https://forum.arduino.cc/index.php?topic=434516.0 …

---

## [How to find min X and Y of pixel](https://discourse.processing.org/t/how-to-find-min-x-and-y-of-pixel/22222)

<div class="topic-metadata">

**Author:** [@Morzin](https://discourse.processing.org/u/Morzin)\
**Replies:** 6\
**Last updated:** [July 1, 2020, 5:45pm UTC](https://discourse.processing.org/t/how-to-find-min-x-and-y-of-pixel/22222 "2020-07-01T17:45:55Z")

</div>

Hello, I want to make a program that finds the object in the picture. I decided that it would be easiest to recognize it by color, because the background under the object could have any other color. So far I managed t…

---

## [Problems with Exception Handling](https://discourse.processing.org/t/problems-with-exception-handling/22302)

<div class="topic-metadata">

**Author:** [@raphael](https://discourse.processing.org/u/raphael)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 3:50pm UTC](https://discourse.processing.org/t/problems-with-exception-handling/22302 "2020-07-01T15:50:31Z")

</div>

In my project I need to make a socket connection, however I realized that there is a chance that the user will not start the server. When this happens, it is obvious that the client will not be able to connect to the ser…

---

## [Making a Game "Launcher"](https://discourse.processing.org/t/making-a-game-launcher/22281)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 12:17pm UTC](https://discourse.processing.org/t/making-a-game-launcher/22281 "2020-07-01T12:17:17Z")

</div>

Is there any way to make something like a “launcher” in processing. What I mean by that is basically a main menu and when you click a button, it closes itself and opens another .exe file (or runs a processing source code…

---

## [Converting inputs into int types](https://discourse.processing.org/t/converting-inputs-into-int-types/22276)

<div class="topic-metadata">

**Author:** [@olorin](https://discourse.processing.org/u/olorin)\
**Replies:** 4\
**Last updated:** [July 1, 2020, 11:13am UTC](https://discourse.processing.org/t/converting-inputs-into-int-types/22276 "2020-07-01T11:13:14Z")

</div>

I’m trying to take in user number inputs, convert them into int types, multiply, convert the outcome back into a string, and print this out. I keep getting the Not a Number result when ever i try int(input.value()). does…

---

## [Isn't Processing very inefficient when redrawing all the time?](https://discourse.processing.org/t/isnt-processing-very-inefficient-when-redrawing-all-the-time/22297)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 2\
**Last updated:** [July 1, 2020, 10:49am UTC](https://discourse.processing.org/t/isnt-processing-very-inefficient-when-redrawing-all-the-time/22297 "2020-07-01T10:49:35Z")

</div>

Hello, so, I am currently writing a Processing port for C++ which should be focused on Performance. So I use OpenGL and noticed something (for me atleast) interesting, let’s take a look at this example code I wrote for …

---

## [Network Libary see all servers in network](https://discourse.processing.org/t/network-libary-see-all-servers-in-network/16828)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 7\
**Last updated:** [July 1, 2020, 9:12am UTC](https://discourse.processing.org/t/network-libary-see-all-servers-in-network/16828 "2020-07-01T09:12:08Z")

</div>

Hello, I am working on a whiteboard, which can be seen and edited cross devices in the same network. It works perfectly, but now i found a new Problem: Currently i’m connecting to localhost (127.0.0.1), but for cross-de…

---

## [Saturation returning the wrong values](https://discourse.processing.org/t/saturation-returning-the-wrong-values/22286)

<div class="topic-metadata">

**Author:** [@JoeMcKay](https://discourse.processing.org/u/JoeMcKay)\
**Replies:** 2\
**Last updated:** [July 1, 2020, 8:41am UTC](https://discourse.processing.org/t/saturation-returning-the-wrong-values/22286 "2020-07-01T08:41:49Z")

</div>

Hi all. I’m trying to make a color picker and ran into a bug - saturation() isn’t giving me the correct values. I created a gradient using hsb color. When I mouseOver the gradient and use get(mouseX, mouseY) to collect…

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

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