# Latest

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

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

**Page:** 176

---

## [ArrayIndexOutOfBoundsException error, using movie](https://discourse.processing.org/t/arrayindexoutofboundsexception-error-using-movie/33682)

<div class="topic-metadata">

**Author:** [@mysterzomb](https://discourse.processing.org/u/mysterzomb)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 1:21am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-error-using-movie/33682 "2021-11-23T01:21:17Z")

</div>

Hello! I am trying to make this Daniel Shiffman’s code : MotionPixels | Learning Processing 2nd Edition not with the Capture datatype, but with the Movie so that it reads a video file instead of a device on my computer.…

---

## [Why does my program return the error "ArrayIndex Out Of Bounds Exception: 4"?](https://discourse.processing.org/t/why-does-my-program-return-the-error-arrayindex-out-of-bounds-exception-4/33651)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 11\
**Last updated:** [November 22, 2021, 11:38am UTC](https://discourse.processing.org/t/why-does-my-program-return-the-error-arrayindex-out-of-bounds-exception-4/33651 "2021-11-22T11:38:27Z")

</div>

the number 4 is not in my code so I don’t know why it gives this error. this is my code: String blocked = "iA"; String inlava = "iB"; String nearsick = "iC"; String moverandom = "oA"; String movewest = "oB"; String mo…

---

## [Adding to documentation](https://discourse.processing.org/t/adding-to-documentation/33673)

<div class="topic-metadata">

**Author:** [@Reeju\_Bhattacharya](https://discourse.processing.org/u/Reeju_Bhattacharya)\
**Replies:** 0\
**Last updated:** [November 22, 2021, 8:20pm UTC](https://discourse.processing.org/t/adding-to-documentation/33673 "2021-11-22T20:20:06Z")

</div>

Hi, I was looking to work on an issue in the p5.js issues page which requires me to add to the documentation. However, the issue is on the main p5.js github page, while It looks to me, I have to work on the p5.js-website…

---

## [Make a Simple GUI and Displaying Serial Arduino data got NullPointerException](https://discourse.processing.org/t/make-a-simple-gui-and-displaying-serial-arduino-data-got-nullpointerexception/33662)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 7\
**Last updated:** [November 22, 2021, 2:01pm UTC](https://discourse.processing.org/t/make-a-simple-gui-and-displaying-serial-arduino-data-got-nullpointerexception/33662 "2021-11-22T14:01:46Z")

</div>

Hello I want to make an Arduino serial data display using processing from several sensors, but for experiments only I use 3 potentiometers. Here’s the Arduino code. #define pinPot1 0 #define pinPot2 3 #define pinPot3 5 …

---

## [Uploading P5.js sketch from P3 IDE](https://discourse.processing.org/t/uploading-p5-js-sketch-from-p3-ide/27447)

<div class="topic-metadata">

**Author:** [@geo3geo](https://discourse.processing.org/u/geo3geo)\
**Replies:** 8\
**Last updated:** [November 22, 2021, 9:39am UTC](https://discourse.processing.org/t/uploading-p5-js-sketch-from-p3-ide/27447 "2021-11-22T09:39:38Z")

</div>

I’ve created a program using P3 IDE in P5.js mode. Runs well on my Chrome web server so now I want to share it on the P5js.org web site. I foolishly assumed I would be able to upload my project like I used to do with Ja…

---

## [Can't install processing due to errors](https://discourse.processing.org/t/cant-install-processing-due-to-errors/27583)

<div class="topic-metadata">

**Author:** [@pur](https://discourse.processing.org/u/pur)\
**Replies:** 5\
**Last updated:** [November 22, 2021, 8:18am UTC](https://discourse.processing.org/t/cant-install-processing-due-to-errors/27583 "2021-11-22T08:18:11Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hey guys i cant seem to install processing 3.5.4 It keeps saying: I tried deleting the sketchfolder. I have unistalled and installed processi…

---

## [Drag & drop each PGraphics shape](https://discourse.processing.org/t/drag-drop-each-pgraphics-shape/33643)

<div class="topic-metadata">

**Author:** [@rism](https://discourse.processing.org/u/rism)\
**Replies:** 1\
**Last updated:** [November 22, 2021, 6:17am UTC](https://discourse.processing.org/t/drag-drop-each-pgraphics-shape/33643 "2021-11-22T06:17:24Z")

</div>

Hi, I am trying to drag and drop each square rather than the all of the squares when ‘x’ is pressed. PGraphics squares; float bx; float by; boolean locked = false; float xOffset = 0.0; float yOffset = 0.0; void se…

---

## [Control the order of returning callbacks](https://discourse.processing.org/t/control-the-order-of-returning-callbacks/33657)

<div class="topic-metadata">

**Author:** [@SMD](https://discourse.processing.org/u/SMD)\
**Replies:** 2\
**Last updated:** [November 22, 2021, 5:55am UTC](https://discourse.processing.org/t/control-the-order-of-returning-callbacks/33657 "2021-11-22T05:55:50Z")

</div>

Hi all I’m trying to load multiple large images (3600x1800) into a p5 sketch. I can’t use preload because there are over 300 of them and memory issues are crashing the browser. Speed isn’t important though so I’m using …

---

## [Check is coordinates are within a shape boundaries](https://discourse.processing.org/t/check-is-coordinates-are-within-a-shape-boundaries/33292)

<div class="topic-metadata">

**Author:** [@zjorge](https://discourse.processing.org/u/zjorge)\
**Replies:** 3\
**Last updated:** [November 21, 2021, 5:56pm UTC](https://discourse.processing.org/t/check-is-coordinates-are-within-a-shape-boundaries/33292 "2021-11-21T17:56:04Z")

</div>

I have previously managed to check or detect if a click is inside a circle or a rectangle. Now I want to fill a shape with dots using Poisson-Disc algorithm. How can I detect if the current dot is within the bounds of …

---

## [Faster PImage Resizing](https://discourse.processing.org/t/faster-pimage-resizing/33593)

<div class="topic-metadata">

**Author:** [@TechnicJelle](https://discourse.processing.org/u/TechnicJelle)\
**Replies:** 16\
**Last updated:** [November 21, 2021, 4:46pm UTC](https://discourse.processing.org/t/faster-pimage-resizing/33593 "2021-11-21T16:46:34Z")

</div>

Hi there! I have been scouring the internet for all kinds of ways to resize images in Processing/Java, but they’re all too slow. I only get about 30 fps and my computer ain’t no slouch. The target fps is 60. Every sin…

---

## [Excited to Contribute!](https://discourse.processing.org/t/excited-to-contribute/33647)

<div class="topic-metadata">

**Author:** [@Reeju\_Bhattacharya](https://discourse.processing.org/u/Reeju_Bhattacharya)\
**Replies:** 2\
**Last updated:** [November 21, 2021, 4:45pm UTC](https://discourse.processing.org/t/excited-to-contribute/33647 "2021-11-21T16:45:30Z")

</div>

Hi, I am new to the open-source community and am very excited to get involved in it. Java is my primary coding language and I have been using it for the past 4 years and I have been using the Processing (Java) library e…

---

## [How to divide string](https://discourse.processing.org/t/how-to-divide-string/33649)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 5\
**Last updated:** [November 21, 2021, 11:38am UTC](https://discourse.processing.org/t/how-to-divide-string/33649 "2021-11-21T11:38:42Z")

</div>

Let’s say you have a string and the string contains “ab” how could you divide this up into multiple strings, so you would have a string which equals “a” and a string which equals “b”?

---

## [Set portion of an image as another image](https://discourse.processing.org/t/set-portion-of-an-image-as-another-image/33648)

<div class="topic-metadata">

**Author:** [@dnclem106](https://discourse.processing.org/u/dnclem106)\
**Replies:** 2\
**Last updated:** [November 21, 2021, 8:50am UTC](https://discourse.processing.org/t/set-portion-of-an-image-as-another-image/33648 "2021-11-21T08:50:43Z")

</div>

Hi, I have a blank image (just white pixels) that is x, y pixels in width and height respectively. What I need to do is set another smaller image (dimensions (x0, y) where x0 \< x) as a portion of the blank image. In the…

---

## [Processing Resources Old and New](https://discourse.processing.org/t/processing-resources-old-and-new/33045)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [October 24, 2021, 5:17pm UTC](https://discourse.processing.org/t/processing-resources-old-and-new/33045 "2021-10-24T17:17:05Z")

</div>

Hello folks! The new website is here: https://processing.org/ There are 22 Text Tutorials here on the new website: https://processing.org/tutorials These 2 Text Tutorials are not listed on the new website but do hav…

---

## [How can I save lines?](https://discourse.processing.org/t/how-can-i-save-lines/33634)

<div class="topic-metadata">

**Author:** [@Blah](https://discourse.processing.org/u/Blah)\
**Replies:** 6\
**Last updated:** [November 20, 2021, 6:14pm UTC](https://discourse.processing.org/t/how-can-i-save-lines/33634 "2021-11-20T18:14:16Z")

</div>

I need the lines drawn to be saved and match up to form an overall route. Really confused as to what’s missing. float cx; // x coordinate of point 1 float cy; // x coordinate of point 1 int lastClickX = -1; int lastC…

---

## [MousePressed and MouseReleased to create objects](https://discourse.processing.org/t/mousepressed-and-mousereleased-to-create-objects/33628)

<div class="topic-metadata">

**Author:** [@processingArthur](https://discourse.processing.org/u/processingArthur)\
**Replies:** 1\
**Last updated:** [November 20, 2021, 1:35pm UTC](https://discourse.processing.org/t/mousepressed-and-mousereleased-to-create-objects/33628 "2021-11-20T13:35:27Z")

</div>

I have a ball class that creates a ball object. I want to created a ball object when the mouse is pressed, if the mouse is pressed and held the ball should follow the mouse(while the mouse is pressed). When the mouse is …

---

## [Pressing the 0 key while holding control and shift doesn't cause keyPressed to be called](https://discourse.processing.org/t/pressing-the-0-key-while-holding-control-and-shift-doesnt-cause-keypressed-to-be-called/33578)

<div class="topic-metadata">

**Author:** [@modusponens](https://discourse.processing.org/u/modusponens)\
**Replies:** 2\
**Last updated:** [November 20, 2021, 7:53am UTC](https://discourse.processing.org/t/pressing-the-0-key-while-holding-control-and-shift-doesnt-cause-keypressed-to-be-called/33578 "2021-11-20T07:53:07Z")

</div>

Just as the topic title says, the 0 (zero) key doesn’t seem to cause keyPressed to be called while you’re holding the control and shift keys. It does get called if you press 0 while you’re holding either control or shift…

---

## [Drag and drop each shape of PGraphics](https://discourse.processing.org/t/drag-and-drop-each-shape-of-pgraphics/33622)

<div class="topic-metadata">

**Author:** [@rism](https://discourse.processing.org/u/rism)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 4:29pm UTC](https://discourse.processing.org/t/drag-and-drop-each-shape-of-pgraphics/33622 "2021-11-19T16:29:57Z")

</div>

Hi, I am trying to drag and drop each square rather than the all of the squares when ‘x’ is pressed. Do I need to include a for or while loop somewhere? PGraphics squares; float bx; float by; boolean locked = false; …

---

## [How to use P5.js in H5p](https://discourse.processing.org/t/how-to-use-p5-js-in-h5p/33612)

<div class="topic-metadata">

**Author:** [@ViCh](https://discourse.processing.org/u/ViCh)\
**Replies:** 2\
**Last updated:** [November 20, 2021, 4:51am UTC](https://discourse.processing.org/t/how-to-use-p5-js-in-h5p/33612 "2021-11-20T04:51:50Z")

</div>

I am trying to create distributable packages(H5p) for the game that I have created using P5.js and Blockly. Basically in this game output is generated on-screen(P5.js, HTML Canvas) taking the instructions from the Blockl…

---

## [CP5 – "global" tab overrides bringToFront()](https://discourse.processing.org/t/cp5-global-tab-overrides-bringtofront/33617)

<div class="topic-metadata">

**Author:** [@jango\_fx](https://discourse.processing.org/u/jango_fx)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 11:55pm UTC](https://discourse.processing.org/t/cp5-global-tab-overrides-bringtofront/33617 "2021-11-19T23:55:55Z")

</div>

i’d like to use controlP5’s Tabs. and i’d like to have some GUI elements showing up in all tabs (that is exist on the “global” tab) but i DON’T want those elements to overlay everything else. i thought bringToFront() …

---

## [Dropdown list as FilenameFilter in selectFolder() Dialog box](https://discourse.processing.org/t/dropdown-list-as-filenamefilter-in-selectfolder-dialog-box/33571)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 1\
**Last updated:** [November 19, 2021, 11:05pm UTC](https://discourse.processing.org/t/dropdown-list-as-filenamefilter-in-selectfolder-dialog-box/33571 "2021-11-19T23:05:24Z")

</div>

Hi guys… been racking my brains over this. I wanted to do a sort of extension filtering much like in the pic here… where the user can select the file extension or type eg: jpg, png, avi, mp4, etc I went down the rout…

---

## [My projects library #3! gallery megathread](https://discourse.processing.org/t/my-projects-library-3-gallery-megathread/29696)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 17\
**Last updated:** [November 19, 2021, 5:06pm UTC](https://discourse.processing.org/t/my-projects-library-3-gallery-megathread/29696 "2021-11-19T17:06:02Z")

</div>

Here are some of my projects I was working on. I hope you enjoy! Check out the 2 previous threads: library #1 library #2 Contents: #35 Conway sequence #36 Towers Of Hanoi

---

## [My projects library #2! - CodeMasterX's gallery megathread](https://discourse.processing.org/t/my-projects-library-2-codemasterxs-gallery-megathread/27161)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 23\
**Last updated:** [November 19, 2021, 5:05pm UTC](https://discourse.processing.org/t/my-projects-library-2-codemasterxs-gallery-megathread/27161 "2021-11-19T17:05:31Z")

</div>

GALERY MEGATHREAD! Hi! In the previous megathread I reached the max amount of edits. Therefore I started a new one. With the experience I gained from the previous thread, I implemented some changes! Contents: #20 Sier…

---

## [My projects library! - CodeMasterX's gallery megathread](https://discourse.processing.org/t/my-projects-library-codemasterxs-gallery-megathread/26301)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 30\
**Last updated:** [November 19, 2021, 5:05pm UTC](https://discourse.processing.org/t/my-projects-library-codemasterxs-gallery-megathread/26301 "2021-11-19T17:05:01Z")

</div>

Hi! I made a git-hub page. My name on github is time-bender. In this topic I’ll post all of my projects instead of creating new topics. It would probably be really annoying if a post “CodeMasterX posted: xyz GALERY” sev…

---

## [My projects library #4! Gallery Megathread](https://discourse.processing.org/t/my-projects-library-4-gallery-megathread/31103)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 26\
**Last updated:** [November 19, 2021, 5:01pm UTC](https://discourse.processing.org/t/my-projects-library-4-gallery-megathread/31103 "2021-11-19T17:01:32Z")

</div>

Here are some of my projects! I hope you get some ideas/inspiration from it : P There are 3 previous megathreads with 40 projects in total! library #1 library #2 library #3 If you have any questions regarding the p…

---

## [Help with array of mp3 files!](https://discourse.processing.org/t/help-with-array-of-mp3-files/33610)

<div class="topic-metadata">

**Author:** [@Elisabot](https://discourse.processing.org/u/Elisabot)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 3:00pm UTC](https://discourse.processing.org/t/help-with-array-of-mp3-files/33610 "2021-11-19T15:00:48Z")

</div>

Hi! I’m creating a proccesing code, that ads a voice to a choir every time the mouse is clicked (soundfiles being played simultaneously), this part works fine. The problem is, that I want to include some sort of timer t…

---

## [How to make a simple animation of a heartbeat monitor](https://discourse.processing.org/t/how-to-make-a-simple-animation-of-a-heartbeat-monitor/33614)

<div class="topic-metadata">

**Author:** [@N00b](https://discourse.processing.org/u/N00b)\
**Replies:** 1\
**Last updated:** [November 19, 2021, 1:35pm UTC](https://discourse.processing.org/t/how-to-make-a-simple-animation-of-a-heartbeat-monitor/33614 "2021-11-19T13:35:54Z")

</div>

Hello everyone, I’m very lost! I need to make a simple animation of a heartbeat monitor. The default setting should just be a simple horizontal line in the middle of the screen and when key pressed the line should take …

---

## [Interactive sketches](https://discourse.processing.org/t/interactive-sketches/33602)

<div class="topic-metadata">

**Author:** [@jarlook](https://discourse.processing.org/u/jarlook)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 1:03am UTC](https://discourse.processing.org/t/interactive-sketches/33602 "2021-11-19T01:03:33Z")

</div>

Several years ago I used Processing to create sketches for my chess visualization project. I created videos of the sketches and stored them on Vimeo, for viewing on a website. I am returning to that project, but now wa…

---

## [Edit data in a float buffer](https://discourse.processing.org/t/edit-data-in-a-float-buffer/15286)

<div class="topic-metadata">

**Author:** [@sash](https://discourse.processing.org/u/sash)\
**Replies:** 3\
**Last updated:** [November 19, 2021, 12:00am UTC](https://discourse.processing.org/t/edit-data-in-a-float-buffer/15286 "2021-11-19T00:00:49Z")

</div>

Late on the Kinect train, fresh in coding. I am using Thomas Sanchez Lengelings KinectPV2 library which can put the complete pointcloud of each frame in a float buffer. It is called with FloatBuffer = kinect.getPointCl…

---

## [IllegalAccessError: tried to access class processing.core.PApplet$RegisteredMethods from class cc.arduino.Arduino$SerialProxy](https://discourse.processing.org/t/illegalaccesserror-tried-to-access-class-processing-core-papplet-registeredmethods-from-class-cc-arduino-arduino-serialproxy/33598)

<div class="topic-metadata">

**Author:** [@shopdad](https://discourse.processing.org/u/shopdad)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 4:40pm UTC](https://discourse.processing.org/t/illegalaccesserror-tried-to-access-class-processing-core-papplet-registeredmethods-from-class-cc-arduino-arduino-serialproxy/33598 "2021-11-18T16:40:25Z")

</div>

I have a fairly basic Processing program I made in 2013 to controll solenoids using an arduino card with FirmatA installed. the original worked very well but is having issues with windows 10. I wanted to update it from…

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

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