# Processing

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

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

**Page:** 169

---

## [How to make: if timer is finished end game](https://discourse.processing.org/t/how-to-make-if-timer-is-finished-end-game/25661)

<div class="topic-metadata">

**Author:** [@TheGullible1](https://discourse.processing.org/u/TheGullible1)\
**Replies:** 2\
**Last updated:** [November 24, 2020, 11:39am UTC](https://discourse.processing.org/t/how-to-make-if-timer-is-finished-end-game/25661 "2020-11-24T11:39:17Z")

</div>

Hi, I’m tryna make an if statement consisting of my timer and how to end the game after my countdown of 60 seconds has finished. i have a class called countdown: class CountDown //start of CountDown class { private …

---

## [How to make particles with tails on the picture](https://discourse.processing.org/t/how-to-make-particles-with-tails-on-the-picture/24941)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 5\
**Last updated:** [November 24, 2020, 8:46am UTC](https://discourse.processing.org/t/how-to-make-particles-with-tails-on-the-picture/24941 "2020-11-24T08:46:22Z")

</div>

Hi. I want to know how to make particles with tails on the picture? I try to do this. But it not work. :confounded:

---

## [Curved Vertex Drawing Dilemma](https://discourse.processing.org/t/curved-vertex-drawing-dilemma/25653)

<div class="topic-metadata">

**Author:** [@lkalotihos](https://discourse.processing.org/u/lkalotihos)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 8:42am UTC](https://discourse.processing.org/t/curved-vertex-drawing-dilemma/25653 "2020-11-24T08:42:37Z")

</div>

I’m having some issues with my curved vertex drawing. I’ve set it up so the x/y coordinates display as my mouse moves, so it would be easier to get the exact sketch I want. Except for some reason, it’s still not displayi…

---

## [Printing all PVector coordinates stored in an ArrayList](https://discourse.processing.org/t/printing-all-pvector-coordinates-stored-in-an-arraylist/25485)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 7\
**Last updated:** [November 24, 2020, 6:55am UTC](https://discourse.processing.org/t/printing-all-pvector-coordinates-stored-in-an-arraylist/25485 "2020-11-24T06:55:50Z")

</div>

I’m trying to get the whole set of x, y coordinates that are stored in an array. ArrayList\<Points\> recorded = new ArrayList(); void store (float x, float y) { int ArrayListSize = recorded.size()-1; if (Arra…

---

## [Exported Linux app can't see its images when launched from AUTOSTART](https://discourse.processing.org/t/exported-linux-app-cant-see-its-images-when-launched-from-autostart/25643)

<div class="topic-metadata">

**Author:** [@hondaman900](https://discourse.processing.org/u/hondaman900)\
**Replies:** 2\
**Last updated:** [November 23, 2020, 10:07pm UTC](https://discourse.processing.org/t/exported-linux-app-cant-see-its-images-when-launched-from-autostart/25643 "2020-11-23T22:07:51Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I have an exported Linux application and can run it fine in Linux directly executing it, from a .desktop file in the Desktop folder, and from te…

---

## [How to get the color value of an image, not that of what's drawn on the background](https://discourse.processing.org/t/how-to-get-the-color-value-of-an-image-not-that-of-whats-drawn-on-the-background/25642)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 7:53pm UTC](https://discourse.processing.org/t/how-to-get-the-color-value-of-an-image-not-that-of-whats-drawn-on-the-background/25642 "2020-11-23T19:53:16Z")

</div>

In this example, (no image, I’ve just used a background colour to demonstrate) the background colour value is 25 but when there’s a brush that overlays the background, mouseX and mouseY returns the value of what’s drawn …

---

## [Sounds/Frequencies on Processing](https://discourse.processing.org/t/sounds-frequencies-on-processing/25636)

<div class="topic-metadata">

**Author:** [@Rita\_Mera](https://discourse.processing.org/u/Rita_Mera)\
**Replies:** 2\
**Last updated:** [November 23, 2020, 6:58pm UTC](https://discourse.processing.org/t/sounds-frequencies-on-processing/25636 "2020-11-23T18:58:44Z")

</div>

How do I play frequencies with the movement of the mouse (X, Y)?

---

## [Unexpected void error](https://discourse.processing.org/t/unexpected-void-error/25640)

<div class="topic-metadata">

**Author:** [@type.gaurav](https://discourse.processing.org/u/type.gaurav)\
**Replies:** 8\
**Last updated:** [November 23, 2020, 6:47pm UTC](https://discourse.processing.org/t/unexpected-void-error/25640 "2020-11-23T18:47:19Z")

</div>

void setup(){ size(900,900); background(255); } void draw(){ for(int x = 0; x \< height; x = x+90){ for (int y = 0; ABy \< width; y = y+90){ shapeX(x, y, 90, 90, random(255)); } } void shapeX(float x, float y, fl…

---

## [Syncing processing with synths/pocket operators using MIDI CV or a click track?](https://discourse.processing.org/t/syncing-processing-with-synths-pocket-operators-using-midi-cv-or-a-click-track/25632)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 5:14pm UTC](https://discourse.processing.org/t/syncing-processing-with-synths-pocket-operators-using-midi-cv-or-a-click-track/25632 "2020-11-23T17:14:24Z")

</div>

I’ve got some processing code I’ve been working on to make generative visuals that go along with music. I’ve increasingly been creating the music myself using pocket operators. They sync to each other using what they cal…

---

## [Pixel sorting in processing 3.4](https://discourse.processing.org/t/pixel-sorting-in-processing-3-4/7479)

<div class="topic-metadata">

**Author:** [@thrm](https://discourse.processing.org/u/thrm)\
**Replies:** 6\
**Last updated:** [November 23, 2020, 5:08pm UTC](https://discourse.processing.org/t/pixel-sorting-in-processing-3-4/7479 "2020-11-23T17:08:25Z")

</div>

Hi I have a somewhat simple question (I think). Hope someone is able to help. I’m doing a project where I need to sort the pixels of an image by different parameters. As I’m very new to processing and self-learning I’m…

---

## [Having trouble with a code and its structure](https://discourse.processing.org/t/having-trouble-with-a-code-and-its-structure/25533)

<div class="topic-metadata">

**Author:** [@Spomch](https://discourse.processing.org/u/Spomch)\
**Replies:** 33\
**Last updated:** [November 23, 2020, 3:49pm UTC](https://discourse.processing.org/t/having-trouble-with-a-code-and-its-structure/25533 "2020-11-23T15:49:19Z")

</div>

Hi everyone, I’ve been struggling with my art project due to my lack of experience and knowledge of Processing. My problem concerns coding, which then lead to a project guidance problem. I will try my best to explain cle…

---

## [How to set random colors](https://discourse.processing.org/t/how-to-set-random-colors/25627)

<div class="topic-metadata">

**Author:** [@Ipboro](https://discourse.processing.org/u/Ipboro)\
**Replies:** 7\
**Last updated:** [November 23, 2020, 1:46pm UTC](https://discourse.processing.org/t/how-to-set-random-colors/25627 "2020-11-23T13:46:25Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, So I was wondering how can I (or if i can) randomize the colors in the set of code. This is my code for now, it is basiclly parametric l…

---

## [How to create a simple timer?](https://discourse.processing.org/t/how-to-create-a-simple-timer/3901)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 15\
**Last updated:** [November 23, 2020, 7:20am UTC](https://discourse.processing.org/t/how-to-create-a-simple-timer/3901 "2020-11-23T07:20:59Z")

</div>

Hello, I think this is a rather simple question, but how do I create a timer(or something like that), that tells the programm to do thing 1, and then, after half a second, do thing 2? I tried using the frameRate() comma…

---

## [Having trouble slowing my screen display](https://discourse.processing.org/t/having-trouble-slowing-my-screen-display/25453)

<div class="topic-metadata">

**Author:** [@luigipasto](https://discourse.processing.org/u/luigipasto)\
**Replies:** 15\
**Last updated:** [November 22, 2020, 10:52pm UTC](https://discourse.processing.org/t/having-trouble-slowing-my-screen-display/25453 "2020-11-22T22:52:17Z")

</div>

Hi, this is my first attempt at writing code. The goal seemed quite modest but I’m getting bogged down. I’m reading tabular data from a csv file, and writing to the screen one row of the table at the time. What I’d like …

---

## [Formula to calculate vector components proportional to distance (hairy circle)](https://discourse.processing.org/t/formula-to-calculate-vector-components-proportional-to-distance-hairy-circle/25613)

<div class="topic-metadata">

**Author:** [@fiveyearplan](https://discourse.processing.org/u/fiveyearplan)\
**Replies:** 0\
**Last updated:** [November 22, 2020, 6:00pm UTC](https://discourse.processing.org/t/formula-to-calculate-vector-components-proportional-to-distance-hairy-circle/25613 "2020-11-22T18:00:56Z")

</div>

Following my previous thread, what I need to find is a formula that calculates the vector components according to its distance from the centre of the circle. Looking at the image above, you see that the hairs move in …

---

## [G4P - Checkbox grid](https://discourse.processing.org/t/g4p-checkbox-grid/25585)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 12\
**Last updated:** [November 22, 2020, 5:46pm UTC](https://discourse.processing.org/t/g4p-checkbox-grid/25585 "2020-11-22T17:46:52Z")

</div>

Is possible to easily create a Check box grid? Like 8x8 or bigger. Thanks!

---

## [Anyone possible make project](https://discourse.processing.org/t/anyone-possible-make-project/25109)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 29\
**Last updated:** [November 22, 2020, 4:29pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109 "2020-11-22T16:29:29Z")

</div>

Hello to All this my project ; this working fine on java mode from serial (run on window 10) i need run same project on android app phone via bluetooth and from usb connect output encoder. i test on windows it work …

---

## [Independently translate and rotate](https://discourse.processing.org/t/independently-translate-and-rotate/25606)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 2\
**Last updated:** [November 22, 2020, 2:39pm UTC](https://discourse.processing.org/t/independently-translate-and-rotate/25606 "2020-11-22T14:39:05Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, how can I translate and rotate object independetly? I don’t want to translate the object after a translated object…

---

## [Drawing atomic orbitals](https://discourse.processing.org/t/drawing-atomic-orbitals/25601)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 12:01pm UTC](https://discourse.processing.org/t/drawing-atomic-orbitals/25601 "2020-11-22T12:01:03Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi everyone, I would like to code something like in this application, but that react to some external input, like microphone or other, is it pos…

---

## [Mac OS Catalina won't open exported applications](https://discourse.processing.org/t/mac-os-catalina-wont-open-exported-applications/25581)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 5\
**Last updated:** [November 22, 2020, 12:51am UTC](https://discourse.processing.org/t/mac-os-catalina-wont-open-exported-applications/25581 "2020-11-22T00:51:19Z")

</div>

I have a couple of Processing applications exported with embedded java from Processing 3.5.4 on a Mac. I upload these in a zip file to a website for users to download on their Macs. Unfortunately on Mac OS Catalina, doub…

---

## [How to make an object disappear on collision](https://discourse.processing.org/t/how-to-make-an-object-disappear-on-collision/25593)

<div class="topic-metadata">

**Author:** [@TheGullible1](https://discourse.processing.org/u/TheGullible1)\
**Replies:** 21\
**Last updated:** [November 21, 2020, 10:04pm UTC](https://discourse.processing.org/t/how-to-make-an-object-disappear-on-collision/25593 "2020-11-21T22:04:17Z")

</div>

i have a very simple code as I’m tryna learn collision detection as I want to use it in the future. //Falling Game Faller player; //declare instance variable Obstacle thing; void setup() { size(400, 600); player…

---

## [Encryption of username pipeline](https://discourse.processing.org/t/encryption-of-username-pipeline/25541)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 3\
**Last updated:** [November 21, 2020, 6:32pm UTC](https://discourse.processing.org/t/encryption-of-username-pipeline/25541 "2020-11-21T18:32:20Z")

</div>

Here’s the scheme for a desktop app that works only when the user is online, registered and has an active license. So basically, what I want to achieve is, when a user clicks the log-in button in the sketch window, I’d …

---

## [I want pass to next step when the video stop](https://discourse.processing.org/t/i-want-pass-to-next-step-when-the-video-stop/25570)

<div class="topic-metadata">

**Author:** [@josetai](https://discourse.processing.org/u/josetai)\
**Replies:** 2\
**Last updated:** [November 21, 2020, 5:53pm UTC](https://discourse.processing.org/t/i-want-pass-to-next-step-when-the-video-stop/25570 "2020-11-21T17:53:35Z")

</div>

Hi, i´m beginner writing code, and I can´t resolve somthing. When the video stop, i want it to pass to other step. I know that “if (movie1.stop()){step = 10;}” doesn´t exist, but i don´t know how to write it right. Any…

---

## [Letting a loop run forth and back](https://discourse.processing.org/t/letting-a-loop-run-forth-and-back/25552)

<div class="topic-metadata">

**Author:** [@serg](https://discourse.processing.org/u/serg)\
**Replies:** 2\
**Last updated:** [November 21, 2020, 5:40pm UTC](https://discourse.processing.org/t/letting-a-loop-run-forth-and-back/25552 "2020-11-21T17:40:27Z")

</div>

Currently I am trying to get a loop “running forth and back” in a Processing sketch. I can do it with mouseY for example – but I want to have it automatically: the rect(); should appear horizontally line by line… like 1…

---

## [Problem with alpha channel - editing photos and use parts to multiply](https://discourse.processing.org/t/problem-with-alpha-channel-editing-photos-and-use-parts-to-multiply/25574)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 11\
**Last updated:** [November 21, 2020, 12:25pm UTC](https://discourse.processing.org/t/problem-with-alpha-channel-editing-photos-and-use-parts-to-multiply/25574 "2020-11-21T12:25:45Z")

</div>

Hi I am quite new and rather unexperienced with Processing. I am trying to pick out a picture of a maple leaf from a photo and create a new image without the grass background in order to multiply the leaf image in a new…

---

## [How do I move this train?](https://discourse.processing.org/t/how-do-i-move-this-train/25560)

<div class="topic-metadata">

**Author:** [@Crimson-The-Saiyan](https://discourse.processing.org/u/Crimson-The-Saiyan)\
**Replies:** 9\
**Last updated:** [November 21, 2020, 12:03pm UTC](https://discourse.processing.org/t/how-do-i-move-this-train/25560 "2020-11-21T12:03:46Z")

</div>

Ok, so basically, I’m a begginer to Processing, I’m trying to make a train move for a school project, but I don’t know how, can anyone help me? Code: //Setting up the background void setup(){ size(1000,1000); } voi…

---

## [Calculate distance from point to (closest point of) shape](https://discourse.processing.org/t/calculate-distance-from-point-to-closest-point-of-shape/7201)

<div class="topic-metadata">

**Author:** [@grshch](https://discourse.processing.org/u/grshch)\
**Replies:** 9\
**Last updated:** [January 5, 2019, 2:22pm UTC](https://discourse.processing.org/t/calculate-distance-from-point-to-closest-point-of-shape/7201 "2019-01-05T14:22:00Z")

</div>

Hi everyone! Please help me to solve this thing. How to calculate distance from point to (closest point of) shape/curve/type?

---

## [Comment inserer et visualiser une image?](https://discourse.processing.org/t/comment-inserer-et-visualiser-une-image/25582)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.processing.org/u/nina)\
**Replies:** 1\
**Last updated:** [November 21, 2020, 1:32am UTC](https://discourse.processing.org/t/comment-inserer-et-visualiser-une-image/25582 "2020-11-21T01:32:20Z")

</div>

Bonjour à tous, Je voudrais savoir comment insérer et visualiser une image sur processing ? S’il vous plait pouvez vous m’aider . Je vous remercie d’avance. Cordialement, Nina

---

## [Functions outside draw? the midibus](https://discourse.processing.org/t/functions-outside-draw-the-midibus/25464)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 5\
**Last updated:** [November 21, 2020, 12:23am UTC](https://discourse.processing.org/t/functions-outside-draw-the-midibus/25464 "2020-11-21T00:23:43Z")

</div>

Hello I have a very basic question but would love some clarification. I have a project that will utilize Midi, I have installed theMidiBus and it is all working, I found a tutorial that helped me but I am confused about…

---

## [IOException in ProcessBuilder.start method during compile](https://discourse.processing.org/t/ioexception-in-processbuilder-start-method-during-compile/25578)

<div class="topic-metadata">

**Author:** [@srwlive](https://discourse.processing.org/u/srwlive)\
**Replies:** 1\
**Last updated:** [November 20, 2020, 8:21pm UTC](https://discourse.processing.org/t/ioexception-in-processbuilder-start-method-during-compile/25578 "2020-11-20T20:21:50Z")

</div>

Process runProgram(List\<String\> args) { ProcessBuilder pb = new ProcessBuilder(args); return pb.start(); } When I try to compile and run with processi…

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

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