# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=102

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

**Page:** 103

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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 …

---

## [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…

---

## [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…

---

## [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 …

---

## [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; …

---

## [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…

---

## [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 …

---

## [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…

---

## [How to package 12 double variables into JSON Object (Packets)](https://discourse.processing.org/t/how-to-package-12-double-variables-into-json-object-packets/33592)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 4\
**Last updated:** [November 18, 2021, 10:55am UTC](https://discourse.processing.org/t/how-to-package-12-double-variables-into-json-object-packets/33592 "2021-11-18T10:55:40Z")

</div>

\< I am developing Processing GUI for PID control. I wish to use JSON to share data between the PC and the control board. But i am having issue packaging the JSON object. I need send and receive 12 variable (double). …

---

## [Printing Serial Data from Arduino into a Processing IDE GUI](https://discourse.processing.org/t/printing-serial-data-from-arduino-into-a-processing-ide-gui/33545)

<div class="topic-metadata">

**Author:** [@Handrup](https://discourse.processing.org/u/Handrup)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 10:36am UTC](https://discourse.processing.org/t/printing-serial-data-from-arduino-into-a-processing-ide-gui/33545 "2021-11-18T10:36:13Z")

</div>

Hi guys, I need help with how I make a simple UI displaying a rising number that i am receiving from an Arduino via Serial Port

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=101)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=103)
