# Processing

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

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

**Page:** 245

---

## [Perlin Noise Controler](https://discourse.processing.org/t/perlin-noise-controler/16816)

<div class="topic-metadata">

**Author:** [@fabnai](https://discourse.processing.org/u/fabnai)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 10:23pm UTC](https://discourse.processing.org/t/perlin-noise-controler/16816 "2020-01-08T22:23:29Z")

</div>

Hello there I’m a Graphic Designer and for my final diploma project I want to explore Generative Art / Creative Coding. I intend to do something with Perlin Noise but don’t really know where to start yet. So I figured I…

---

## [For loops in for loops](https://discourse.processing.org/t/for-loops-in-for-loops/16957)

<div class="topic-metadata">

**Author:** [@Clay1](https://discourse.processing.org/u/Clay1)\
**Replies:** 6\
**Last updated:** [January 8, 2020, 7:40pm UTC](https://discourse.processing.org/t/for-loops-in-for-loops/16957 "2020-01-08T19:40:09Z")

</div>

Hi, I have created this code to make a poster. But I really want to make the code shorter, since it is the same for loop again and again only different placing and the amount of circles it creates. But I don’t know ho…

---

## [A catching game](https://discourse.processing.org/t/a-catching-game/16906)

<div class="topic-metadata">

**Author:** [@Morgy\_B](https://discourse.processing.org/u/Morgy_B)\
**Replies:** 3\
**Last updated:** [January 8, 2020, 7:11pm UTC](https://discourse.processing.org/t/a-catching-game/16906 "2020-01-08T19:11:46Z")

</div>

Hi I am making a ball catching game using a controller and I am having trouble with collision detection. I want it so when the ball comes into contact with the bucket at the bottom the ball will disappear and the score w…

---

## [GCP Error on Calling Plug](https://discourse.processing.org/t/gcp-error-on-calling-plug/16916)

<div class="topic-metadata">

**Author:** [@B\_s](https://discourse.processing.org/u/B_s)\
**Replies:** 10\
**Last updated:** [January 8, 2020, 5:06pm UTC](https://discourse.processing.org/t/gcp-error-on-calling-plug/16916 "2020-01-08T17:06:26Z")

</div>

Hi, I’m learning to use GCP and have followed this source so far. Here is the config for my Xbox controller: When I try to run the same line of code from the tutorial I get the error message “RuntimeException: Error …

---

## [I need help to make it so that when the square touches a green rectangle it resets to position (20,650)](https://discourse.processing.org/t/i-need-help-to-make-it-so-that-when-the-square-touches-a-green-rectangle-it-resets-to-position-20-650/16940)

<div class="topic-metadata">

**Author:** [@Rango](https://discourse.processing.org/u/Rango)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 4:17pm UTC](https://discourse.processing.org/t/i-need-help-to-make-it-so-that-when-the-square-touches-a-green-rectangle-it-resets-to-position-20-650/16940 "2020-01-08T16:17:08Z")

</div>

int x=20; int y=650; int w=20; int h=20; int c=1; int d=20; String a= ""; String b= "Warning: Wormhole detected ahead. Approach with caution."; float rectX; float rectY; float rectA; float rectB; float rectC; float …

---

## [Creating a controller with conductive paint and using in Processing](https://discourse.processing.org/t/creating-a-controller-with-conductive-paint-and-using-in-processing/16679)

<div class="topic-metadata">

**Author:** [@marianne91](https://discourse.processing.org/u/marianne91)\
**Replies:** 10\
**Last updated:** [January 8, 2020, 1:47pm UTC](https://discourse.processing.org/t/creating-a-controller-with-conductive-paint-and-using-in-processing/16679 "2020-01-08T13:47:06Z")

</div>

Hi there, I’m looking to make a project in which activity on a screen is generated by someone stepping on a painted surface (with bare conductive paint - https://www.bareconductive.com/). This action of stepping on the…

---

## [Get a higher resolution](https://discourse.processing.org/t/get-a-higher-resolution/16951)

<div class="topic-metadata">

**Author:** [@fabnai](https://discourse.processing.org/u/fabnai)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 12:45pm UTC](https://discourse.processing.org/t/get-a-higher-resolution/16951 "2020-01-08T12:45:15Z")

</div>

Hello Everybody I have a question: I found this code from Dan Shifman about fluid simulation. If I run the code the resolution is very poor can someone tell me how I can get a better resolution? Thank you verry much f…

---

## [If I make a pde in windows will it work in linux?](https://discourse.processing.org/t/if-i-make-a-pde-in-windows-will-it-work-in-linux/16942)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 8:23am UTC](https://discourse.processing.org/t/if-i-make-a-pde-in-windows-will-it-work-in-linux/16942 "2020-01-08T08:23:52Z")

</div>

Can a sketch I’ve made in windows run in linux, assuming that linux has the right java versions and libraries?

---

## [Writing console output to a text file](https://discourse.processing.org/t/writing-console-output-to-a-text-file/16949)

<div class="topic-metadata">

**Author:** [@idisc007](https://discourse.processing.org/u/idisc007)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 8:05am UTC](https://discourse.processing.org/t/writing-console-output-to-a-text-file/16949 "2020-01-08T08:05:31Z")

</div>

The output in my sketch produces a maximum of 500 lines, which forces the first lines to disappear. My output is thousands of lines. I need code that will write all output lines from the console window to a text file. Th…

---

## [Making my stick figure blink](https://discourse.processing.org/t/making-my-stick-figure-blink/16934)

<div class="topic-metadata">

**Author:** [@Kvigna](https://discourse.processing.org/u/Kvigna)\
**Replies:** 3\
**Last updated:** [January 8, 2020, 4:12am UTC](https://discourse.processing.org/t/making-my-stick-figure-blink/16934 "2020-01-08T04:12:22Z")

</div>

Hi! I’m trying to figure out how I would make the eyes of my stick figure blink. Please help me figure it out. My code is: //Drawing a character void setup(){ size(400,400); background(200,255,100); } void draw(){ …

---

## [Catcher game (game over)](https://discourse.processing.org/t/catcher-game-game-over/16944)

<div class="topic-metadata">

**Author:** [@Clay1](https://discourse.processing.org/u/Clay1)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 1:47am UTC](https://discourse.processing.org/t/catcher-game-game-over/16944 "2020-01-08T01:47:04Z")

</div>

How do i make my code so that if you dont catch something and it hits the ground it will reset? So it will start a new game and say like game over? Can some help me? Thanks Catcher myCatcher; Ball\[\] fallingBall; void…

---

## ["Variable in variable"/putting a variable in the name behind void / calling methods by name](https://discourse.processing.org/t/variable-in-variable-putting-a-variable-in-the-name-behind-void-calling-methods-by-name/16935)

<div class="topic-metadata">

**Author:** [@Optyfen\_met\_Eenden](https://discourse.processing.org/u/Optyfen_met_Eenden)\
**Replies:** 10\
**Last updated:** [January 7, 2020, 6:36pm UTC](https://discourse.processing.org/t/variable-in-variable-putting-a-variable-in-the-name-behind-void-calling-methods-by-name/16935 "2020-01-07T18:36:52Z")

</div>

Hey everyone, Does anyone know how to put a variable in the name behind void, also does the method work with regular variables, not implementing an array? an example to explain this question: int Mode=0; void draw(){ …

---

## [Map processing sketch coordinates to shader .frag coordinates](https://discourse.processing.org/t/map-processing-sketch-coordinates-to-shader-frag-coordinates/16844)

<div class="topic-metadata">

**Author:** [@rojele](https://discourse.processing.org/u/rojele)\
**Replies:** 5\
**Last updated:** [January 7, 2020, 5:34pm UTC](https://discourse.processing.org/t/map-processing-sketch-coordinates-to-shader-frag-coordinates/16844 "2020-01-07T17:34:16Z")

</div>

Hi, everyone, Since I am a beginer with shaders, I’m stuck in this very basic matter. I would like to generate a shader image output in the exact point where the mouse is, as a first step in the project I am currently i…

---

## [Game control plus, buttons interacting with objects](https://discourse.processing.org/t/game-control-plus-buttons-interacting-with-objects/16811)

<div class="topic-metadata">

**Author:** [@Hhussain99](https://discourse.processing.org/u/Hhussain99)\
**Replies:** 8\
**Last updated:** [January 7, 2020, 5:25pm UTC](https://discourse.processing.org/t/game-control-plus-buttons-interacting-with-objects/16811 "2020-01-07T17:25:27Z")

</div>

Hi, im new to using processing as well as using game control plus, so bare with me. My objective is to use the game controller to create art on processing. However, being new to processing im struggling in connecting the…

---

## [Get user input with textbox class](https://discourse.processing.org/t/get-user-input-with-textbox-class/16150)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 11\
**Last updated:** [January 7, 2020, 8:58am UTC](https://discourse.processing.org/t/get-user-input-with-textbox-class/16150 "2020-01-07T08:58:22Z")

</div>

Hi, I would like to input a text into a ‘textbox’ and save the input into a variable when for example enter is pressed. So far I have come up with the following code: main.pde: TextBox textBox1; void setup(){ size…

---

## [Use controlP5 listBox to select string](https://discourse.processing.org/t/use-controlp5-listbox-to-select-string/16923)

<div class="topic-metadata">

**Author:** [@rhole](https://discourse.processing.org/u/rhole)\
**Replies:** 3\
**Last updated:** [January 7, 2020, 4:03am UTC](https://discourse.processing.org/t/use-controlp5-listbox-to-select-string/16923 "2020-01-07T04:03:36Z")

</div>

I am looking at an example from the older forum. I am using version 3.5.3. I can get this sample to work, partially, by commenting out the two lines with “theEvent.group().value()” which give the error “The function va…

---

## [Make string from characters](https://discourse.processing.org/t/make-string-from-characters/16563)

<div class="topic-metadata">

**Author:** [@quinten](https://discourse.processing.org/u/quinten)\
**Replies:** 4\
**Last updated:** [January 7, 2020, 3:00am UTC](https://discourse.processing.org/t/make-string-from-characters/16563 "2020-01-07T03:00:17Z")

</div>

Hi everyone, why is the following not true (“ab” == str(‘a’) + str(‘b’)) and how can I adjust it so that it will be true? See the example below: void setup() { size(200, 200); } void draw() { println("ab", str('a…

---

## [How can I convert voice data to a .wav file?](https://discourse.processing.org/t/how-can-i-convert-voice-data-to-a-wav-file/16893)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [January 7, 2020, 2:36am UTC](https://discourse.processing.org/t/how-can-i-convert-voice-data-to-a-wav-file/16893 "2020-01-07T02:36:26Z")

</div>

how can I convert voice data to a .wav file? Hello. nice to meet you. I am using Arduino to get the voice value from the microphone to the ADC. I send the ADC value to a PC and want save it as a .wav file. In other…

---

## [Setting different time variables](https://discourse.processing.org/t/setting-different-time-variables/16861)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 9\
**Last updated:** [January 7, 2020, 2:04am UTC](https://discourse.processing.org/t/setting-different-time-variables/16861 "2020-01-07T02:04:54Z")

</div>

I am trying to make two things happen in time but independently to each other. I want the time after each of them to reset, but not reset the time for the other thing. Here’s example code to show what I mean; int time =…

---

## [Any way to use conditional operator in a case statement](https://discourse.processing.org/t/any-way-to-use-conditional-operator-in-a-case-statement/16846)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [January 7, 2020, 1:06am UTC](https://discourse.processing.org/t/any-way-to-use-conditional-operator-in-a-case-statement/16846 "2020-01-07T01:06:46Z")

</div>

Is there any way to use a condition such as || or && in a case: statement? switch (int) { case 0 || 1: println("Not sure, let me check."); case 0: println("Nope."); break; case 1: println("Yup.");…

---

## [Turning randomly placed buttons off and on via boolean switch](https://discourse.processing.org/t/turning-randomly-placed-buttons-off-and-on-via-boolean-switch/16917)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 3\
**Last updated:** [January 6, 2020, 11:03pm UTC](https://discourse.processing.org/t/turning-randomly-placed-buttons-off-and-on-via-boolean-switch/16917 "2020-01-06T23:03:14Z")

</div>

I think this is a question about program flow and how to enable user interaction. Currently working on a problem in Shiffman book. I want to create multiple buttons (currently 2 buttons in this version) via object cla…

---

## [Terminology: function, method and event?](https://discourse.processing.org/t/terminology-function-method-and-event/16855)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 6\
**Last updated:** [January 6, 2020, 8:44pm UTC](https://discourse.processing.org/t/terminology-function-method-and-event/16855 "2020-01-06T20:44:33Z")

</div>

Hi I’m confused and the more I google the more confused I get, so I better ask here :slight\_smile: As me and my son study Processing im now trying to document our progress and I don’t know If i’m suppose to write that …

---

## [How to draw a curve using its equation?](https://discourse.processing.org/t/how-to-draw-a-curve-using-its-equation/16870)

<div class="topic-metadata">

**Author:** [@Anelim](https://discourse.processing.org/u/Anelim)\
**Replies:** 6\
**Last updated:** [January 6, 2020, 8:18pm UTC](https://discourse.processing.org/t/how-to-draw-a-curve-using-its-equation/16870 "2020-01-06T20:18:22Z")

</div>

Hi. I am new in using Processing and, also, new asking something here :slightly\_smiling\_face: I hope that will get some help here and solve my problem. There is an equation of elliptic curve that I would like to draw …

---

## [Light emitting outwards from a sphere](https://discourse.processing.org/t/light-emitting-outwards-from-a-sphere/16904)

<div class="topic-metadata">

**Author:** [@olsxn](https://discourse.processing.org/u/olsxn)\
**Replies:** 2\
**Last updated:** [January 6, 2020, 7:54pm UTC](https://discourse.processing.org/t/light-emitting-outwards-from-a-sphere/16904 "2020-01-06T19:54:55Z")

</div>

I have created a small representation of the solar system and, at the moment, I have an ambient light and directional light in the scene. However, I would like to have the light emitting from the “Sun” outwards in all d…

---

## [Sound and text error in Processing](https://discourse.processing.org/t/sound-and-text-error-in-processing/16860)

<div class="topic-metadata">

**Author:** [@e.p](https://discourse.processing.org/u/e.p)\
**Replies:** 5\
**Last updated:** [January 6, 2020, 7:21pm UTC](https://discourse.processing.org/t/sound-and-text-error-in-processing/16860 "2020-01-06T19:21:40Z")

</div>

Hello everyone :smiley: I have a problem with this drummachine. I can not add another row of sound that is from my disktop and not from Minim. The 4. row just plays the previous soundpiece? What can I do to change it? …

---

## [How to make 3D out of this assignment?](https://discourse.processing.org/t/how-to-make-3d-out-of-this-assignment/16885)

<div class="topic-metadata">

**Author:** [@nuhic](https://discourse.processing.org/u/nuhic)\
**Replies:** 4\
**Last updated:** [January 6, 2020, 5:44pm UTC](https://discourse.processing.org/t/how-to-make-3d-out-of-this-assignment/16885 "2020-01-06T17:44:46Z")

</div>

Hi, I am new to this, so maybe I am not supposed to send it like this… I would be very grateful if someone could help me to make a 3D out of this project that I have, I am stuck. When you start it, you’ll see what happe…

---

## [Add an Array to an ArrayList](https://discourse.processing.org/t/add-an-array-to-an-arraylist/16884)

<div class="topic-metadata">

**Author:** [@Psteely](https://discourse.processing.org/u/Psteely)\
**Replies:** 2\
**Last updated:** [January 5, 2020, 10:51pm UTC](https://discourse.processing.org/t/add-an-array-to-an-arraylist/16884 "2020-01-05T22:51:20Z")

</div>

I’ve created a REALLY simple code snippet to show what I’m trying to do. I need to add an array that I have defined into an ArrayList. I need an ArrayList as I don’t know how many arrays I will end up with. This will Obv…

---

## [Grid-based Particle Movement „Formula“ works incorrectly](https://discourse.processing.org/t/grid-based-particle-movement-formula-works-incorrectly/16794)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 11\
**Last updated:** [January 5, 2020, 10:19pm UTC](https://discourse.processing.org/t/grid-based-particle-movement-formula-works-incorrectly/16794 "2020-01-05T22:19:21Z")

</div>

I‘ve been having a bit of trouble with this for a while and finally found a solution (more or less). What i‘m trying to achieve is basically something like a Grid-based Wave Simulation (only that waves would propagate i…

---

## [Feedback on expandible digit display](https://discourse.processing.org/t/feedback-on-expandible-digit-display/16838)

<div class="topic-metadata">

**Author:** [@SWijnen](https://discourse.processing.org/u/SWijnen)\
**Replies:** 7\
**Last updated:** [January 5, 2020, 4:44am UTC](https://discourse.processing.org/t/feedback-on-expandible-digit-display/16838 "2020-01-05T04:44:32Z")

</div>

Hello everyone, I made an expandable digit display and I am wondering what you think of it. (As you can maybe see) I am new to coding and made this myself. I did not copy anything from the internet. Does anyone has any …

---

## [My program keeps crashing; STRING (file) to INT](https://discourse.processing.org/t/my-program-keeps-crashing-string-file-to-int/16872)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [January 5, 2020, 3:53am UTC](https://discourse.processing.org/t/my-program-keeps-crashing-string-file-to-int/16872 "2020-01-05T03:53:10Z")

</div>

the first segment of code is the issue, without it, it works fine. I have tried int(string), Intiger.valueOf and Intiger.ParseInt. If you have any ideas pls tell me. (btw i saw no issue with the file, if you want i can l…

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

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