# Processing

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

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

**Page:** 158

---

## [Processing "GUI Builder warning" when opening G4P GUI builder](https://discourse.processing.org/t/processing-gui-builder-warning-when-opening-g4p-gui-builder/26980)

<div class="topic-metadata">

**Author:** [@JackjDaly](https://discourse.processing.org/u/JackjDaly)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 4:54pm UTC](https://discourse.processing.org/t/processing-gui-builder-warning-when-opening-g4p-gui-builder/26980 "2021-01-11T16:54:55Z")

</div>

Hi, I am having an issue with using G4P in processing, I have tried adding it through the add tools feature in processing, as well as installing it by adding it to the tools folder as instructed here (Quarks Place) Yet…

---

## [Let the image object move in different directions](https://discourse.processing.org/t/let-the-image-object-move-in-different-directions/26929)

<div class="topic-metadata">

**Author:** [@Elmpt](https://discourse.processing.org/u/Elmpt)\
**Replies:** 7\
**Last updated:** [January 11, 2021, 2:40pm UTC](https://discourse.processing.org/t/let-the-image-object-move-in-different-directions/26929 "2021-01-11T14:40:37Z")

</div>

Hi everyone! I need some help with understanding, what can I use to make an image object move in the specified direction(vectors maybe…I am not that sure). I have an object that is represented by png image and I want it…

---

## [I have some problems with NPE, and i dont know how to fix it](https://discourse.processing.org/t/i-have-some-problems-with-npe-and-i-dont-know-how-to-fix-it/26968)

<div class="topic-metadata">

**Author:** [@deiwy](https://discourse.processing.org/u/deiwy)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 12:52pm UTC](https://discourse.processing.org/t/i-have-some-problems-with-npe-and-i-dont-know-how-to-fix-it/26968 "2021-01-11T12:52:14Z")

</div>

i try to do a platformer, and i have problems with IntList main code: block\[\] b; button\[\] bu; player p; IntList yB = new IntList(); IntList xB = new IntList(); int menu = 0; void setup(){ for(int i = 0; i \< lev…

---

## [Choice of OpenJDK is Critical](https://discourse.processing.org/t/choice-of-openjdk-is-critical/16141)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 8\
**Last updated:** [January 11, 2021, 11:31am UTC](https://discourse.processing.org/t/choice-of-openjdk-is-critical/16141 "2021-01-11T11:31:16Z")

</div>

I thought it might be worth recording my experience here of trying different versions of OpenJDK with my ruby-processing projects (I am sure same would apply to non-ide user of processing). My experience is limited to 64…

---

## [\[Issue\] Cannot run P2D / P3D on versions 3.2.4 up to 4.0a2](https://discourse.processing.org/t/issue-cannot-run-p2d-p3d-on-versions-3-2-4-up-to-4-0a2/26914)

<div class="topic-metadata">

**Author:** [@VeryRealEngine](https://discourse.processing.org/u/VeryRealEngine)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 11:06am UTC](https://discourse.processing.org/t/issue-cannot-run-p2d-p3d-on-versions-3-2-4-up-to-4-0a2/26914 "2021-01-11T11:06:49Z")

</div>

I also posted this question here: Hello there. I am encountering a weird problem with Processing on Windows. When running this code: void setup() { size(500, 500, P2D); } I get the following error: Error load…

---

## [Understanding the Atan2, Please help](https://discourse.processing.org/t/understanding-the-atan2-please-help/26928)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 13\
**Last updated:** [January 11, 2021, 11:04am UTC](https://discourse.processing.org/t/understanding-the-atan2-please-help/26928 "2021-01-11T11:04:03Z")

</div>

I was expecting to get the degrees from the center of the sketch to the mouse from 0 to 360 or zero to 2PI. Instead I am getting zero to 180 from horizontal to the belly of the sketch and then I get negative numbers on …

---

## [Help exporting PDF](https://discourse.processing.org/t/help-exporting-pdf/26416)

<div class="topic-metadata">

**Author:** [@lucaii](https://discourse.processing.org/u/lucaii)\
**Replies:** 3\
**Last updated:** [January 11, 2021, 10:36am UTC](https://discourse.processing.org/t/help-exporting-pdf/26416 "2021-01-11T10:36:17Z")

</div>

Hi, Around four or five years ago I came up with this code which I now slightly edited. I would like to export a PDF on keypressed but can’t seem to make it work… everytime the pdf exports it’s empty. Any ideas or help …

---

## [spotLight() not behaving like i'd expect](https://discourse.processing.org/t/spotlight-not-behaving-like-id-expect/26963)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 10:33am UTC](https://discourse.processing.org/t/spotlight-not-behaving-like-id-expect/26963 "2021-01-11T10:33:38Z")

</div>

I’m experimenting with light sources to see how their attributes affect the light movement and casting on 3D shapes. I set up a spotLight() above, pointing straight down, a large flat box() below, and i increment the spo…

---

## [Idk where is the error](https://discourse.processing.org/t/idk-where-is-the-error/26952)

<div class="topic-metadata">

**Author:** [@deiwy](https://discourse.processing.org/u/deiwy)\
**Replies:** 2\
**Last updated:** [January 10, 2021, 3:30pm UTC](https://discourse.processing.org/t/idk-where-is-the-error/26952 "2021-01-10T15:30:05Z")

</div>

so, I recently started programming on processing 3, the first game I want to do has to be a platformer, but I made a mistake and I don’t know what it is block\[\] b; int Map\[\]\[\] = { {1,0,0,0,0,0,0,0}, {0,1,0,0,0,1,0,…

---

## [Problem with movie clip in build](https://discourse.processing.org/t/problem-with-movie-clip-in-build/26769)

<div class="topic-metadata">

**Author:** [@blackwood](https://discourse.processing.org/u/blackwood)\
**Replies:** 5\
**Last updated:** [January 10, 2021, 3:29pm UTC](https://discourse.processing.org/t/problem-with-movie-clip-in-build/26769 "2021-01-10T15:29:53Z")

</div>

Hey there, a friend and I are making a game for college project in Processing. Before the game starts, a cutscene is played which works perfectly fine when tested in the editor, but when exported as a build (Windows), i…

---

## [Get new size of PShape after transform (shear)?](https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184)

<div class="topic-metadata">

**Author:** [@snaders](https://discourse.processing.org/u/snaders)\
**Replies:** 3\
**Last updated:** [January 10, 2021, 1:57pm UTC](https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184 "2021-01-10T13:57:12Z")

</div>

I’m transforming a shape with shearX. I’m looking for a way to get the new ‘real’ size of the shape after transforming. Is this possible? The shape is loaded from a SVG with loadShape. I was thinking to do something lik…

---

## [Creating Random Rectangles Without Overlap](https://discourse.processing.org/t/creating-random-rectangles-without-overlap/26918)

<div class="topic-metadata">

**Author:** [@jSmith](https://discourse.processing.org/u/jSmith)\
**Replies:** 11\
**Last updated:** [January 10, 2021, 12:22pm UTC](https://discourse.processing.org/t/creating-random-rectangles-without-overlap/26918 "2021-01-10T12:22:04Z")

</div>

Hey guys, so I know that there are other posts about this topic but they don’t really seem to help. Other solutions make use of arrayList and class, which I was not taught. And so I was wondering if it is possible to ach…

---

## [Null Pointer help and some guidance with a working EEPROM write Processing sketch](https://discourse.processing.org/t/null-pointer-help-and-some-guidance-with-a-working-eeprom-write-processing-sketch/26797)

<div class="topic-metadata">

**Author:** [@jshackel8](https://discourse.processing.org/u/jshackel8)\
**Replies:** 4\
**Last updated:** [January 10, 2021, 11:44am UTC](https://discourse.processing.org/t/null-pointer-help-and-some-guidance-with-a-working-eeprom-write-processing-sketch/26797 "2021-01-10T11:44:05Z")

</div>

Hello, This is my first post. I apologize if I’m not adhering to the syntax for submitting questions if I messed it up. I created a working Arduino nano sketch that works in combination with a Processing sketch to read …

---

## [G4p GUI editor issues](https://discourse.processing.org/t/g4p-gui-editor-issues/26781)

<div class="topic-metadata">

**Author:** [@jimlee](https://discourse.processing.org/u/jimlee)\
**Replies:** 18\
**Last updated:** [January 10, 2021, 9:35am UTC](https://discourse.processing.org/t/g4p-gui-editor-issues/26781 "2021-01-10T09:35:56Z")

</div>

I set up a new app and created my interface using G4P GUI editor. Everyhting was wonderful. App actually did pretty much what I wanted. Went to bed a happy camper. Next day, I can still edit my app code in processing bu…

---

## [Problem coding Java (TRIANGLE\_FAN )](https://discourse.processing.org/t/problem-coding-java-triangle-fan/26935)

<div class="topic-metadata">

**Author:** [@hom1](https://discourse.processing.org/u/hom1)\
**Replies:** 1\
**Last updated:** [January 10, 2021, 1:10am UTC](https://discourse.processing.org/t/problem-coding-java-triangle-fan/26935 "2021-01-10T01:10:03Z")

</div>

please format code with \</\> button \* homework policy \* asking questions How to create TRIANGLE\_FAN?

---

## [Drawing a shader generated PGraphics onto a non OpenGL PGraphics object](https://discourse.processing.org/t/drawing-a-shader-generated-pgraphics-onto-a-non-opengl-pgraphics-object/26264)

<div class="topic-metadata">

**Author:** [@r.jaoui](https://discourse.processing.org/u/r.jaoui)\
**Replies:** 6\
**Last updated:** [January 9, 2021, 8:37pm UTC](https://discourse.processing.org/t/drawing-a-shader-generated-pgraphics-onto-a-non-opengl-pgraphics-object/26264 "2021-01-09T20:37:46Z")

</div>

Hello everyone ! I am currently developping quite a big project, and for simplicity I have chosen to use Processing as a graphical engine. I am coding with Eclipse Neon. The issue is that I have developped GLSL Fragmen…

---

## [Storing all incoming data and button not working](https://discourse.processing.org/t/storing-all-incoming-data-and-button-not-working/26398)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 8\
**Last updated:** [January 9, 2021, 5:34pm UTC](https://discourse.processing.org/t/storing-all-incoming-data-and-button-not-working/26398 "2021-01-09T17:34:10Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, my code currently stores data whenever I press the button ‘save data in text’. It stores the data at that moment in time and that second. How…

---

## [Dijkstra Algorithm view (Node, Edges)](https://discourse.processing.org/t/dijkstra-algorithm-view-node-edges/26891)

<div class="topic-metadata">

**Author:** [@librakl](https://discourse.processing.org/u/librakl)\
**Replies:** 20\
**Last updated:** [January 9, 2021, 3:39pm UTC](https://discourse.processing.org/t/dijkstra-algorithm-view-node-edges/26891 "2021-01-09T15:39:04Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, we have to implement the Dijkstra Algorithm. But at the beginning you have an empty field where you can click to create the nodes and ed…

---

## [LerpColor on Arc?](https://discourse.processing.org/t/lerpcolor-on-arc/26880)

<div class="topic-metadata">

**Author:** [@toninhorodrigues](https://discourse.processing.org/u/toninhorodrigues)\
**Replies:** 5\
**Last updated:** [January 9, 2021, 12:34pm UTC](https://discourse.processing.org/t/lerpcolor-on-arc/26880 "2021-01-09T12:34:15Z")

</div>

Hi there, I’m fairly new to Processing, and have been trying to make a single arc with a gradient style. I tried searching around, but have only found gradient codes for straight line objects, such as rectangle, the fu…

---

## [Getting shaked when using textAlign(CENTER, CENTER)](https://discourse.processing.org/t/getting-shaked-when-using-textalign-center-center/26835)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 6\
**Last updated:** [January 9, 2021, 7:13am UTC](https://discourse.processing.org/t/getting-shaked-when-using-textalign-center-center/26835 "2021-01-09T07:13:38Z")

</div>

Hi, everyone ! When I use sin() funtion to shrink my text’s size I am getting a shaky effect with textAlign(CENTER, CENTER). I have to use it with textAlign(CENTER, CENTER) but without shaky effect. Here is my code whi…

---

## [MIDI to TXT list](https://discourse.processing.org/t/midi-to-txt-list/26808)

<div class="topic-metadata">

**Author:** [@username1](https://discourse.processing.org/u/username1)\
**Replies:** 2\
**Last updated:** [January 8, 2021, 9:52pm UTC](https://discourse.processing.org/t/midi-to-txt-list/26808 "2021-01-08T21:52:13Z")

</div>

Hello everyone, could someone explain me, how exactly MIDI works or if you know how to convert midi file to text? My goal is to make a list of notes with time stamps, other things like velocity are optimal, but not nece…

---

## [Problem with playing online audio using minim](https://discourse.processing.org/t/problem-with-playing-online-audio-using-minim/26890)

<div class="topic-metadata">

**Author:** [@ylii](https://discourse.processing.org/u/ylii)\
**Replies:** 1\
**Last updated:** [January 8, 2021, 5:58pm UTC](https://discourse.processing.org/t/problem-with-playing-online-audio-using-minim/26890 "2021-01-08T17:58:19Z")

</div>

hello, I tried to loadsample with an URL using Minim, but the sound can’t be loaded. Anyone has an idea? Thanks in advance! minim = new Minim(this); sample = minim.loadFile(“http://www.soundcities.com/global/mp3s/aarh…

---

## [Comparing two ArrayList of Objects to find differences](https://discourse.processing.org/t/comparing-two-arraylist-of-objects-to-find-differences/26860)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 6\
**Last updated:** [January 8, 2021, 2:14pm UTC](https://discourse.processing.org/t/comparing-two-arraylist-of-objects-to-find-differences/26860 "2021-01-08T14:14:44Z")

</div>

Hello! I am working with two ArrayList of objects with more than 6000 elements for each ArrayList. Most of these objects are the same but I need to find what are the differences between the two lists. Is there a quick w…

---

## [How do you detect / stop someone from closing the sketch?](https://discourse.processing.org/t/how-do-you-detect-stop-someone-from-closing-the-sketch/26864)

<div class="topic-metadata">

**Author:** [@what42](https://discourse.processing.org/u/what42)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 10:11pm UTC](https://discourse.processing.org/t/how-do-you-detect-stop-someone-from-closing-the-sketch/26864 "2021-01-07T22:11:35Z")

</div>

I want to have some code run before the sketch is closed, but I don’t know how to detect when the window itself has been closed by clicking its x. I’d also be okay with making the window borderless, but I can’t find a wa…

---

## [How to apply changes to a particular object of the class in Processing?](https://discourse.processing.org/t/how-to-apply-changes-to-a-particular-object-of-the-class-in-processing/26855)

<div class="topic-metadata">

**Author:** [@Elmpt](https://discourse.processing.org/u/Elmpt)\
**Replies:** 15\
**Last updated:** [January 7, 2021, 3:05pm UTC](https://discourse.processing.org/t/how-to-apply-changes-to-a-particular-object-of-the-class-in-processing/26855 "2021-01-07T15:05:15Z")

</div>

Hi! I am a little confused with the handling of objects. I have created class “Stone” and then I have created 3 objects Stone stone1, stone2, stone3 in the main scetch. What I need is to make a stone transparent when use…

---

## [Slow Movement of player to mouse position on mouse click](https://discourse.processing.org/t/slow-movement-of-player-to-mouse-position-on-mouse-click/26844)

<div class="topic-metadata">

**Author:** [@Leonniclass](https://discourse.processing.org/u/Leonniclass)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 9:22pm UTC](https://discourse.processing.org/t/slow-movement-of-player-to-mouse-position-on-mouse-click/26844 "2021-01-06T21:22:54Z")

</div>

Hello, I am new to processing and I have to make a game were the user clicks somewhere in the window and the ball will move to the position. It is pretty simple, but I cant figure it out :sweat\_smile: I havent found som…

---

## [How do i detect when spacebar is pressed?](https://discourse.processing.org/t/how-do-i-detect-when-spacebar-is-pressed/26845)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 8:47pm UTC](https://discourse.processing.org/t/how-do-i-detect-when-spacebar-is-pressed/26845 "2021-01-06T20:47:17Z")

</div>

well I want my character to jump when i press spacebar, but it doesn’t work. void keyPressed(){ //i'd like to detect when space bar is pressed. if(key==' '){} //it did'nt work though :( } i saw (key==’ ') in other c…

---

## [How to freeze a draw loop?](https://discourse.processing.org/t/how-to-freeze-a-draw-loop/2741)

<div class="topic-metadata">

**Author:** [@wrongexit](https://discourse.processing.org/u/wrongexit)\
**Replies:** 7\
**Last updated:** [August 18, 2018, 3:12am UTC](https://discourse.processing.org/t/how-to-freeze-a-draw-loop/2741 "2018-08-18T03:12:50Z")

</div>

I have a draw loop that makes a new graphic each time. I want to be able to pause the loop by clicking the mouse when I see a graphic that I like. But everything I’ve tried fails to stop on the current frame. It’s always…

---

## [Simple sketch issue (mouse over sets color)](https://discourse.processing.org/t/simple-sketch-issue-mouse-over-sets-color/26806)

<div class="topic-metadata">

**Author:** [@DamoBailey](https://discourse.processing.org/u/DamoBailey)\
**Replies:** 13\
**Last updated:** [January 6, 2021, 7:28am UTC](https://discourse.processing.org/t/simple-sketch-issue-mouse-over-sets-color/26806 "2021-01-06T07:28:32Z")

</div>

Hi I am a complete beginner and am working on the following project: Create a 500x500 grey area split into 4 equal quadrants. Show one quadrant as blue when the mouse is in that quadrant (all other quadrants shown as g…

---

## [How do nested arrays such as IntDict\[\] work? (Processing 3.5.4)](https://discourse.processing.org/t/how-do-nested-arrays-such-as-intdict-work-processing-3-5-4/26818)

<div class="topic-metadata">

**Author:** [@Anon0908](https://discourse.processing.org/u/Anon0908)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 7:05am UTC](https://discourse.processing.org/t/how-do-nested-arrays-such-as-intdict-work-processing-3-5-4/26818 "2021-01-06T07:05:03Z")

</div>

How do I properly invoke array commands such as append() on an IntDict\[\] array? For example, this is my current sketch testing such a thing: IntDict\[\] dictArray; void setup() { size(1400, 1000); /\*properly initializ…

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

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