# Latest

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

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

**Page:** 602

---

## [Performance questions](https://discourse.processing.org/t/performance-questions/2112)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 3\
**Last updated:** [July 28, 2018, 7:24am UTC](https://discourse.processing.org/t/performance-questions/2112 "2018-07-28T07:24:01Z")

</div>

hello! i’ve a serious question about performance. In resume, ive a processing sketch that allows me to add 3D geometry in real time, with a few PApplet controller-windows. Also, this gometry is drawing in a PGraphics and…

---

## [Processing Doesn't Open](https://discourse.processing.org/t/processing-doesnt-open/2157)

<div class="topic-metadata">

**Author:** [@aky91](https://discourse.processing.org/u/aky91)\
**Replies:** 1\
**Last updated:** [July 28, 2018, 5:34am UTC](https://discourse.processing.org/t/processing-doesnt-open/2157 "2018-07-28T05:34:32Z")

</div>

Description When I open processing.exe, the logo window of processing shows up for about 2-3 seconds then it simply closes. Nothing happens after that. Even Task Manager has no process related to it. I have been using …

---

## [NLP Natural Language Processing, etc](https://discourse.processing.org/t/nlp-natural-language-processing-etc/2149)

<div class="topic-metadata">

**Author:** [@dockhands](https://discourse.processing.org/u/dockhands)\
**Replies:** 1\
**Last updated:** [July 27, 2018, 10:29pm UTC](https://discourse.processing.org/t/nlp-natural-language-processing-etc/2149 "2018-07-27T22:29:00Z")

</div>

I’d love to do a project involving sentence generation, but not sure how possible this is with Processing. May have to learn Python to do this, but first, I wanted to see if anybody knew if Processing could work for gene…

---

## [Error with tensor](https://discourse.processing.org/t/error-with-tensor/2103)

<div class="topic-metadata">

**Author:** [@SeanW](https://discourse.processing.org/u/SeanW)\
**Replies:** 4\
**Last updated:** [July 27, 2018, 9:25pm UTC](https://discourse.processing.org/t/error-with-tensor/2103 "2018-07-27T21:25:53Z")

</div>

I am trying to redo a mouse tracking code with tensor.js so it can learn to follow, but I am getting an error when i use model.fit I think. I’m trying to train with the x and y position of the ball as input and predict t…

---

## [Sound Library error when playing sound files](https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306)

<div class="topic-metadata">

**Author:** [@justin\_lincoln](https://discourse.processing.org/u/justin_lincoln)\
**Replies:** 2\
**Last updated:** [July 27, 2018, 8:27pm UTC](https://discourse.processing.org/t/sound-library-error-when-playing-sound-files/306 "2018-07-27T20:27:20Z")

</div>

When I use the Sound library I consistently get this error when playing a sound file “ERROR:/synth/map/input : Audio input index 0 out of range for synth 2.” I will hear some sound, but certainly parts of the sound are d…

---

## [Location for .csv file to place](https://discourse.processing.org/t/location-for-csv-file-to-place/2116)

<div class="topic-metadata">

**Author:** [@Newcoder](https://discourse.processing.org/u/Newcoder)\
**Replies:** 3\
**Last updated:** [July 27, 2018, 6:08pm UTC](https://discourse.processing.org/t/location-for-csv-file-to-place/2116 "2018-07-27T18:08:02Z")

</div>

Hi, can anyone advise me where exactly to put the csv file in order for the sketch to work? I had tried create a data folder in the same folder location as my sketch folder and also try create the data folder with the sk…

---

## [Taking Screenshot with OpenGL sketch](https://discourse.processing.org/t/taking-screenshot-with-opengl-sketch/2064)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 12\
**Last updated:** [July 27, 2018, 5:53pm UTC](https://discourse.processing.org/t/taking-screenshot-with-opengl-sketch/2064 "2018-07-27T17:53:37Z")

</div>

Previously I tried to take screenshots of opengl sketches with scrot, but that doesn’t work see Processing window not showing in screenshot, however the raspi2png app which is easy to install does work. Scrot raspi2p…

---

## [Lost Leaf - a Casual Android game](https://discourse.processing.org/t/lost-leaf-a-casual-android-game/2072)

<div class="topic-metadata">

**Author:** [@linux-man](https://discourse.processing.org/u/linux-man)\
**Replies:** 2\
**Last updated:** [July 27, 2018, 2:05pm UTC](https://discourse.processing.org/t/lost-leaf-a-casual-android-game/2072 "2018-07-27T14:05:32Z")

</div>

Hi! I’ve been writing an Android game. The concept is to guide a “leaf” through obstacles by tilting and creating objects. Then I figured that this kind of game should have well designed levels, so I wrote a Level Edit…

---

## [Error: java.lang.RuntimeException](https://discourse.processing.org/t/error-java-lang-runtimeexception/2130)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 6\
**Last updated:** [July 27, 2018, 12:41pm UTC](https://discourse.processing.org/t/error-java-lang-runtimeexception/2130 "2018-07-27T12:41:28Z")

</div>

Hello, can anybody read this error? I have no idea what does it mean but as I have to fix this for a project in time I would appreciate help. It occurs a few sec after starting. (the same code did yesterday not produce …

---

## [Integrate library into angular app](https://discourse.processing.org/t/integrate-library-into-angular-app/1110)

<div class="topic-metadata">

**Author:** [@jajanps](https://discourse.processing.org/u/jajanps)\
**Replies:** 5\
**Last updated:** [July 27, 2018, 11:49am UTC](https://discourse.processing.org/t/integrate-library-into-angular-app/1110 "2018-07-27T11:49:06Z")

</div>

I am trying to use this library in .net core angular app. Please tell me how should I do this. I am new to angular

---

## [Global vs local variables](https://discourse.processing.org/t/global-vs-local-variables/2070)

<div class="topic-metadata">

**Author:** [@mattwonderwall](https://discourse.processing.org/u/mattwonderwall)\
**Replies:** 3\
**Last updated:** [July 27, 2018, 9:43am UTC](https://discourse.processing.org/t/global-vs-local-variables/2070 "2018-07-27T09:43:08Z")

</div>

I’m following “Learning Processing” by Daniel Shiffman, a great book. But when it comes to explaining some of the exercises it is not always clear. The question is: "Predict the result of the following two sketches. Aft…

---

## [Issues with third-party camera](https://discourse.processing.org/t/issues-with-third-party-camera/2075)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 13\
**Last updated:** [July 27, 2018, 7:21am UTC](https://discourse.processing.org/t/issues-with-third-party-camera/2075 "2018-07-27T07:21:46Z")

</div>

Hi, I’m trying to run this simple sketch on my Pi 3: import gohai.glvideo.\*; GLCapture video; void setup() { size(320, 240, P2D); String\[\] devices = GLCapture.list(); println("Devices:"); printArray(devices);…

---

## [How can I use the input value as a variable with two arguments?](https://discourse.processing.org/t/how-can-i-use-the-input-value-as-a-variable-with-two-arguments/1623)

<div class="topic-metadata">

**Author:** [@jcponce](https://discourse.processing.org/u/jcponce)\
**Replies:** 7\
**Last updated:** [July 27, 2018, 4:29am UTC](https://discourse.processing.org/t/how-can-i-use-the-input-value-as-a-variable-with-two-arguments/1623 "2018-07-27T04:29:51Z")

</div>

Hi everyone, I was able to plot complex functions using the method of domain coloring https://openprocessing.org/sketch/569018 and now I have been trying to add two inputs for changing the real and imaginary component…

---

## ["Frequency Spectrum" differs between edge and chrome](https://discourse.processing.org/t/frequency-spectrum-differs-between-edge-and-chrome/2077)

<div class="topic-metadata">

**Author:** [@rettifan](https://discourse.processing.org/u/rettifan)\
**Replies:** 3\
**Last updated:** [July 27, 2018, 3:30am UTC](https://discourse.processing.org/t/frequency-spectrum-differs-between-edge-and-chrome/2077 "2018-07-27T03:30:31Z")

</div>

Hi, I just noticed that the Frequency Spectrum example differs between edge and chrome. Any idea which browser is right or what the reason could be?

---

## [Asteroids Game AI](https://discourse.processing.org/t/asteroids-game-ai/2113)

<div class="topic-metadata">

**Author:** [@Trilobyte](https://discourse.processing.org/u/Trilobyte)\
**Replies:** 2\
**Last updated:** [July 27, 2018, 1:21am UTC](https://discourse.processing.org/t/asteroids-game-ai/2113 "2018-07-27T01:21:48Z")

</div>

Hello! I wrote a sketch about a year ago that teaches simulated starships to play the game Asteroids. The program uses a genetic algorithm to train the neural network brains of the starships to play the game. Since a lo…

---

## [Could not find a mode in the downloaded file error](https://discourse.processing.org/t/could-not-find-a-mode-in-the-downloaded-file-error/2108)

<div class="topic-metadata">

**Author:** [@alexquacksalot](https://discourse.processing.org/u/alexquacksalot)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 11:52pm UTC](https://discourse.processing.org/t/could-not-find-a-mode-in-the-downloaded-file-error/2108 "2018-07-26T23:52:51Z")

</div>

Hi, I’m new to this so I apologize if I’ve made some really simple mistake. So I downloaded the 64-bit latest version and I wanted to use the Python mode to code but every time I try to install it, it starts the download…

---

## [Problem with mouseMoved function](https://discourse.processing.org/t/problem-with-mousemoved-function/2101)

<div class="topic-metadata">

**Author:** [@puddle](https://discourse.processing.org/u/puddle)\
**Replies:** 2\
**Last updated:** [July 26, 2018, 11:18pm UTC](https://discourse.processing.org/t/problem-with-mousemoved-function/2101 "2018-07-26T23:18:21Z")

</div>

I’m trying to create a 3D pong game in pocessing and one of my paddles is supposed to move with the mouse, but instead of just that paddle moving woth the mouse everything is. I pasted my code down below. Any help would …

---

## [Strange character before £ sign with text?](https://discourse.processing.org/t/strange-character-before-sign-with-text/2106)

<div class="topic-metadata">

**Author:** [@Accrypt](https://discourse.processing.org/u/Accrypt)\
**Replies:** 1\
**Last updated:** [July 26, 2018, 7:57pm UTC](https://discourse.processing.org/t/strange-character-before-sign-with-text/2106 "2018-07-26T19:57:19Z")

</div>

I’ve been building a basic android app with processing and I’ve been trying to use the £ symbol a few times in my text but whenever it is displayed it has an extra character before? The symbol is an A with a small up arr…

---

## [Can't Install Python Mode](https://discourse.processing.org/t/cant-install-python-mode/2097)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 4\
**Last updated:** [July 26, 2018, 9:03am UTC](https://discourse.processing.org/t/cant-install-python-mode/2097 "2018-07-26T09:03:10Z")

</div>

When I try to install Python mode i get the message “Could not find a mode in the downloaded file” . Tried downloading a fresh copy but still get the same message. I can remove and install Android mode, P5.js mode and RE…

---

## [Help with Project on Placing shapes where mouse is at](https://discourse.processing.org/t/help-with-project-on-placing-shapes-where-mouse-is-at/2093)

<div class="topic-metadata">

**Author:** [@MrDancingKitty](https://discourse.processing.org/u/MrDancingKitty)\
**Replies:** 11\
**Last updated:** [July 26, 2018, 6:11am UTC](https://discourse.processing.org/t/help-with-project-on-placing-shapes-where-mouse-is-at/2093 "2018-07-26T06:11:38Z")

</div>

I’m working on a project but for I can’t for the life of me understand why nothing is showing up on the canvas and am running out of patience. Can anybody tell me what’s wrong? The overall project needs buttons on the ca…

---

## [Making the Snake Wiggle](https://discourse.processing.org/t/making-the-snake-wiggle/2094)

<div class="topic-metadata">

**Author:** [@BlitzBane](https://discourse.processing.org/u/BlitzBane)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 4:34am UTC](https://discourse.processing.org/t/making-the-snake-wiggle/2094 "2018-07-26T04:34:02Z")

</div>

Is there any way to wiggle the snake while going to the food(the white dot)? Here is my code as well. Please help me out. Thank you :smiley:

---

## [Flag for Running Pi?](https://discourse.processing.org/t/flag-for-running-pi/2087)

<div class="topic-metadata">

**Author:** [@robotgrrl](https://discourse.processing.org/u/robotgrrl)\
**Replies:** 2\
**Last updated:** [July 26, 2018, 2:44am UTC](https://discourse.processing.org/t/flag-for-running-pi/2087 "2018-07-26T02:44:27Z")

</div>

Is there a “flag” that we could use in our code to check if a sketch is running on a Pi? For example if(RASPI == true) { // do our pi code } I’m using the Upload to Pi tool, so ideally this flag could be set automatic…

---

## [Snake Game Void Draw Stops](https://discourse.processing.org/t/snake-game-void-draw-stops/2079)

<div class="topic-metadata">

**Author:** [@LordFarquaad](https://discourse.processing.org/u/LordFarquaad)\
**Replies:** 3\
**Last updated:** [July 25, 2018, 9:51pm UTC](https://discourse.processing.org/t/snake-game-void-draw-stops/2079 "2018-07-25T21:51:09Z")

</div>

I am making the classic snake game. I have managed to complete the basics of the game (e.g. eating food, collision detection, etc.) and it works fairly well. However, occasionally when I eat the food, the snake stops, an…

---

## [I'm using the p5.sound library and can't get a song to play again after I've paused it](https://discourse.processing.org/t/im-using-the-p5-sound-library-and-cant-get-a-song-to-play-again-after-ive-paused-it/2057)

<div class="topic-metadata">

**Author:** [@Corafus](https://discourse.processing.org/u/Corafus)\
**Replies:** 5\
**Last updated:** [July 25, 2018, 9:48pm UTC](https://discourse.processing.org/t/im-using-the-p5-sound-library-and-cant-get-a-song-to-play-again-after-ive-paused-it/2057 "2018-07-25T21:48:35Z")

</div>

My index.html file: The sketch.js file: var song; function setup() { createCanvas(600,400); song = loadSound(“suprematism.mp3”); } function draw() { background(0); } I have just been using the console to pla…

---

## [Cast from PGraphics to GraphicsDevice?](https://discourse.processing.org/t/cast-from-pgraphics-to-graphicsdevice/2083)

<div class="topic-metadata">

**Author:** [@MCCreeper8890](https://discourse.processing.org/u/MCCreeper8890)\
**Replies:** 2\
**Last updated:** [July 25, 2018, 8:15pm UTC](https://discourse.processing.org/t/cast-from-pgraphics-to-graphicsdevice/2083 "2018-07-25T20:15:48Z")

</div>

I am trying to make a 3D game in Processing, and the problem I run into the most is the cursor going out of the window, and losing control of the camera. If only the cursor looped back around… Well, I used java.awt.Robo…

---

## [P5JS and Processing direct connect to Arduino?](https://discourse.processing.org/t/p5js-and-processing-direct-connect-to-arduino/2037)

<div class="topic-metadata">

**Author:** [@stephenlewis](https://discourse.processing.org/u/stephenlewis)\
**Replies:** 3\
**Last updated:** [July 25, 2018, 2:05pm UTC](https://discourse.processing.org/t/p5js-and-processing-direct-connect-to-arduino/2037 "2018-07-25T14:05:16Z")

</div>

Please let me know of any way to connect P5JS to Arduino Processing to Arduino It should be a very simple connection suitable for a teacher and classroom to accomplish. This means avoiding installations, drivers, nod…

---

## [A way to add fancy effects to your sketches](https://discourse.processing.org/t/a-way-to-add-fancy-effects-to-your-sketches/2073)

<div class="topic-metadata">

**Author:** [@lqdev](https://discourse.processing.org/u/lqdev)\
**Replies:** 0\
**Last updated:** [July 25, 2018, 1:47pm UTC](https://discourse.processing.org/t/a-way-to-add-fancy-effects-to-your-sketches/2073 "2018-07-25T13:47:41Z")

</div>

Hello! I recently discovered a way of adding fast/efficient effects to Processing sketches. Unfortunately, this method only supports the FX2D renderer, as AWT does not support effects. The method is quite simple: imp…

---

## [Append a text file](https://discourse.processing.org/t/append-a-text-file/2004)

<div class="topic-metadata">

**Author:** [@Lightiix](https://discourse.processing.org/u/Lightiix)\
**Replies:** 1\
**Last updated:** [July 25, 2018, 1:48pm UTC](https://discourse.processing.org/t/append-a-text-file/2004 "2018-07-25T13:48:51Z")

</div>

Hello everyone, I am writing a program using p5.js for broswser, and I want to save ma data in a text file. I am able to load the file with loadStrings() but every function to save the data prompts download to the clie…

---

## [Fast blur in JAVA2D](https://discourse.processing.org/t/fast-blur-in-java2d/690)

<div class="topic-metadata">

**Author:** [@lqdev](https://discourse.processing.org/u/lqdev)\
**Replies:** 6\
**Last updated:** [July 25, 2018, 10:30am UTC](https://discourse.processing.org/t/fast-blur-in-java2d/690 "2018-07-25T10:30:22Z")

</div>

Hello, I need some fast blur for a sketch I am making. So far I have only tried filter(), but it is slow I need to blur only an area, not the entire image The blur needs to run smoothly at 60 fps. Is this possible wi…

---

## [Weird issue with pgraphics](https://discourse.processing.org/t/weird-issue-with-pgraphics/2063)

<div class="topic-metadata">

**Author:** [@ducco](https://discourse.processing.org/u/ducco)\
**Replies:** 3\
**Last updated:** [July 25, 2018, 11:11am UTC](https://discourse.processing.org/t/weird-issue-with-pgraphics/2063 "2018-07-25T11:11:05Z")

</div>

i’m trying to copy image information from one pgraphic to another (like trying to cache the old one and render it in the background) and it keeping having weird effects like it being linked together permanently when i us…

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

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