# Processing

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

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

**Page:** 251

---

## [Good practice / revisioning / template / backup](https://discourse.processing.org/t/good-practice-revisioning-template-backup/7615)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 16\
**Last updated:** [December 13, 2019, 3:36am UTC](https://discourse.processing.org/t/good-practice-revisioning-template-backup/7615 "2019-12-13T03:36:42Z")

</div>

my english is not good enough for a tutorial, but i have a idea about a good practice beginner info sticky revisioning it could be a good idea even for small tests to start with a revisioning system easy just as so…

---

## [Multiple arduino inputs](https://discourse.processing.org/t/multiple-arduino-inputs/16275)

<div class="topic-metadata">

**Author:** [@neneeangulo](https://discourse.processing.org/u/neneeangulo)\
**Replies:** 6\
**Last updated:** [December 13, 2019, 1:52am UTC](https://discourse.processing.org/t/multiple-arduino-inputs/16275 "2019-12-13T01:52:44Z")

</div>

Hi! I am trying to use flex sensors to change the position of a drawing in processing. I got one of the flex sensors to work and move the drawing, but it moves all the parts of the drawing that should be controlled by d…

---

## [How to analyze the computational overhead of a Processing Sketch](https://discourse.processing.org/t/how-to-analyze-the-computational-overhead-of-a-processing-sketch/16327)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 5\
**Last updated:** [December 12, 2019, 10:43am UTC](https://discourse.processing.org/t/how-to-analyze-the-computational-overhead-of-a-processing-sketch/16327 "2019-12-12T10:43:31Z")

</div>

Please forgive me if the terms are inaccurate or this is the wrong forum. Essentially I write sketches in Processing and I am struggling to find out why my code runs slow. Sometimes a sketch runs fast and I have no ide…

---

## [Have a problem with "for" comand](https://discourse.processing.org/t/have-a-problem-with-for-comand/16337)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 10\
**Last updated:** [December 12, 2019, 6:20am UTC](https://discourse.processing.org/t/have-a-problem-with-for-comand/16337 "2019-12-12T06:20:27Z")

</div>

i’m trying to create a code that display a grid with squares and when you put the mouse over a square it disappears, how ever in my code when I put the mouse over a square the row and the column disappear… here is my c…

---

## [Video forwarding with Processing - request](https://discourse.processing.org/t/video-forwarding-with-processing-request/16326)

<div class="topic-metadata">

**Author:** [@galgal12345](https://discourse.processing.org/u/galgal12345)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 2:28am UTC](https://discourse.processing.org/t/video-forwarding-with-processing-request/16326 "2019-12-12T02:28:27Z")

</div>

Hi guys, Im new to Arduino+Processing and I have a project for school. can anyone help me with coding this task- Im using an infrared sensor with this code on arduino (attached) and I would like to ‘forward’ a playin…

---

## [How to covert vectors to SVG paths?](https://discourse.processing.org/t/how-to-covert-vectors-to-svg-paths/15942)

<div class="topic-metadata">

**Author:** [@buria](https://discourse.processing.org/u/buria)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 12:33am UTC](https://discourse.processing.org/t/how-to-covert-vectors-to-svg-paths/15942 "2019-12-12T00:33:37Z")

</div>

I’m using this sketch made by 郑越升Sen and I’m trying to export the result as PDF to work on it on Illustrator. But the lines are not paths, they’re a bunch of points. Is there a way to export curve lines as svg maintainin…

---

## [Highlighting a rect for some time](https://discourse.processing.org/t/highlighting-a-rect-for-some-time/16322)

<div class="topic-metadata">

**Author:** [@Unl3a5h3r](https://discourse.processing.org/u/Unl3a5h3r)\
**Replies:** 1\
**Last updated:** [December 11, 2019, 4:05pm UTC](https://discourse.processing.org/t/highlighting-a-rect-for-some-time/16322 "2019-12-11T16:05:39Z")

</div>

Hi, ich try to get into processing and thought I’ll programm a small game. I googled for some game ideas and found the game simon that seemed to be pretty simple to program. I have defined my colors and stored them in …

---

## [How to add image to particle system](https://discourse.processing.org/t/how-to-add-image-to-particle-system/16017)

<div class="topic-metadata">

**Author:** [@dawn](https://discourse.processing.org/u/dawn)\
**Replies:** 5\
**Last updated:** [December 11, 2019, 2:23pm UTC](https://discourse.processing.org/t/how-to-add-image-to-particle-system/16017 "2019-12-11T14:23:11Z")

</div>

PImage fondo; Globos\[\] globos = new Globos\[0\]; int cantGlobos =400; void setup () { size (900, 606); noStroke(); smooth(); fondo=loadImage ("fondoperdiste.jpg"); } void draw() { background(fondo); globos = (Globo…

---

## [Degradado Lineal Diagonal](https://discourse.processing.org/t/degradado-lineal-diagonal/16298)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [December 11, 2019, 12:04am UTC](https://discourse.processing.org/t/degradado-lineal-diagonal/16298 "2019-12-11T00:04:29Z")

</div>

Hi! How could I change this linear gradient from horizontal to diagonal? Thanks! void setup(){ size(360,720); smooth(); background(255,95,95); float l = width/255; for(int i = 0; i\<width; i++) { stroke(2…

---

## [Dirección agujas reloj](https://discourse.processing.org/t/direccion-agujas-reloj/16277)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 8\
**Last updated:** [December 10, 2019, 7:49pm UTC](https://discourse.processing.org/t/direccion-agujas-reloj/16277 "2019-12-10T19:49:42Z")

</div>

¡Hola! Necesito realizar varios cambios en el siguiente reloj, ¿podéis ayudarme? ¿Cómo puedo conseguir que la aguja vaya hacia atrás, es decir, que se mueva en la dirección contraria a las agujas del reloj? ¿Cómo …

---

## [Missing Sketchbook - Processing Won't Start](https://discourse.processing.org/t/missing-sketchbook-processing-wont-start/16184)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 16\
**Last updated:** [December 10, 2019, 1:17pm UTC](https://discourse.processing.org/t/missing-sketchbook-processing-wont-start/16184 "2019-12-10T13:17:12Z")

</div>

I have downloaded the latest version of Processing after a major file reorganization. Processing will not start because it says the Sketchbook is missing. I have checked for a preferences.txt file and there isn’t one. Wh…

---

## [How to add sliders to fluid animation](https://discourse.processing.org/t/how-to-add-sliders-to-fluid-animation/16291)

<div class="topic-metadata">

**Author:** [@fabnai](https://discourse.processing.org/u/fabnai)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 11:36am UTC](https://discourse.processing.org/t/how-to-add-sliders-to-fluid-animation/16291 "2019-12-10T11:36:30Z")

</div>

Hello everybody I am new to processing and coding in general so please have patience with me. I found a tutorial from coding train on how to create fluid animations in processing. I would like to control different par…

---

## [Linear Potentiometer](https://discourse.processing.org/t/linear-potentiometer/16270)

<div class="topic-metadata">

**Author:** [@ozman](https://discourse.processing.org/u/ozman)\
**Replies:** 5\
**Last updated:** [December 10, 2019, 4:41am UTC](https://discourse.processing.org/t/linear-potentiometer/16270 "2019-12-10T04:41:54Z")

</div>

Hi, i am trying to make a game using a single linear potentiometer where you can draw line Up, Down, Left and Right. So far i am able to move in every direction by pressing ‘H’ to change the axis direction to up and do…

---

## [DLL in processing](https://discourse.processing.org/t/dll-in-processing/16263)

<div class="topic-metadata">

**Author:** [@Lubos](https://discourse.processing.org/u/Lubos)\
**Replies:** 1\
**Last updated:** [December 9, 2019, 5:15pm UTC](https://discourse.processing.org/t/dll-in-processing/16263 "2019-12-09T17:15:48Z")

</div>

How to use (non Windows) DLL within Processing?

---

## [Animation that turns on and off when I receive an arduino data](https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259)

<div class="topic-metadata">

**Author:** [@sebasg94](https://discourse.processing.org/u/sebasg94)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 11:35am UTC](https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259 "2019-12-09T11:35:29Z")

</div>

I want to make an animation of the car park dashboard lights, but I don’t know how to do it. I have 2 images, one of the lights on and one of the lights off. What I try is to make an animation that turns on and off as i…

---

## [G4P not drawing background of label](https://discourse.processing.org/t/g4p-not-drawing-background-of-label/16261)

<div class="topic-metadata">

**Author:** [@mark\_orion](https://discourse.processing.org/u/mark_orion)\
**Replies:** 1\
**Last updated:** [December 9, 2019, 11:14am UTC](https://discourse.processing.org/t/g4p-not-drawing-background-of-label/16261 "2019-12-09T11:14:21Z")

</div>

I want to create a label with a distinctive background so that the actual box of the label is visible. However whatever color I define as background (color 6 in the color scheme) is only drawn right behind the text but n…

---

## [Embedding .pde to html does not work/ .pde to p5.js](https://discourse.processing.org/t/embedding-pde-to-html-does-not-work-pde-to-p5-js/16181)

<div class="topic-metadata">

**Author:** [@hannes](https://discourse.processing.org/u/hannes)\
**Replies:** 6\
**Last updated:** [December 9, 2019, 8:38am UTC](https://discourse.processing.org/t/embedding-pde-to-html-does-not-work-pde-to-p5-js/16181 "2019-12-09T08:38:31Z")

</div>

Hello y’all, im trying to embed a processing sketch I just made in html but it didn’t work. I read some manuals on this and others forum but Im doing something wrong. (like this article: http://processingjs.org/articles…

---

## [Echo effect - Sound coding](https://discourse.processing.org/t/echo-effect-sound-coding/15952)

<div class="topic-metadata">

**Author:** [@gamzar](https://discourse.processing.org/u/gamzar)\
**Replies:** 3\
**Last updated:** [December 9, 2019, 7:23am UTC](https://discourse.processing.org/t/echo-effect-sound-coding/15952 "2019-12-09T07:23:48Z")

</div>

Good morning dear processing users, sorry to bother you guys, but I am writing to ask for some help related to my project - visualising the sound input from microphone and having the echo delayed effect back from the sp…

---

## [Marker not displaying on map using unfolding library](https://discourse.processing.org/t/marker-not-displaying-on-map-using-unfolding-library/16240)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 13\
**Last updated:** [December 9, 2019, 6:45am UTC](https://discourse.processing.org/t/marker-not-displaying-on-map-using-unfolding-library/16240 "2019-12-09T06:45:45Z")

</div>

code:- import de.fhpotsdam.unfolding. \<em\>; import de.fhpotsdam.unfolding.geo.\</em\> ; import de.fhpotsdam.unfolding.utils.\*; import de.fhpotsdam.unfolding.providers.Microsoft; import de.fhpotsdam.unfolding.marker.\*; U…

---

## [Trouble with shapes](https://discourse.processing.org/t/trouble-with-shapes/16243)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 3\
**Last updated:** [December 9, 2019, 4:18am UTC](https://discourse.processing.org/t/trouble-with-shapes/16243 "2019-12-09T04:18:20Z")

</div>

Hi. I’m having some trouble with drawing shapes. I’m trying to draw a B and it doesn’t fill the whole shape. Acording to the example on the beginContour() doc page, you don’t have to draw the starting point at the end,…

---

## [How to add curvature on a recursive tree](https://discourse.processing.org/t/how-to-add-curvature-on-a-recursive-tree/16257)

<div class="topic-metadata">

**Author:** [@marcoo](https://discourse.processing.org/u/marcoo)\
**Replies:** 1\
**Last updated:** [December 9, 2019, 3:47am UTC](https://discourse.processing.org/t/how-to-add-curvature-on-a-recursive-tree/16257 "2019-12-09T03:47:39Z")

</div>

Hi there. I’m doing a sketch of a recursive tree in processing and i want to add curvature on the branches but i don’t know how… There is the code below. float minBranchLen = 0.5; float angle= radians (30); float bran…

---

## [How to fade an image to black over time](https://discourse.processing.org/t/how-to-fade-an-image-to-black-over-time/16100)

<div class="topic-metadata">

**Author:** [@pw00](https://discourse.processing.org/u/pw00)\
**Replies:** 7\
**Last updated:** [December 9, 2019, 12:28am UTC](https://discourse.processing.org/t/how-to-fade-an-image-to-black-over-time/16100 "2019-12-09T00:28:08Z")

</div>

I’m a beginner in processing and overall coding, so I’m not really sure what and how I’m supposed to do certain things. Is there a way to fade out an image to black over time or use a tint to make an image black over tim…

---

## [How to keep music from overlapping](https://discourse.processing.org/t/how-to-keep-music-from-overlapping/15846)

<div class="topic-metadata">

**Author:** [@Lane](https://discourse.processing.org/u/Lane)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 12:23am UTC](https://discourse.processing.org/t/how-to-keep-music-from-overlapping/15846 "2019-12-09T00:23:11Z")

</div>

Hi! I have it where if the mouse is clicked inside the rectangle’s bounds then music will play. But every time I click inside the rectangle’s bounds the music will will repeat on top of each other. Is there a way I can g…

---

## [Minim volume control using potentiometer](https://discourse.processing.org/t/minim-volume-control-using-potentiometer/16253)

<div class="topic-metadata">

**Author:** [@Ardy2743](https://discourse.processing.org/u/Ardy2743)\
**Replies:** 4\
**Last updated:** [December 8, 2019, 10:29pm UTC](https://discourse.processing.org/t/minim-volume-control-using-potentiometer/16253 "2019-12-08T22:29:58Z")

</div>

Hi peeps! So when my game starts the music does also but id like to be able to control the volume of the music with a potentiometer. I have sound.setGain(0); working in processing and I have the output of the potentiom…

---

## [How to make fft into a circle](https://discourse.processing.org/t/how-to-make-fft-into-a-circle/16255)

<div class="topic-metadata">

**Author:** [@Lane](https://discourse.processing.org/u/Lane)\
**Replies:** 4\
**Last updated:** [December 8, 2019, 10:25pm UTC](https://discourse.processing.org/t/how-to-make-fft-into-a-circle/16255 "2019-12-08T22:25:57Z")

</div>

Hello! Is there a way to make this fft into a circle? Or other cool shape? import processing.sound.\*; SoundFile file1; FFT fft; FFT fft2; int bands = 128; float smoothingFactor = 0.2; float \[\]sum = new float \[bands\]; …

---

## ["wait until" syntax?](https://discourse.processing.org/t/wait-until-syntax/15838)

<div class="topic-metadata">

**Author:** [@benross](https://discourse.processing.org/u/benross)\
**Replies:** 6\
**Last updated:** [December 8, 2019, 7:46pm UTC](https://discourse.processing.org/t/wait-until-syntax/15838 "2019-12-08T19:46:12Z")

</div>

Hi all - is there any way I can make some section of code in draw() only after a certain event has happened? For example can I only start drawing things after a mouseclick or if the user presses a set key? Thanks in ad…

---

## [Closing a second window](https://discourse.processing.org/t/closing-a-second-window/381)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 17\
**Last updated:** [December 8, 2019, 9:19pm UTC](https://discourse.processing.org/t/closing-a-second-window/381 "2019-12-08T21:19:10Z")

</div>

I want to be able to create a second window. The problem is I want the user to be able to close the second window, but doing so closes both the second and main frame. Is there a way I can prevent this? PWindow win; pub…

---

## [Preventing Keypress from continuously activating](https://discourse.processing.org/t/preventing-keypress-from-continuously-activating/16241)

<div class="topic-metadata">

**Author:** [@Kitty](https://discourse.processing.org/u/Kitty)\
**Replies:** 3\
**Last updated:** [December 8, 2019, 8:56pm UTC](https://discourse.processing.org/t/preventing-keypress-from-continuously-activating/16241 "2019-12-08T20:56:10Z")

</div>

I have my code for keypress here. What I’m looking for is a way to prevent the code from jumping straight from “isGameStart” to “isGameS1”. So that it requires you to hit the ENTER key again. void keyReleased() { if (ke…

---

## [Can I interrupt a closing of a sketch to save data?](https://discourse.processing.org/t/can-i-interrupt-a-closing-of-a-sketch-to-save-data/16231)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 8\
**Last updated:** [December 8, 2019, 8:46pm UTC](https://discourse.processing.org/t/can-i-interrupt-a-closing-of-a-sketch-to-save-data/16231 "2019-12-08T20:46:35Z")

</div>

Hello all, Can I interrupt a closing of a sketch to save data? When Alt-F4 is pressed or the cross in the window is clicked (OS = Windows), the program closes. I would like to interrupt this, to save a file that the u…

---

## [Is there a way to visually stretch a processing sketch?](https://discourse.processing.org/t/is-there-a-way-to-visually-stretch-a-processing-sketch/16140)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 18\
**Last updated:** [December 8, 2019, 8:29pm UTC](https://discourse.processing.org/t/is-there-a-way-to-visually-stretch-a-processing-sketch/16140 "2019-12-08T20:29:31Z")

</div>

Hi, Is there a way to stretch a Processing sketch? Either in a vertical or horizontal direction? This is a general question and something I would like to apply to several Processing sketches I’m working on, either in 2D…

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

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