# Processing

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

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

**Page:** 49

---

## [Weird Error while running the program](https://discourse.processing.org/t/weird-error-while-running-the-program/40730)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 5\
**Last updated:** [February 2, 2023, 9:56pm UTC](https://discourse.processing.org/t/weird-error-while-running-the-program/40730 "2023-02-02T21:56:36Z")

</div>

I got this error: NullPointerException java.lang.NullPointerException: Cannot invoke “java.lang.Integer.intValue()” because the return value of “java.util.Map.remove(Object)” is null at processing.core.PApplet.dequeu…

---

## [Mouse clicked issue with arrays](https://discourse.processing.org/t/mouse-clicked-issue-with-arrays/40804)

<div class="topic-metadata">

**Author:** [@andprocessing](https://discourse.processing.org/u/andprocessing)\
**Replies:** 1\
**Last updated:** [February 2, 2023, 6:56pm UTC](https://discourse.processing.org/t/mouse-clicked-issue-with-arrays/40804 "2023-02-02T18:56:18Z")

</div>

Hi! I have this school assignment. I basically made a game where you have to find a wolf in a pack of sheep. Once you click the wolf, it restarts and you just have to get more points until the timer runs out. The thing i…

---

## [What is happening? (Sprite sheet)](https://discourse.processing.org/t/what-is-happening-sprite-sheet/40784)

<div class="topic-metadata">

**Author:** [@FelixBrooks](https://discourse.processing.org/u/FelixBrooks)\
**Replies:** 3\
**Last updated:** [February 2, 2023, 11:32am UTC](https://discourse.processing.org/t/what-is-happening-sprite-sheet/40784 "2023-02-02T11:32:35Z")

</div>

PVector pos = new PVector(650, 0); PVector vel = new PVector(0,0); PVector acc = new PVector(0,9.8); //import gifAnimation.\*; //Gif Sprite; //import processing.sound.\*; //SoundFile file; //PImage Background; PIma…

---

## [Passing a Variable outside an if statement](https://discourse.processing.org/t/passing-a-variable-outside-an-if-statement/40794)

<div class="topic-metadata">

**Author:** [@slaz](https://discourse.processing.org/u/slaz)\
**Replies:** 5\
**Last updated:** [February 2, 2023, 10:02am UTC](https://discourse.processing.org/t/passing-a-variable-outside-an-if-statement/40794 "2023-02-02T10:02:47Z")

</div>

Hi everyone , In my code I am trying to pass the value of int node1, node2, node3 in texts as you can see in void draw. import java.util.Arrays; import processing.serial.\*; import http.requests.\*; PImage bg; int addr…

---

## [Using gamepads on Raspberry Pi (Raspbian OS 32 or 64)](https://discourse.processing.org/t/using-gamepads-on-raspberry-pi-raspbian-os-32-or-64/40791)

<div class="topic-metadata">

**Author:** [@MGDSStudio](https://discourse.processing.org/u/MGDSStudio)\
**Replies:** 0\
**Last updated:** [February 2, 2023, 5:23am UTC](https://discourse.processing.org/t/using-gamepads-on-raspberry-pi-raspbian-os-32-or-64/40791 "2023-02-02T05:23:09Z")

</div>

Hello everyone. I got a project from a firma that creates arcade cabinets with retro arcade games (like donkey Kong, pacman and so on). I need to create a videogame that will be controlled via a joystic (air fighter simu…

---

## [Warning Extreme Newbie - I want to add a batch command to an image process](https://discourse.processing.org/t/warning-extreme-newbie-i-want-to-add-a-batch-command-to-an-image-process/40761)

<div class="topic-metadata">

**Author:** [@DRed](https://discourse.processing.org/u/DRed)\
**Replies:** 13\
**Last updated:** [February 1, 2023, 8:52am UTC](https://discourse.processing.org/t/warning-extreme-newbie-i-want-to-add-a-batch-command-to-an-image-process/40761 "2023-02-01T08:52:33Z")

</div>

Hi I am using a copy of ADSFPixelSort by Kim Asendorf to create a video sequence. Rather than re-entering the different file names (the numbers at the end of each of the image sequence files) I’d like to just have the p…

---

## [Understanding the function of CheckAlpha boolean PGraphics argument](https://discourse.processing.org/t/understanding-the-function-of-checkalpha-boolean-pgraphics-argument/40777)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 3\
**Last updated:** [February 1, 2023, 10:33am UTC](https://discourse.processing.org/t/understanding-the-function-of-checkalpha-boolean-pgraphics-argument/40777 "2023-02-01T10:33:09Z")

</div>

I am trying to figure out what the CheckAlpha argument to Pgraphics does - and how and why - and have chased my confusion down to line 281 of LINK UPDATED the core docs if ((pixels\[i\] & 0xff000000) != 0xff000000) I…

---

## [Using the launch() function anomaly](https://discourse.processing.org/t/using-the-launch-function-anomaly/40573)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 6\
**Last updated:** [January 31, 2023, 10:42pm UTC](https://discourse.processing.org/t/using-the-launch-function-anomaly/40573 "2023-01-31T22:42:20Z")

</div>

Using the launch() function does launch the already compiled sketch. But the compiled sketch ends/exits immediately. I wasn’t sure launch() was working until I set the flag in the properties of the compiled sketch to “Ru…

---

## [Processing 2 compiled program does not show gui](https://discourse.processing.org/t/processing-2-compiled-program-does-not-show-gui/40747)

<div class="topic-metadata">

**Author:** [@inselbegabung](https://discourse.processing.org/u/inselbegabung)\
**Replies:** 3\
**Last updated:** [January 31, 2023, 9:02am UTC](https://discourse.processing.org/t/processing-2-compiled-program-does-not-show-gui/40747 "2023-01-31T09:02:52Z")

</div>

I’m using Processing 2 on a Win10 computer and try to compile a code for a plotter. I did not write the code. You can find the code here The program works fine when I run it from the IDE but compiled as exe file it do…

---

## [Class in function](https://discourse.processing.org/t/class-in-function/40738)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 5\
**Last updated:** [January 30, 2023, 4:19pm UTC](https://discourse.processing.org/t/class-in-function/40738 "2023-01-30T16:19:56Z")

</div>

Perhaps this is as silly as possible what I want to do. Is it possible to create a function that will create an initialize class.

---

## [How can make Processing run as a stand-alone, portable S/W?](https://discourse.processing.org/t/how-can-make-processing-run-as-a-stand-alone-portable-s-w/40657)

<div class="topic-metadata">

**Author:** [@Alkis](https://discourse.processing.org/u/Alkis)\
**Replies:** 17\
**Last updated:** [January 30, 2023, 2:51pm UTC](https://discourse.processing.org/t/how-can-make-processing-run-as-a-stand-alone-portable-s-w/40657 "2023-01-30T14:51:51Z")

</div>

I have installed Processing 3.5.4 on an external (portable) hard disk and I have changed the default Sketchbook folder (C:\\Users{username}\\AppData\\Roaming\\Processing) to one on that external hard disk, for the purpose ro…

---

## [Error in code Processing](https://discourse.processing.org/t/error-in-code-processing/40742)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 11:34am UTC](https://discourse.processing.org/t/error-in-code-processing/40742 "2023-01-30T11:34:52Z")

</div>

The error is related to char but I can’t figure out what the problem is public final class Lexer{ private static final String OPERATORS\_CHARS = “±\*/”; private static final TokenType OPERATOR\_TOKENS ={ TokenType.PLUS,…

---

## [Method initialize without writing in setup or draw](https://discourse.processing.org/t/method-initialize-without-writing-in-setup-or-draw/40740)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 4\
**Last updated:** [January 30, 2023, 7:19am UTC](https://discourse.processing.org/t/method-initialize-without-writing-in-setup-or-draw/40740 "2023-01-30T07:19:32Z")

</div>

And btw, what are some ways I can initialize a method without writing method(); in setup() or draw() ??

---

## [Loading files from outside the \`data\` folder](https://discourse.processing.org/t/loading-files-from-outside-the-data-folder/40743)

<div class="topic-metadata">

**Author:** [@Brahvim](https://discourse.processing.org/u/Brahvim)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 8:18am UTC](https://discourse.processing.org/t/loading-files-from-outside-the-data-folder/40743 "2023-01-30T08:18:24Z")

</div>

Can one load files from outside the data folder of a sketch using functions like loadImage()? Apparently Java paths can look like: ../../../../C:/Users/Brahvim/Projects/Photo Edits/Outputs/image.png, …but it doesn’t se…

---

## [Processing no compiles on Arduino UNO R3](https://discourse.processing.org/t/processing-no-compiles-on-arduino-uno-r3/40721)

<div class="topic-metadata">

**Author:** [@roberto64](https://discourse.processing.org/u/roberto64)\
**Replies:** 15\
**Last updated:** [January 28, 2023, 10:31pm UTC](https://discourse.processing.org/t/processing-no-compiles-on-arduino-uno-r3/40721 "2023-01-28T22:31:08Z")

</div>

hi I installed processing to make applications with arduino, but I’ve been trying to make a simple arduino program like Blink work for two days but nothing I state that with Arduino ide 2.03 it works well, but when I cle…

---

## [Seemingly Simple 3D Animation Running Very Slowly](https://discourse.processing.org/t/seemingly-simple-3d-animation-running-very-slowly/40731)

<div class="topic-metadata">

**Author:** [@monty86](https://discourse.processing.org/u/monty86)\
**Replies:** 3\
**Last updated:** [January 28, 2023, 5:10pm UTC](https://discourse.processing.org/t/seemingly-simple-3d-animation-running-very-slowly/40731 "2023-01-28T17:10:12Z")

</div>

I am fairly new to Processing and am trying to draw 3D shapes and do what seems to be a fairly simple animation. However, the performance is very poor (the animation speed is not uniform - slows way down and speeds up) a…

---

## [Data visualization csv file and change through Processing?](https://discourse.processing.org/t/data-visualization-csv-file-and-change-through-processing/40727)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 4\
**Last updated:** [January 28, 2023, 1:06am UTC](https://discourse.processing.org/t/data-visualization-csv-file-and-change-through-processing/40727 "2023-01-28T01:06:39Z")

</div>

Good afternoon, can you tell me if it is possible to edit data in a csv file through processing through visualization? I found examples of various charts, but how can we change the lines and put dots in this chart for m…

---

## [Scale Text to Button](https://discourse.processing.org/t/scale-text-to-button/40724)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 4:54pm UTC](https://discourse.processing.org/t/scale-text-to-button/40724 "2023-01-27T16:54:35Z")

</div>

Hi, I want to create text that dynamically scales to a few pixels smaller than its respective button/boundaries size and also to the size of the screen. It is very easy to let it scale dynamically to the screen; however,…

---

## [filter(GRAY) makes everything gray](https://discourse.processing.org/t/filter-gray-makes-everything-gray/40725)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 7:07am UTC](https://discourse.processing.org/t/filter-gray-makes-everything-gray/40725 "2023-01-27T07:07:54Z")

</div>

In my game I am trying to make a button grayscale (temporarily) but not anything else. But it seems that there is no way to disable a filter after it is applied? pushStyle(); button.draw(); if (!button.pressable) filter…

---

## [How to launch Processing .exe with Windows 10 Task Scheduler?](https://discourse.processing.org/t/how-to-launch-processing-exe-with-windows-10-task-scheduler/26489)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 2:44am UTC](https://discourse.processing.org/t/how-to-launch-processing-exe-with-windows-10-task-scheduler/26489 "2023-01-27T02:44:34Z")

</div>

Looking to improve the method for starting exported applications from Processing. In the past I have used the “startup” folder located in the bowls of Windows to automatically launch sketches I have exported from Proces…

---

## [How do I load specific parts of an image, like if I was using a sprite sheet? I was told that I could use 'get();' in order to grab a part of the image, but I don't know how to do that. Where do I include the code for this? (Sprite she](https://discourse.processing.org/t/how-do-i-load-specific-parts-of-an-image-like-if-i-was-using-a-sprite-sheet-i-was-told-that-i-could-use-get-in-order-to-grab-a-part-of-the-image-but-i-dont-know-how-to-do-that-where-do-i-include-the-code-for-this-sprite-she/40714)

<div class="topic-metadata">

**Author:** [@FelixBrooks](https://discourse.processing.org/u/FelixBrooks)\
**Replies:** 7\
**Last updated:** [January 26, 2023, 8:05pm UTC](https://discourse.processing.org/t/how-do-i-load-specific-parts-of-an-image-like-if-i-was-using-a-sprite-sheet-i-was-told-that-i-could-use-get-in-order-to-grab-a-part-of-the-image-but-i-dont-know-how-to-do-that-where-do-i-include-the-code-for-this-sprite-she/40714 "2023-01-26T20:05:41Z")

</div>

\<PImage Walking; color c - color(0); void setup(); background(c); noStroke(); fill(c); Walking = loadImage('Walking-Animation.png"); void draw(); display(); image(Walking, pos.x, pos.y); // This is where I’m st…

---

## [How to make a bullets aim towards the mouse, but not continue to follow it?](https://discourse.processing.org/t/how-to-make-a-bullets-aim-towards-the-mouse-but-not-continue-to-follow-it/40699)

<div class="topic-metadata">

**Author:** [@UltimateDoug](https://discourse.processing.org/u/UltimateDoug)\
**Replies:** 3\
**Last updated:** [January 26, 2023, 8:37pm UTC](https://discourse.processing.org/t/how-to-make-a-bullets-aim-towards-the-mouse-but-not-continue-to-follow-it/40699 "2023-01-26T20:37:44Z")

</div>

How can I make my bullets follow the mouse position momentarily, but then forget its position so it wont continue to follow the mouse Bullet Class class Bullet { PVector pos; PVector spd; float damage; PVector …

---

## [Challenges in using G4P to create textAreas that are more "text-editor capable"](https://discourse.processing.org/t/challenges-in-using-g4p-to-create-textareas-that-are-more-text-editor-capable/39456)

<div class="topic-metadata">

**Author:** [@kryt](https://discourse.processing.org/u/kryt)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 2:12pm UTC](https://discourse.processing.org/t/challenges-in-using-g4p-to-create-textareas-that-are-more-text-editor-capable/39456 "2023-01-26T14:12:41Z")

</div>

Hello there, first of all, thanks to @quark for making a really easy to use library for GUI elements. It’s also one of the few with any kind of text-areas. I’m in a process of making a simple text-editing tool for writ…

---

## [Pushing a key for a game (player walking)](https://discourse.processing.org/t/pushing-a-key-for-a-game-player-walking/40717)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [January 26, 2023, 7:50am UTC](https://discourse.processing.org/t/pushing-a-key-for-a-game-player-walking/40717 "2023-01-26T07:50:31Z")

</div>

Hello everyone I am trying to make a code that will act like an auto clicker but works for keys on the keyboard. E.X. Im in a game and for some reason, I want to keep walking around every now and then how can I just push…

---

## [Need some help with glsl shaders](https://discourse.processing.org/t/need-some-help-with-glsl-shaders/40701)

<div class="topic-metadata">

**Author:** [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Replies:** 17\
**Last updated:** [January 26, 2023, 4:06am UTC](https://discourse.processing.org/t/need-some-help-with-glsl-shaders/40701 "2023-01-26T04:06:18Z")

</div>

Hi, im completely new to glsl and looking for a decent resource to start coding them for processing, just looking for the bare basics of drawing 2d pixels to the screen at this point, cant wrap my head around them, watch…

---

## [How can i resolve Runtime Error?](https://discourse.processing.org/t/how-can-i-resolve-runtime-error/40710)

<div class="topic-metadata">

**Author:** [@happycode](https://discourse.processing.org/u/happycode)\
**Replies:** 1\
**Last updated:** [January 25, 2023, 9:41pm UTC](https://discourse.processing.org/t/how-can-i-resolve-runtime-error/40710 "2023-01-25T21:41:55Z")

</div>

I have written an Java Processing application. If I try to start it, I get the following error: ""processing.core.PGraphics.createShape(int, float\[\])" because "this.g" is null". My Application has a View, Controller an…

---

## [Screen limits with random points](https://discourse.processing.org/t/screen-limits-with-random-points/40711)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 1\
**Last updated:** [January 25, 2023, 9:05pm UTC](https://discourse.processing.org/t/screen-limits-with-random-points/40711 "2023-01-25T21:05:33Z")

</div>

Hi there! I have this amazing Code as a polygon generator. It is really useful for me in order yo create random shapes. Now I want to draw polygons inside the screen, because ofently they appear out of It, how could I do…

---

## [P3D mode not working on Chromebook](https://discourse.processing.org/t/p3d-mode-not-working-on-chromebook/34682)

<div class="topic-metadata">

**Author:** [@mrchris](https://discourse.processing.org/u/mrchris)\
**Replies:** 5\
**Last updated:** [January 25, 2023, 2:05pm UTC](https://discourse.processing.org/t/p3d-mode-not-working-on-chromebook/34682 "2023-01-25T14:05:55Z")

</div>

Hi, A first-time Processing user here. I’ve just installed it on my Acer Chromebook Spin I get the below error message when I try to use P3D: size(400, 400, P3D); Is there any way around this? Thanks java.lang.Int…

---

## [Folders created during installation](https://discourse.processing.org/t/folders-created-during-installation/12360)

<div class="topic-metadata">

**Author:** [@andre](https://discourse.processing.org/u/andre)\
**Replies:** 6\
**Last updated:** [January 24, 2023, 11:50pm UTC](https://discourse.processing.org/t/folders-created-during-installation/12360 "2023-01-24T23:50:12Z")

</div>

Could someone please explain what is goes on when installing Processing on Windows? Actually all I did was I downloaded ZIP-file onto an external USB drive and unzipped it onto the same drive. This resulted in a new fo…

---

## [How to Properly Install Processing 4 on Windows 10 and Remove “Search for App in App Store Prompt”?](https://discourse.processing.org/t/how-to-properly-install-processing-4-on-windows-10-and-remove-search-for-app-in-app-store-prompt/40698)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 2\
**Last updated:** [January 24, 2023, 11:25pm UTC](https://discourse.processing.org/t/how-to-properly-install-processing-4-on-windows-10-and-remove-search-for-app-in-app-store-prompt/40698 "2023-01-24T23:25:49Z")

</div>

I have never really been sure how to properly install processing 3 or 4. After downloading and extracting I’m just not sure where to place the folder. Obviously downloads isn’t a good option. I’ve been placing it in pro…

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

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