# Processing

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

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

**Page:** 64

---

## [Problem when using curveVertex on a PShape](https://discourse.processing.org/t/problem-when-using-curvevertex-on-a-pshape/39319)

<div class="topic-metadata">

**Author:** [@DrHooDoo](https://discourse.processing.org/u/DrHooDoo)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 4:19pm UTC](https://discourse.processing.org/t/problem-when-using-curvevertex-on-a-pshape/39319 "2022-10-17T16:19:50Z")

</div>

Hello processing community ! I’m trying to code a function to make a PShape that has the form of a blob. My problem is that it doesn’t work with JAVA2D (default renderer) but it ok with P2D. It seems to be bound to cu…

---

## [How do I make a bar that shows the progress of a cooldown?](https://discourse.processing.org/t/how-do-i-make-a-bar-that-shows-the-progress-of-a-cooldown/39315)

<div class="topic-metadata">

**Author:** [@Marfmamow](https://discourse.processing.org/u/Marfmamow)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 3:46pm UTC](https://discourse.processing.org/t/how-do-i-make-a-bar-that-shows-the-progress-of-a-cooldown/39315 "2022-10-17T15:46:39Z")

</div>

In my game, I currently have 2 weapons. One with a cooldown of 2 seconds, and the other with a cooldown of 4.33 seconds To make the cooldown, I’m doing: int time = millis(); boolean fired = false; if (millis() - time \>…

---

## [Add a circular signal to a circular signal. Almost works!](https://discourse.processing.org/t/add-a-circular-signal-to-a-circular-signal-almost-works/39246)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [October 13, 2022, 4:55pm UTC](https://discourse.processing.org/t/add-a-circular-signal-to-a-circular-signal-almost-works/39246 "2022-10-13T16:55:31Z")

</div>

Hello, 10 ball turn in a clock way. By tapping ‘b’ you can see the same circular movement on the 10 balls and by tapping ‘q’ you can see a circular signal added itself to one different ball each 200 ms. I’m trying to…

---

## [Trying to Make center shape spin with mouse interaction](https://discourse.processing.org/t/trying-to-make-center-shape-spin-with-mouse-interaction/39312)

<div class="topic-metadata">

**Author:** [@JHProcess](https://discourse.processing.org/u/JHProcess)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 11:47am UTC](https://discourse.processing.org/t/trying-to-make-center-shape-spin-with-mouse-interaction/39312 "2022-10-17T11:47:08Z")

</div>

Hi There again! Im trying to make a star in spin with mouse interaction while also still being able to place rectangles in a scatter pattern. // Draw star fill(41, 171, 226); stroke(255); strokeWeight(2); begin…

---

## [Trying to make star spin with mouse interaction](https://discourse.processing.org/t/trying-to-make-star-spin-with-mouse-interaction/39302)

<div class="topic-metadata">

**Author:** [@JHProcess](https://discourse.processing.org/u/JHProcess)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 8:13am UTC](https://discourse.processing.org/t/trying-to-make-star-spin-with-mouse-interaction/39302 "2022-10-17T08:13:50Z")

</div>

Hi, so I got some help earlier on how to place rectangles across the plane in random spots. Now my next question is how i can make the star spin, have the rectangles pop up, and then stop after pressing the mouse again. …

---

## [Processing 4: sound library doesn't work](https://discourse.processing.org/t/processing-4-sound-library-doesnt-work/38410)

<div class="topic-metadata">

**Author:** [@antogonc](https://discourse.processing.org/u/antogonc)\
**Replies:** 2\
**Last updated:** [October 16, 2022, 11:40pm UTC](https://discourse.processing.org/t/processing-4-sound-library-doesnt-work/38410 "2022-10-16T23:40:56Z")

</div>

I’m using Processing 4. The sound library doesn’t work, it says it only works for processing 3. All the libraries related to sound don’t have the green flag. Checking it, they are installed but without the green flag: it…

---

## [Treasure game: how to pick up items and end the game?](https://discourse.processing.org/t/treasure-game-how-to-pick-up-items-and-end-the-game/39294)

<div class="topic-metadata">

**Author:** [@ArcJAVA](https://discourse.processing.org/u/ArcJAVA)\
**Replies:** 20\
**Last updated:** [October 16, 2022, 5:09pm UTC](https://discourse.processing.org/t/treasure-game-how-to-pick-up-items-and-end-the-game/39294 "2022-10-16T17:09:30Z")

</div>

Hi, I’m trying to make a game that can pick up treasures. right now I can touch them so I will get point but I have no idea how I can let them disappear when I touched them. i need to let the game stop when all the treas…

---

## [Putting rectangles in random positions](https://discourse.processing.org/t/putting-rectangles-in-random-positions/39300)

<div class="topic-metadata">

**Author:** [@JHProcess](https://discourse.processing.org/u/JHProcess)\
**Replies:** 7\
**Last updated:** [October 16, 2022, 5:30pm UTC](https://discourse.processing.org/t/putting-rectangles-in-random-positions/39300 "2022-10-16T17:30:27Z")

</div>

Hi everyone, I’m new to processing, and in this class, I’m in I’m trying to place rectangles in a scattered array behind this big star that I have already in place. The image I have attached is my sketch for this projec…

---

## [How do I upload myArduinofile.ino to the Arduino Board (MEGA-UNO) from a Processing sketch](https://discourse.processing.org/t/how-do-i-upload-myarduinofile-ino-to-the-arduino-board-mega-uno-from-a-processing-sketch/38010)

<div class="topic-metadata">

**Author:** [@demir](https://discourse.processing.org/u/demir)\
**Replies:** 7\
**Last updated:** [October 16, 2022, 1:18pm UTC](https://discourse.processing.org/t/how-do-i-upload-myarduinofile-ino-to-the-arduino-board-mega-uno-from-a-processing-sketch/38010 "2022-10-16T13:18:34Z")

</div>

I am using the exec(arg) function My arg is : C:\\Program Files (x86)\\Arduino\\arduino.exe --upload C:\\ArduinoProcessingV1\\sketch\_New\\Arduino\\HeatTransfer\\HeatTransfer.ino The arg works from commandline of windows it also…

---

## [How to delete wavy effect on this code](https://discourse.processing.org/t/how-to-delete-wavy-effect-on-this-code/39292)

<div class="topic-metadata">

**Author:** [@pushhand](https://discourse.processing.org/u/pushhand)\
**Replies:** 1\
**Last updated:** [October 16, 2022, 11:05am UTC](https://discourse.processing.org/t/how-to-delete-wavy-effect-on-this-code/39292 "2022-10-16T11:05:41Z")

</div>

/\*\* Time Displacement by David Muth Keeps a buffer of video frames in memory and displays pixel rows taken from consecutive frames distributed over the y-axis \*/ import processing.video.\*; Capture video; int sign…

---

## [How do I create a circle appears and floats circles but doesnt move out of the frame? something like the example below](https://discourse.processing.org/t/how-do-i-create-a-circle-appears-and-floats-circles-but-doesnt-move-out-of-the-frame-something-like-the-example-below/39290)

<div class="topic-metadata">

**Author:** [@andreasarmiento](https://discourse.processing.org/u/andreasarmiento)\
**Replies:** 6\
**Last updated:** [October 16, 2022, 10:50am UTC](https://discourse.processing.org/t/how-do-i-create-a-circle-appears-and-floats-circles-but-doesnt-move-out-of-the-frame-something-like-the-example-below/39290 "2022-10-16T10:50:58Z")

</div>

---

## [Snake game in java processing](https://discourse.processing.org/t/snake-game-in-java-processing/38131)

<div class="topic-metadata">

**Author:** [@ikay](https://discourse.processing.org/u/ikay)\
**Replies:** 4\
**Last updated:** [October 16, 2022, 9:43am UTC](https://discourse.processing.org/t/snake-game-in-java-processing/38131 "2022-10-16T09:43:54Z")

</div>

I tried doing a snake game and tried to run my code to make the snake increase as it eats and also at the end it also gives me syntax error could someone help me out here type or int growth = 1; final int X\_SPEED = 1; …

---

## [I want to show past scene which is few seconds ago in processing (capture cam)](https://discourse.processing.org/t/i-want-to-show-past-scene-which-is-few-seconds-ago-in-processing-capture-cam/39235)

<div class="topic-metadata">

**Author:** [@pushhand](https://discourse.processing.org/u/pushhand)\
**Replies:** 2\
**Last updated:** [October 16, 2022, 8:50am UTC](https://discourse.processing.org/t/i-want-to-show-past-scene-which-is-few-seconds-ago-in-processing-capture-cam/39235 "2022-10-16T08:50:02Z")

</div>

At first, I though that if I use ‘delay’, I can play the camera that shows 10 seconds past scene however, it just slow down the rate I think, Is there any code that make possible to show the scene which is ten seconds b…

---

## [Image processing for loop](https://discourse.processing.org/t/image-processing-for-loop/39291)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 1\
**Last updated:** [October 16, 2022, 7:24am UTC](https://discourse.processing.org/t/image-processing-for-loop/39291 "2022-10-16T07:24:00Z")

</div>

how to change following for loop code, since i want to limit tracking area within the image captured by camera thank you import processing.video.\*; PShader colorFinder, colorPosShader; PGraphics overlay, posBuffer; // V…

---

## [Calculate distance between parameters and target image](https://discourse.processing.org/t/calculate-distance-between-parameters-and-target-image/39270)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 4\
**Last updated:** [October 16, 2022, 6:43am UTC](https://discourse.processing.org/t/calculate-distance-between-parameters-and-target-image/39270 "2022-10-16T06:43:43Z")

</div>

how to calculate distance between fixed parameter and target image/pixel. hi forum. following code does color recognition and find the average position and draw circle on it and able to find if the target (averageX and …

---

## [How do I create a 4 frame destructible wall sequence?](https://discourse.processing.org/t/how-do-i-create-a-4-frame-destructible-wall-sequence/39284)

<div class="topic-metadata">

**Author:** [@Marfmamow](https://discourse.processing.org/u/Marfmamow)\
**Replies:** 4\
**Last updated:** [October 16, 2022, 5:36am UTC](https://discourse.processing.org/t/how-do-i-create-a-4-frame-destructible-wall-sequence/39284 "2022-10-16T05:36:51Z")

</div>

I’m making a 2d game, and some of the walls are destructible. There are 5 sprites for that type of wall. Normal wall sprite Destroyed frame 1 Destroyed frame 2 Destroyed frame 3 Destroyed frame 4 All 5 of these sprit…

---

## [The Nature Of Code Chapter 1 Solutions](https://discourse.processing.org/t/the-nature-of-code-chapter-1-solutions/39288)

<div class="topic-metadata">

**Author:** [@felicia](https://discourse.processing.org/u/felicia)\
**Replies:** 3\
**Last updated:** [October 16, 2022, 2:00am UTC](https://discourse.processing.org/t/the-nature-of-code-chapter-1-solutions/39288 "2022-10-16T02:00:30Z")

</div>

Hi there, Does anyone know if the solutions for the examples in the book/site ‘The Nature of Code’ are available somewhere online? It seems like not everything is on Github … ? http://natureofcode.com https://github.c…

---

## [Read all files in a directory](https://discourse.processing.org/t/read-all-files-in-a-directory/39285)

<div class="topic-metadata">

**Author:** [@5x9x7x2x7x9](https://discourse.processing.org/u/5x9x7x2x7x9)\
**Replies:** 2\
**Last updated:** [October 15, 2022, 7:42pm UTC](https://discourse.processing.org/t/read-all-files-in-a-directory/39285 "2022-10-15T19:42:28Z")

</div>

How would I read all files in a directory? For example, I would have a bunch of images in a folder and would want to load them in. Or would have a bunch of levels as .txt files and would load them?

---

## [Sending windows notifications within processing](https://discourse.processing.org/t/sending-windows-notifications-within-processing/39267)

<div class="topic-metadata">

**Author:** [@Shachar](https://discourse.processing.org/u/Shachar)\
**Replies:** 12\
**Last updated:** [October 15, 2022, 4:57pm UTC](https://discourse.processing.org/t/sending-windows-notifications-within-processing/39267 "2022-10-15T16:57:51Z")

</div>

is it possible to send my own windows notifications using processing? I have tried to follow this stack overflow question but it doesn’t seem to be working in processing. I would really appreciate any help! Thanks in ad…

---

## [Webcam not working again after first run](https://discourse.processing.org/t/webcam-not-working-again-after-first-run/39278)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 2\
**Last updated:** [October 15, 2022, 3:40pm UTC](https://discourse.processing.org/t/webcam-not-working-again-after-first-run/39278 "2022-10-15T15:40:08Z")

</div>

I’m trying to use the webcam and it works the the first time I run it, after opening Processing. But after restarting it it crashes and won’t work anymore until I restart the whole Processing. This is my code: import p…

---

## [Save file with custom file name](https://discourse.processing.org/t/save-file-with-custom-file-name/39271)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 4\
**Last updated:** [October 14, 2022, 9:20pm UTC](https://discourse.processing.org/t/save-file-with-custom-file-name/39271 "2022-10-14T21:20:10Z")

</div>

I have a question. I made a GUI which can store and load a .csv. Currently I can have only one .csv file with a fixed name. I want to work with a folder and several files instead. I know of atleast one way to work with…

---

## [P2D - mouse cursor sometimes does not change](https://discourse.processing.org/t/p2d-mouse-cursor-sometimes-does-not-change/39269)

<div class="topic-metadata">

**Author:** [@Lissie](https://discourse.processing.org/u/Lissie)\
**Replies:** 1\
**Last updated:** [October 14, 2022, 3:03pm UTC](https://discourse.processing.org/t/p2d-mouse-cursor-sometimes-does-not-change/39269 "2022-10-14T15:03:45Z")

</div>

Sometimes (in P2D) my mouse cursor should change, but it doesnt bc idc

---

## [How to link console result to csv file](https://discourse.processing.org/t/how-to-link-console-result-to-csv-file/39261)

<div class="topic-metadata">

**Author:** [@Eihort](https://discourse.processing.org/u/Eihort)\
**Replies:** 1\
**Last updated:** [October 14, 2022, 11:06am UTC](https://discourse.processing.org/t/how-to-link-console-result-to-csv-file/39261 "2022-10-14T11:06:20Z")

</div>

Hello everyone, my doubt is this: I have to make a program that saves the results of pressing a button, in Csv format. For example: the program starts, and two buttons appear, true and false, I can’t understand how to s…

---

## [How to use Processing-4 in Visual Studio Code](https://discourse.processing.org/t/how-to-use-processing-4-in-visual-studio-code/37725)

<div class="topic-metadata">

**Author:** [@DrMaC](https://discourse.processing.org/u/DrMaC)\
**Replies:** 2\
**Last updated:** [October 14, 2022, 9:51am UTC](https://discourse.processing.org/t/how-to-use-processing-4-in-visual-studio-code/37725 "2022-10-14T09:51:17Z")

</div>

Hello, On windows 10 I have been trying to run Processing 4 on VSCode for a few days & getting nowhere. Processing-4 app running stand alone works OK on a test.pde file but running the same code in the Processing Langua…

---

## [Using JColorChooser in processing to change drawing line color](https://discourse.processing.org/t/using-jcolorchooser-in-processing-to-change-drawing-line-color/39253)

<div class="topic-metadata">

**Author:** [@Ideally](https://discourse.processing.org/u/Ideally)\
**Replies:** 4\
**Last updated:** [October 14, 2022, 8:57am UTC](https://discourse.processing.org/t/using-jcolorchooser-in-processing-to-change-drawing-line-color/39253 "2022-10-14T08:57:32Z")

</div>

My program only draws lines, I want to use JColorChooser to choose a line color as soon as I start drawing. can anyone give me a hand? I’ve got this so far. import java.awt.\*; import javax.swing.\*; public static col…

---

## [Test Topic for Spam filter](https://discourse.processing.org/t/test-topic-for-spam-filter/39227)

<div class="topic-metadata">

**Author:** [@mnse](https://discourse.processing.org/u/mnse)\
**Replies:** 0\
**Last updated:** [October 12, 2022, 1:23pm UTC](https://discourse.processing.org/t/test-topic-for-spam-filter/39227 "2022-10-12T13:23:55Z")

</div>

please format code with \</\> button \* homework policy \* asking questions No issue here. Only for testing. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna …

---

## [Can I create new class which is not a inner class but still with the ability to draw shape?](https://discourse.processing.org/t/can-i-create-new-class-which-is-not-a-inner-class-but-still-with-the-ability-to-draw-shape/39244)

<div class="topic-metadata">

**Author:** [@Malloc](https://discourse.processing.org/u/Malloc)\
**Replies:** 5\
**Last updated:** [October 14, 2022, 5:07am UTC](https://discourse.processing.org/t/can-i-create-new-class-which-is-not-a-inner-class-but-still-with-the-ability-to-draw-shape/39244 "2022-10-14T05:07:56Z")

</div>

If we create many class with different function, but all need to draw their shapes. How can we split the new class from the one extends PApplet and still keep the ability to call it’s build in methods? It’s too long to …

---

## [P4 & Monterey “could not find Java runtime environment”](https://discourse.processing.org/t/p4-monterey-could-not-find-java-runtime-environment/37277)

<div class="topic-metadata">

**Author:** [@bee](https://discourse.processing.org/u/bee)\
**Replies:** 1\
**Last updated:** [October 14, 2022, 1:24am UTC](https://discourse.processing.org/t/p4-monterey-could-not-find-java-runtime-environment/37277 "2022-10-14T01:24:48Z")

</div>

2017 MacBook, Monterey Processing 4 won’t start, error: could not find Java runtime environment downloaded and installed Java, still same error.

---

## [How to create a custom window](https://discourse.processing.org/t/how-to-create-a-custom-window/39254)

<div class="topic-metadata">

**Author:** [@5x9x7x2x7x9](https://discourse.processing.org/u/5x9x7x2x7x9)\
**Replies:** 2\
**Last updated:** [October 13, 2022, 9:58pm UTC](https://discourse.processing.org/t/how-to-create-a-custom-window/39254 "2022-10-13T21:58:06Z")

</div>

Hello, I’ve been wondering how you could create a second window You have the main window which shows the game and then you have the second window with buttons you can press to move the character and do actions

---

## [Hey, i would like to execute a window that has no x minimise and so no buttons on top](https://discourse.processing.org/t/hey-i-would-like-to-execute-a-window-that-has-no-x-minimise-and-so-no-buttons-on-top/39240)

<div class="topic-metadata">

**Author:** [@Lissie](https://discourse.processing.org/u/Lissie)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 12:39pm UTC](https://discourse.processing.org/t/hey-i-would-like-to-execute-a-window-that-has-no-x-minimise-and-so-no-buttons-on-top/39240 "2022-10-13T12:39:25Z")

</div>

I would like to have a window when i start a programm,that closes after like 10 seconds without any exit store down and minimise buttons

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

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