# Processing

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

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

**Page:** 378

---

## [How to get polar coordinates of pixels in an image?](https://discourse.processing.org/t/how-to-get-polar-coordinates-of-pixels-in-an-image/2090)

<div class="topic-metadata">

**Author:** [@socraticbot](https://discourse.processing.org/u/socraticbot)\
**Replies:** 10\
**Last updated:** [July 28, 2018, 6:05pm UTC](https://discourse.processing.org/t/how-to-get-polar-coordinates-of-pixels-in-an-image/2090 "2018-07-28T18:05:03Z")

</div>

Hi all, I am trying to print the polar coordinates of black pixels in an .jpg image using processing. What is a way or formula to do this?

---

## [Processing Version](https://discourse.processing.org/t/processing-version/2120)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 6\
**Last updated:** [July 28, 2018, 12:22pm UTC](https://discourse.processing.org/t/processing-version/2120 "2018-07-28T12:22:46Z")

</div>

Hello, Is it possible to catch the REVISION or VERSION\_NAME of Processing from a sketch ? I see this Static Final in the code Base of Processing but I find noway to catch from sketch, any idea about a possibility ? Th…

---

## [Animated conveyor belt](https://discourse.processing.org/t/animated-conveyor-belt/2060)

<div class="topic-metadata">

**Author:** [@Groot](https://discourse.processing.org/u/Groot)\
**Replies:** 11\
**Last updated:** [July 28, 2018, 10:32am UTC](https://discourse.processing.org/t/animated-conveyor-belt/2060 "2018-07-28T10:32:06Z")

</div>

Hi all, so i have searched the net and cant find an example anywhere and a bit lost as where to start. I want to loop through an array and each time create a bar plot. each new bar (3d rect/box) is brought to the fron…

---

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

---

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

---

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

---

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

---

## ["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?

---

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

---

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

---

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

---

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

---

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

---

## [Game impediments](https://discourse.processing.org/t/game-impediments/896)

<div class="topic-metadata">

**Author:** [@Speedo](https://discourse.processing.org/u/Speedo)\
**Replies:** 4\
**Last updated:** [July 25, 2018, 7:37am UTC](https://discourse.processing.org/t/game-impediments/896 "2018-07-25T07:37:52Z")

</div>

I’m programming a little game at the moment; in this game you can “drive” with a little square in a little map. The map is drawn with loaded images; black squares which don’t move. Now my question: How can I make this…

---

## [FInding an empty .pde file on startup](https://discourse.processing.org/t/finding-an-empty-pde-file-on-startup/2054)

<div class="topic-metadata">

**Author:** [@Sissyl](https://discourse.processing.org/u/Sissyl)\
**Replies:** 2\
**Last updated:** [July 25, 2018, 6:59am UTC](https://discourse.processing.org/t/finding-an-empty-pde-file-on-startup/2054 "2018-07-25T06:59:50Z")

</div>

For the second time, I find that when I start up my sketch, the .pde file is empty of everything. I saved before I closed the program. I didn’t do anything particularly advanced, it was a somewhat working sprite editor p…

---

## [Says missing curly brackets, but they're all there](https://discourse.processing.org/t/says-missing-curly-brackets-but-theyre-all-there/2059)

<div class="topic-metadata">

**Author:** [@donotread123](https://discourse.processing.org/u/donotread123)\
**Replies:** 1\
**Last updated:** [July 25, 2018, 5:53am UTC](https://discourse.processing.org/t/says-missing-curly-brackets-but-theyre-all-there/2059 "2018-07-25T05:53:14Z")

</div>

Unless I’m missing something, this code should be correct. My goal was to make a circle (“Bubble”) which would be a random color. however, it says that I am missing curly brackets “{” missing on line 4: int color = int(…

---

## [Export QuickTime Movie using a sketch](https://discourse.processing.org/t/export-quicktime-movie-using-a-sketch/2014)

<div class="topic-metadata">

**Author:** [@DongKingKong0](https://discourse.processing.org/u/DongKingKong0)\
**Replies:** 2\
**Last updated:** [July 24, 2018, 7:46pm UTC](https://discourse.processing.org/t/export-quicktime-movie-using-a-sketch/2014 "2018-07-24T19:46:10Z")

</div>

I want to have a sketch to export a QuickTime Movie from images created with saveFrame(). I don’t want to use the “Create Movie” Tool for that. As far as I know, this function was included in the processing.video libra…

---

## [Drag and Drop for android](https://discourse.processing.org/t/drag-and-drop-for-android/2019)

<div class="topic-metadata">

**Author:** [@reda](https://discourse.processing.org/u/reda)\
**Replies:** 2\
**Last updated:** [July 24, 2018, 5:10pm UTC](https://discourse.processing.org/t/drag-and-drop-for-android/2019 "2018-07-24T17:10:19Z")

</div>

I’m new to processing but I have a good programming skills I want to drag ie a square shape and drop it on another square , a kind of matching shapes games could you help on that please. more clarification : if I dra…

---

## [At a loss and sure what to do](https://discourse.processing.org/t/at-a-loss-and-sure-what-to-do/1972)

<div class="topic-metadata">

**Author:** [@NNY](https://discourse.processing.org/u/NNY)\
**Replies:** 12\
**Last updated:** [July 24, 2018, 5:03pm UTC](https://discourse.processing.org/t/at-a-loss-and-sure-what-to-do/1972 "2018-07-24T17:03:37Z")

</div>

Im trying to build a very basic cellular automata program for a school assignment. I need to draw a grid, randomly “infect” a cell and then it needs to spread out from there. In my current code i can draw the grid, infec…

---

## [SVG properties - modifying after import](https://discourse.processing.org/t/svg-properties-modifying-after-import/2028)

<div class="topic-metadata">

**Author:** [@pxlmnkeee](https://discourse.processing.org/u/pxlmnkeee)\
**Replies:** 6\
**Last updated:** [July 24, 2018, 3:28pm UTC](https://discourse.processing.org/t/svg-properties-modifying-after-import/2028 "2018-07-24T15:28:45Z")

</div>

I’m using the Python mode in Processing, but I’m guessing this might be an issue in other processing modes as well: I’ve imported some SVGs exported from Illustrator (as well as other hand coded SVGs) and I’m having pro…

---

## [Limit speed of an object](https://discourse.processing.org/t/limit-speed-of-an-object/2044)

<div class="topic-metadata">

**Author:** [@mattwonderwall](https://discourse.processing.org/u/mattwonderwall)\
**Replies:** 3\
**Last updated:** [July 24, 2018, 12:22pm UTC](https://discourse.processing.org/t/limit-speed-of-an-object/2044 "2018-07-24T12:22:01Z")

</div>

I’ve been breaking my head over how I can limit the speed of a bouncing ball. I’ve chosen that for every time it hits, to increase the speed by 5%, using the following code. if (xpos \> width-rad || xpos \< rad || ypos \>…

---

## [Randomize color on bouncing ball](https://discourse.processing.org/t/randomize-color-on-bouncing-ball/2042)

<div class="topic-metadata">

**Author:** [@mattwonderwall](https://discourse.processing.org/u/mattwonderwall)\
**Replies:** 1\
**Last updated:** [July 24, 2018, 10:29am UTC](https://discourse.processing.org/t/randomize-color-on-bouncing-ball/2042 "2018-07-24T10:29:50Z")

</div>

I’ve created a bouncing ball and want to randomize the color of the ball with each hit against the size perimeter. However, with the following code it will only randomize the color once and stay that color (filler is the…

---

## [OpenGL disable anti-aliasing](https://discourse.processing.org/t/opengl-disable-anti-aliasing/2024)

<div class="topic-metadata">

**Author:** [@DongKingKong0](https://discourse.processing.org/u/DongKingKong0)\
**Replies:** 4\
**Last updated:** [July 24, 2018, 7:29am UTC](https://discourse.processing.org/t/opengl-disable-anti-aliasing/2024 "2018-07-24T07:29:58Z")

</div>

The question is simple: Is there any way to disable anti-aliasing in OPENGL? I couldn’t find a way to do this, so any suggestion is much appreciated :slight\_smile:

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

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