# Latest

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

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

**Page:** 405

---

## [Just i want to show my dart board](https://discourse.processing.org/t/just-i-want-to-show-my-dart-board/16964)

<div class="topic-metadata">

**Author:** [@pisigor](https://discourse.processing.org/u/pisigor)\
**Replies:** 1\
**Last updated:** [January 9, 2020, 2:36am UTC](https://discourse.processing.org/t/just-i-want-to-show-my-dart-board/16964 "2020-01-09T02:36:55Z")

</div>

hi i am new.making it is give me enjoy and maybe someone wants to see it int a=18; int x,y,de; boolean c1,c2,c3,c4; int d1,d2,d3; boolean d1de,d2de,d3te; void setup(){ size(500,500); d1=100; d2=200; d3=300; } …

---

## [Is there a way to pivot an image around a certain point?](https://discourse.processing.org/t/is-there-a-way-to-pivot-an-image-around-a-certain-point/16947)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 3\
**Last updated:** [January 9, 2020, 1:22am UTC](https://discourse.processing.org/t/is-there-a-way-to-pivot-an-image-around-a-certain-point/16947 "2020-01-09T01:22:07Z")

</div>

I need to turn this image around the hole in bottom. The hole is located 323 pixels from the top and 182 from the left edge. I tried something like: PImage BD1; float R; void setup() { size(1790, 1100, JAVA2D); …

---

## [Can I put sounds generated via processing-sounds into Movie Maker "container"?](https://discourse.processing.org/t/can-i-put-sounds-generated-via-processing-sounds-into-movie-maker-container/16974)

<div class="topic-metadata">

**Author:** [@aurora](https://discourse.processing.org/u/aurora)\
**Replies:** 0\
**Last updated:** [January 9, 2020, 1:01am UTC](https://discourse.processing.org/t/can-i-put-sounds-generated-via-processing-sounds-into-movie-maker-container/16974 "2020-01-09T01:01:52Z")

</div>

I’d like to add a sound to each frame of animation - say frameRate=8, each with a 125 ms sound sample. Is anyone doing this?

---

## [Create game launcher](https://discourse.processing.org/t/create-game-launcher/16560)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 8\
**Last updated:** [January 8, 2020, 10:30pm UTC](https://discourse.processing.org/t/create-game-launcher/16560 "2020-01-08T22:30:45Z")

</div>

Hay, I would like to create a game launcher with you. I already do a lot with processing only I don’t know how to start there can someone help me? ~ Montelia’RO :wink:

---

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

---

## [How install jna in processing](https://discourse.processing.org/t/how-install-jna-in-processing/16825)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 3\
**Last updated:** [January 8, 2020, 4:14pm UTC](https://discourse.processing.org/t/how-install-jna-in-processing/16825 "2020-01-08T16:14:36Z")

</div>

Try using this code but it doesn’t detect some classes like kernel32. import com.sun.jna.\*; import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.Platform; final static long baseAddress = 0x10002A…

---

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

---

## [Difficulties in starting out with p5.sound.js](https://discourse.processing.org/t/difficulties-in-starting-out-with-p5-sound-js/16637)

<div class="topic-metadata">

**Author:** [@roy05](https://discourse.processing.org/u/roy05)\
**Replies:** 3\
**Last updated:** [January 8, 2020, 8:38am UTC](https://discourse.processing.org/t/difficulties-in-starting-out-with-p5-sound-js/16637 "2020-01-08T08:38:43Z")

</div>

So I’m recently starting out with p5.sound.js to make an audio visualizer. However, I find myself stuck at the very first step and I would really appreciate any help. Errors: The AudioContext was not allowed to start. …

---

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

---

## [Mitosis chain reaction, cant get it under control](https://discourse.processing.org/t/mitosis-chain-reaction-cant-get-it-under-control/16937)

<div class="topic-metadata">

**Author:** [@ZenVega](https://discourse.processing.org/u/ZenVega)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 6:38am UTC](https://discourse.processing.org/t/mitosis-chain-reaction-cant-get-it-under-control/16937 "2020-01-08T06:38:07Z")

</div>

Hey all, so i created this advanced version of the mitosis simulation challange (‘https://thecodingtrain.com/CodingChallenges/006-mitosis-p5.html’) and among others included a function to remerge the cells. It kinda wor…

---

## [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(){ …

---

## [Way to check if draw() is currently looping?](https://discourse.processing.org/t/way-to-check-if-draw-is-currently-looping/16946)

<div class="topic-metadata">

**Author:** [@maayan](https://discourse.processing.org/u/maayan)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 4:12am UTC](https://discourse.processing.org/t/way-to-check-if-draw-is-currently-looping/16946 "2020-01-08T04:12:08Z")

</div>

Is there any way to check if draw() is currently looping (ie if loop/noLoop was called)? There doesn’t seem to be a way to do this in the p5 library so is there some way to check under the hood?

---

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

---

## [Creative custom interfaces to control Processing via OSC](https://discourse.processing.org/t/creative-custom-interfaces-to-control-processing-via-osc/16922)

<div class="topic-metadata">

**Author:** [@trafalmejo](https://discourse.processing.org/u/trafalmejo)\
**Replies:** 2\
**Last updated:** [January 7, 2020, 1:59am UTC](https://discourse.processing.org/t/creative-custom-interfaces-to-control-processing-via-osc/16922 "2020-01-07T01:59:37Z")

</div>

Hi, I wanted to share this project I have been working on. OSCAR is a tool to create Custom, and responsive Graphical User Interfaces to control interactive installations via OSC. You can control Processing easily. Cust…

---

## [Lost account, lost files?](https://discourse.processing.org/t/lost-account-lost-files/16876)

<div class="topic-metadata">

**Author:** [@tomwh2010](https://discourse.processing.org/u/tomwh2010)\
**Replies:** 6\
**Last updated:** [January 7, 2020, 1:46am UTC](https://discourse.processing.org/t/lost-account-lost-files/16876 "2020-01-07T01:46:17Z")

</div>

Early december I decided to delete the gmail account thinking that I would not lose that awfully much. Now I realize that I cannot access my files on p5js online editor since I used Google to login. My bad. Is it possibl…

---

## [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.");…

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

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