# Processing

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

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

**Page:** 107

---

## [Overlapping one sound multiple times with minim library](https://discourse.processing.org/t/overlapping-one-sound-multiple-times-with-minim-library/32878)

<div class="topic-metadata">

**Author:** [@rojele](https://discourse.processing.org/u/rojele)\
**Replies:** 8\
**Last updated:** [October 31, 2021, 5:29am UTC](https://discourse.processing.org/t/overlapping-one-sound-multiple-times-with-minim-library/32878 "2021-10-31T05:29:09Z")

</div>

Hi, I’m working on the sound part of an interactive installation that would need an event to be triggered by osc an undefined number of times, making the sound linked to it overlaps instead of being rewinded and started …

---

## [Light reflection](https://discourse.processing.org/t/light-reflection/33177)

<div class="topic-metadata">

**Author:** [@zack10](https://discourse.processing.org/u/zack10)\
**Replies:** 3\
**Last updated:** [October 30, 2021, 9:48pm UTC](https://discourse.processing.org/t/light-reflection/33177 "2021-10-30T21:48:25Z")

</div>

Hello i want to illuminate objects that are close to the sphere so when it’s dark i can see the object in the dark and also the objects which is close to it thank you

---

## [\[CANCELED\] G4P GUI Builder - cannot reopen a previous generated gui](https://discourse.processing.org/t/canceled-g4p-gui-builder-cannot-reopen-a-previous-generated-gui/33159)

<div class="topic-metadata">

**Author:** [@Brun0oO](https://discourse.processing.org/u/Brun0oO)\
**Replies:** 6\
**Last updated:** [October 30, 2021, 5:37pm UTC](https://discourse.processing.org/t/canceled-g4p-gui-builder-cannot-reopen-a-previous-generated-gui/33159 "2021-10-30T17:37:28Z")

</div>

Hi, I’m having an issue with the G4P GUI Builder tool. I got this error when I try to reopen a previous session with this tool : java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.app…

---

## [Can't find the missing curly bracket](https://discourse.processing.org/t/cant-find-the-missing-curly-bracket/33152)

<div class="topic-metadata">

**Author:** [@hacketet](https://discourse.processing.org/u/hacketet)\
**Replies:** 7\
**Last updated:** [October 30, 2021, 3:51pm UTC](https://discourse.processing.org/t/cant-find-the-missing-curly-bracket/33152 "2021-10-30T15:51:32Z")

</div>

I can’t find the error associated with \<Syntax Error - Missing right curly bracket “}”\> The problem is in the last few lines of code. Lines underscored by the debugger are indicated by //!! which I inserted after pasti…

---

## [Linedrawing Processing webcam video keypressed reset problem](https://discourse.processing.org/t/linedrawing-processing-webcam-video-keypressed-reset-problem/33128)

<div class="topic-metadata">

**Author:** [@jinjin](https://discourse.processing.org/u/jinjin)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 3:19pm UTC](https://discourse.processing.org/t/linedrawing-processing-webcam-video-keypressed-reset-problem/33128 "2021-10-30T15:19:20Z")

</div>

I am a student studying processing. Currently, I am implementing a real-time line drawing code using a webcam and I am currently facing a problem. In the current code, I want to press q to start the video, press s to s…

---

## [How to have image move in random directions](https://discourse.processing.org/t/how-to-have-image-move-in-random-directions/33176)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [October 30, 2021, 3:15pm UTC](https://discourse.processing.org/t/how-to-have-image-move-in-random-directions/33176 "2021-10-30T15:15:12Z")

</div>

how do i make the “trash” image move in a random direction with 10 pixels per frame. (so randomly have trashX move either -10 or +10 pixels) float trashX; float trashY; float boatX; float boatY; float movingspeed = 10…

---

## [Serial communication between Arduino and Processing and resetting the sketch problem](https://discourse.processing.org/t/serial-communication-between-arduino-and-processing-and-resetting-the-sketch-problem/33117)

<div class="topic-metadata">

**Author:** [@jinjin](https://discourse.processing.org/u/jinjin)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 3:07pm UTC](https://discourse.processing.org/t/serial-communication-between-arduino-and-processing-and-resetting-the-sketch-problem/33117 "2021-10-30T15:07:09Z")

</div>

Hello, I am a student who is working hard on a project. I’m currently using Arduino’s heart rate sensor to create a line drawing that changes the thickness of the line in real time. But I’m facing two problems now. On…

---

## [How to wait until a callback function has completed](https://discourse.processing.org/t/how-to-wait-until-a-callback-function-has-completed/33173)

<div class="topic-metadata">

**Author:** [@Grumpy\_Mike](https://discourse.processing.org/u/Grumpy_Mike)\
**Replies:** 4\
**Last updated:** [October 30, 2021, 12:23pm UTC](https://discourse.processing.org/t/how-to-wait-until-a-callback-function-has-completed/33173 "2021-10-30T12:23:18Z")

</div>

In processing 3 I have two call back functions, one to select an input file and the other to select an output file. In the setup function I want to call the input file select and then the output file select. But being c…

---

## [Process crashes Java](https://discourse.processing.org/t/process-crashes-java/33077)

<div class="topic-metadata">

**Author:** [@RMead](https://discourse.processing.org/u/RMead)\
**Replies:** 5\
**Last updated:** [October 30, 2021, 10:47am UTC](https://discourse.processing.org/t/process-crashes-java/33077 "2021-10-30T10:47:54Z")

</div>

I’m trying to set up a facial recognition system for my art degree - where I want it to print off peoples faces each time they enter the gallery space. The code I’ve used, from a couple of guides, is included below - and…

---

## [My Space Ship's Velocity is going whack](https://discourse.processing.org/t/my-space-ships-velocity-is-going-whack/33065)

<div class="topic-metadata">

**Author:** [@DividedRabbit](https://discourse.processing.org/u/DividedRabbit)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 12:00am UTC](https://discourse.processing.org/t/my-space-ships-velocity-is-going-whack/33065 "2021-10-30T00:00:35Z")

</div>

Running this code is fine at first, but after a bit the velocity and gravity start moving to opposite extremes, but since they’re opposite they average out to the ship’s velocity. Eventually the ship starts acting weird …

---

## [flowField:Defining a vector from a table](https://discourse.processing.org/t/flowfield-defining-a-vector-from-a-table/33164)

<div class="topic-metadata">

**Author:** [@sigbjorn](https://discourse.processing.org/u/sigbjorn)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 5:26pm UTC](https://discourse.processing.org/t/flowfield-defining-a-vector-from-a-table/33164 "2021-10-29T17:26:38Z")

</div>

Hi! I found a Perlin Noise code on Github which I would like to tweak for an art project at school. I would like to add an new Pvector forcefield which is based on a some x,y coordinates I have in a .csv file. I would …

---

## [User Type Input](https://discourse.processing.org/t/user-type-input/33101)

<div class="topic-metadata">

**Author:** [@Ethanation](https://discourse.processing.org/u/Ethanation)\
**Replies:** 1\
**Last updated:** [October 29, 2021, 8:35am UTC](https://discourse.processing.org/t/user-type-input/33101 "2021-10-29T08:35:23Z")

</div>

Hello, I am having trouble with this, when I press enter for the first screen, it switches to the next screen just fine. But I cannot type anything in on the second screen as I should be able to. //sets up all of the in…

---

## [Smooth transition between frequencies amplitudes over time using a FFT analysis](https://discourse.processing.org/t/smooth-transition-between-frequencies-amplitudes-over-time-using-a-fft-analysis/33144)

<div class="topic-metadata">

**Author:** [@werls](https://discourse.processing.org/u/werls)\
**Replies:** 2\
**Last updated:** [October 29, 2021, 4:21am UTC](https://discourse.processing.org/t/smooth-transition-between-frequencies-amplitudes-over-time-using-a-fft-analysis/33144 "2021-10-29T04:21:08Z")

</div>

I’ve done a few experiments with sound visualization in Processing using the Sound and Minim libraries, but I always stuck in the same problem: the values of frequencies amplitudes over time are very discrepants and the …

---

## [Spawning PGraphics using 2D array](https://discourse.processing.org/t/spawning-pgraphics-using-2d-array/33087)

<div class="topic-metadata">

**Author:** [@Skycstls](https://discourse.processing.org/u/Skycstls)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 1:14pm UTC](https://discourse.processing.org/t/spawning-pgraphics-using-2d-array/33087 "2021-10-26T13:14:41Z")

</div>

Hello Processing forum! I’ve been learning a lot of stuff using processing, its really fun and all errors and things i didnt understand were easy to find here in the forum or in the reference, today i wanted to start usi…

---

## [How to get this library to work?](https://discourse.processing.org/t/how-to-get-this-library-to-work/32778)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [October 28, 2021, 6:22pm UTC](https://discourse.processing.org/t/how-to-get-this-library-to-work/32778 "2021-10-28T18:22:51Z")

</div>

how to get the “unfolding maps” library to work?

---

## [Getting message that y is not defined](https://discourse.processing.org/t/getting-message-that-y-is-not-defined/33028)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 6\
**Last updated:** [October 27, 2021, 7:24pm UTC](https://discourse.processing.org/t/getting-message-that-y-is-not-defined/33028 "2021-10-27T19:24:12Z")

</div>

class Drop { float x = random(0, width); float y = random(-100, -300); float ySpeed = 2; void fall() { y = y + ySpeed if (y \< height) { y = random(-100, -300); } } void show() { stroke(192, 225,…

---

## [How can I remove white pixels from my video capture?](https://discourse.processing.org/t/how-can-i-remove-white-pixels-from-my-video-capture/33072)

<div class="topic-metadata">

**Author:** [@Lautjelief](https://discourse.processing.org/u/Lautjelief)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 7:20pm UTC](https://discourse.processing.org/t/how-can-i-remove-white-pixels-from-my-video-capture/33072 "2021-10-27T19:20:22Z")

</div>

Hey all! Im pretty new to Processing, so I was wondering if I could get some advice on what to do. Im running into an issue where I want to make a picture of a drawing, and Processing will remove all the white from the…

---

## [\[deep-vision-processing library\] Can I use it with new training?](https://discourse.processing.org/t/deep-vision-processing-library-can-i-use-it-with-new-training/33111)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 9:17am UTC](https://discourse.processing.org/t/deep-vision-processing-library-can-i-use-it-with-new-training/33111 "2021-10-27T09:17:28Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Can I use it with new training? Object recognition is possible through ‘Deep Vision Processing’. I want to recognize another object. So, you n…

---

## [How to use static variables in Processing?](https://discourse.processing.org/t/how-to-use-static-variables-in-processing/32774)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 12\
**Last updated:** [October 27, 2021, 12:42am UTC](https://discourse.processing.org/t/how-to-use-static-variables-in-processing/32774 "2021-10-27T00:42:47Z")

</div>

Hi, I’m working on a LCD128x64 C code for an Arduino platform and doing my quick snippets with processing. Now, I need to use static variables inside a function, but apparently there are no static keyword in processing…

---

## [PImage Draw transparent .jpg keeps overwriting the newest mouseY, don't know how to fix](https://discourse.processing.org/t/pimage-draw-transparent-jpg-keeps-overwriting-the-newest-mousey-dont-know-how-to-fix/33092)

<div class="topic-metadata">

**Author:** [@Lott](https://discourse.processing.org/u/Lott)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 9:49pm UTC](https://discourse.processing.org/t/pimage-draw-transparent-jpg-keeps-overwriting-the-newest-mousey-dont-know-how-to-fix/33092 "2021-10-26T21:49:28Z")

</div>

Hi!! Just started using Processing and I’m having a hard time with my transparent jpg… I have a code for interactive mouseY but because the background is transparant you can see the previous mouse movement (what I don’t…

---

## [Randomized lines on a grid - homework help - it's kinda due tonight](https://discourse.processing.org/t/randomized-lines-on-a-grid-homework-help-its-kinda-due-tonight/32964)

<div class="topic-metadata">

**Author:** [@Jamii](https://discourse.processing.org/u/Jamii)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 4:55pm UTC](https://discourse.processing.org/t/randomized-lines-on-a-grid-homework-help-its-kinda-due-tonight/32964 "2021-10-26T16:55:40Z")

</div>

Hi, I’m really new to processing and I need some help on an idea I don’t really know where to start at. What I have now is a grid, and I’ll make it not visible later, it just acts as a guideline. I want a vertical line…

---

## [Processing throw syntax error when I define a function](https://discourse.processing.org/t/processing-throw-syntax-error-when-i-define-a-function/33041)

<div class="topic-metadata">

**Author:** [@isikoromochi](https://discourse.processing.org/u/isikoromochi)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 11:08am UTC](https://discourse.processing.org/t/processing-throw-syntax-error-when-i-define-a-function/33041 "2021-10-26T11:08:19Z")

</div>

Hi all, I can’t define any function because of syntax error. void setup(){ size(1000,1000); } line(100,100,200,300); This code throws “Syntax Error - Missing operator, semicolon, or ‘}’ near ‘100’?” at line 5. I t…

---

## [Different pixel sizes in one image - radial small to big](https://discourse.processing.org/t/different-pixel-sizes-in-one-image-radial-small-to-big/33047)

<div class="topic-metadata">

**Author:** [@AntoniaVincenza](https://discourse.processing.org/u/AntoniaVincenza)\
**Replies:** 17\
**Last updated:** [October 26, 2021, 11:21am UTC](https://discourse.processing.org/t/different-pixel-sizes-in-one-image-radial-small-to-big/33047 "2021-10-26T11:21:55Z")

</div>

Hi! I would like to rasterize an image into pixels, but have struggles to find the right code for what I am looking for: I would like it to have a very high resolution in the middle and then kind of “fall apart” into bi…

---

## [Having trouble trying to implement bucket sort algorithm](https://discourse.processing.org/t/having-trouble-trying-to-implement-bucket-sort-algorithm/33066)

<div class="topic-metadata">

**Author:** [@systemCollapse](https://discourse.processing.org/u/systemCollapse)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 7:34pm UTC](https://discourse.processing.org/t/having-trouble-trying-to-implement-bucket-sort-algorithm/33066 "2021-10-25T19:34:51Z")

</div>

Im trying to bucket sort an array and represent the sorting visually with processing functions. Found this bucket sort code to be rather common used in Java: import java.util.\*; import java.util.Collections; float\[\] ar…

---

## [Video loading problem](https://discourse.processing.org/t/video-loading-problem/33062)

<div class="topic-metadata">

**Author:** [@Rayenblue](https://discourse.processing.org/u/Rayenblue)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 6:33pm UTC](https://discourse.processing.org/t/video-loading-problem/33062 "2021-10-25T18:33:54Z")

</div>

Hello everyone , i try to load a video in processing but i have the loading’s message erreur. import processing.video.\*; Movie video; void setup() { size(600, 400); video = new Movie(this,"intro.quizz"); video.l…

---

## [Recreating the Photoshop Pen Tool in Processing](https://discourse.processing.org/t/recreating-the-photoshop-pen-tool-in-processing/33042)

<div class="topic-metadata">

**Author:** [@sebest\_design](https://discourse.processing.org/u/sebest_design)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 2:50pm UTC](https://discourse.processing.org/t/recreating-the-photoshop-pen-tool-in-processing/33042 "2021-10-25T14:50:49Z")

</div>

Hello. I am working on a school project. I am supposed to create a Snapchat filter. I am trying to create something close to the pen tool with Processing 3. So far I have not been able to figure out how to use arrays al…

---

## [Define a startingpoint from a .png file in processing](https://discourse.processing.org/t/define-a-startingpoint-from-a-png-file-in-processing/32896)

<div class="topic-metadata">

**Author:** [@sigbjorn](https://discourse.processing.org/u/sigbjorn)\
**Replies:** 15\
**Last updated:** [October 22, 2021, 4:31pm UTC](https://discourse.processing.org/t/define-a-startingpoint-from-a-png-file-in-processing/32896 "2021-10-22T16:31:25Z")

</div>

Hi! Im have a .png file with a black graph on it. (just a single black line on a complete white background) I would like to define two starting points from stroke-functions amongst this line. one stroke function which …

---

## [BREAKOUT Project - Help with collision detection](https://discourse.processing.org/t/breakout-project-help-with-collision-detection/16546)

<div class="topic-metadata">

**Author:** [@dunkinsa](https://discourse.processing.org/u/dunkinsa)\
**Replies:** 27\
**Last updated:** [December 30, 2019, 9:56am UTC](https://discourse.processing.org/t/breakout-project-help-with-collision-detection/16546 "2019-12-30T09:56:22Z")

</div>

Hello everyone! I’m new to Processing and attempting to create a version of Breakout. I am nearing the end of my project but I didn’t find any good way/solution to make my bricks disappear when the ball hits them. I feel…

---

## [Unfolding library in processing 2](https://discourse.processing.org/t/unfolding-library-in-processing-2/33052)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 9:38am UTC](https://discourse.processing.org/t/unfolding-library-in-processing-2/33052 "2021-10-25T09:38:50Z")

</div>

i have followed these instructions and put the unzipped library in the path in preferences but it does not work

---

## [How to run Processing code in Visual Studio?](https://discourse.processing.org/t/how-to-run-processing-code-in-visual-studio/33009)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 9\
**Last updated:** [October 25, 2021, 9:02am UTC](https://discourse.processing.org/t/how-to-run-processing-code-in-visual-studio/33009 "2021-10-25T09:02:10Z")

</div>

i installed the processing extension to visual studio, but when i run it i get this message when i then click on “find processing exstenstion” i get this how do i fix this?

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

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