# Latest

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

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

**Page:** 87

---

## [Help on creating orbit simulation (lines fade)](https://discourse.processing.org/t/help-on-creating-orbit-simulation-lines-fade/40746)

<div class="topic-metadata">

**Author:** [@crv74](https://discourse.processing.org/u/crv74)\
**Replies:** 12\
**Last updated:** [February 3, 2023, 10:57am UTC](https://discourse.processing.org/t/help-on-creating-orbit-simulation-lines-fade/40746 "2023-02-03T10:57:09Z")

</div>

Hi there, after my (your basically) last learning process of the surface programming, it came in mind another thing i want to try, but i really don’t knwo how to start it (call me dumb). The idea came, under a video i …

---

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

<div class="topic-metadata">

**Author:** [@andprocessing](https://discourse.processing.org/u/andprocessing)\
**Replies:** 21\
**Last updated:** [February 3, 2023, 12:24am UTC](https://discourse.processing.org/t/mouse-clicked-with-arrays-issue-wolves-and-lambs/40807 "2023-02-03T00:24:31Z")

</div>

Hi! So there’s this assignment i need to do. I made a game where you basically have to find a wolf inside a pack of sheep. Once you find it, you have to click on it, and it will move on to the next level. You need to fin…

---

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

---

## [Processing Integration with Max/MSP](https://discourse.processing.org/t/processing-integration-with-max-msp/36123)

<div class="topic-metadata">

**Author:** [@cameronjohnston](https://discourse.processing.org/u/cameronjohnston)\
**Replies:** 4\
**Last updated:** [February 2, 2023, 5:21pm UTC](https://discourse.processing.org/t/processing-integration-with-max-msp/36123 "2023-02-02T17:21:30Z")

</div>

Hey all, I was wondering if there was any interest in trying to integrate Processing into Max/MSP. Processing is such a powerful program for creating visual environments and I think it would be great for integration wit…

---

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

---

## [Trouble with Processing sound library. Processing looses the control over the audio output device after the Android activity was recreated](https://discourse.processing.org/t/trouble-with-processing-sound-library-processing-looses-the-control-over-the-audio-output-device-after-the-android-activity-was-recreated/40764)

<div class="topic-metadata">

**Author:** [@MGDSStudio](https://discourse.processing.org/u/MGDSStudio)\
**Replies:** 0\
**Last updated:** [January 31, 2023, 10:02am UTC](https://discourse.processing.org/t/trouble-with-processing-sound-library-processing-looses-the-control-over-the-audio-output-device-after-the-android-activity-was-recreated/40764 "2023-01-31T10:02:13Z")

</div>

0 Short description: I have created an android app with two activities. The main activity creates processing context. Processing plays every 3 second a short sound. The code is short and simple and placed here. When t…

---

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

---

## [On generative AI on the Processing forum](https://discourse.processing.org/t/on-generative-ai-on-the-processing-forum/40051)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 31\
**Last updated:** [January 31, 2023, 9:46pm UTC](https://discourse.processing.org/t/on-generative-ai-on-the-processing-forum/40051 "2023-01-31T21:46:27Z")

</div>

Hey y’all, I’ve been experimenting with ChatGPT to answer some questions on the forum. Here are the messages: General advice to the poster that they might want to go back to fundamentals. The prompt included that the …

---

## [P3D failing in Python Mode on Mac](https://discourse.processing.org/t/p3d-failing-in-python-mode-on-mac/40683)

<div class="topic-metadata">

**Author:** [@jonsantos](https://discourse.processing.org/u/jonsantos)\
**Replies:** 3\
**Last updated:** [February 1, 2023, 1:40am UTC](https://discourse.processing.org/t/p3d-failing-in-python-mode-on-mac/40683 "2023-02-01T01:40:04Z")

</div>

I have been unable to get the P3D renderer to work as expected while trying to run the Directional example (Examples/Lights/Directional) in Python Mode on my Mac (12.6). The example does work in Java Mode on my Mac, and…

---

## [How to create button in Processing](https://discourse.processing.org/t/how-to-create-button-in-processing/40766)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 6\
**Last updated:** [February 1, 2023, 12:30am UTC](https://discourse.processing.org/t/how-to-create-button-in-processing/40766 "2023-02-01T00:30:21Z")

</div>

How can use buttons in processing(java)

---

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

---

## [Compute shader processing](https://discourse.processing.org/t/compute-shader-processing/38986)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [January 30, 2023, 4:58pm UTC](https://discourse.processing.org/t/compute-shader-processing/38986 "2023-01-30T16:58:10Z")

</div>

Here’s sketch i’ve been working on, still needs some tiding up. A compute shader where you can retrieve the values. It still needs some work, for now basic addition works, im adding basic string reader so you can expand…

---

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

---

## [P5.sound.min.js -\> could not load content for p5.sound.min.js.map](https://discourse.processing.org/t/p5-sound-min-js-could-not-load-content-for-p5-sound-min-js-map/40737)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 0\
**Last updated:** [January 29, 2023, 3:45pm UTC](https://discourse.processing.org/t/p5-sound-min-js-could-not-load-content-for-p5-sound-min-js-map/40737 "2023-01-29T15:45:19Z")

</div>

Hi everyone, I’ve just updated p5js libraries of a sketch with the latest versions of p5.min.js and p5.sound.min.js files I’ve found on: https://p5js.org/download/. As I didn’t had updated those files for more than 3 ye…

---

## [Test for sharing code SlotMachine p5.js](https://discourse.processing.org/t/test-for-sharing-code-slotmachine-p5-js/40736)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 0\
**Last updated:** [January 29, 2023, 2:59pm UTC](https://discourse.processing.org/t/test-for-sharing-code-slotmachine-p5-js/40736 "2023-01-29T14:59:12Z")

</div>

Hola comunidad, queria compartir el codigo de este micro juego con vosotros… quizá inspire a alguien :slight\_smile: Source code: Dropbox - glz\_web\_p5\_slotMachine.zip - Simplify your life

---

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

---

## [An idea's tab for discourse](https://discourse.processing.org/t/an-ideas-tab-for-discourse/40728)

<div class="topic-metadata">

**Author:** [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 10:24am UTC](https://discourse.processing.org/t/an-ideas-tab-for-discourse/40728 "2023-01-27T10:24:04Z")

</div>

Would anyone else like to see an idea section on this site? some tab that people can place their ideas that maybe they dont have the skills to build yet, just like writers block, sometimes it can be hard to imagine somet…

---

## [\[Android\] Regarding the Android mode, has the text breakage been resolved?](https://discourse.processing.org/t/android-regarding-the-android-mode-has-the-text-breakage-been-resolved/24139)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 7:13am UTC](https://discourse.processing.org/t/android-regarding-the-android-mode-has-the-text-breakage-been-resolved/24139 "2023-01-27T07:13:51Z")

</div>

Regarding the Android mode, has the text breakage been resolved? Please refer to the image. Korean Japanese English If you experiment through All texts are broken except in English. Did you come up with a soluti…

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

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