# Processing

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

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

**Page:** 109

---

## [Processing quiz](https://discourse.processing.org/t/processing-quiz/32784)

<div class="topic-metadata">

**Author:** [@Rayenblue](https://discourse.processing.org/u/Rayenblue)\
**Replies:** 11\
**Last updated:** [October 17, 2021, 3:10pm UTC](https://discourse.processing.org/t/processing-quiz/32784 "2021-10-17T15:10:26Z")

</div>

Hello Everyone ! I have a project with my university, i have to create à quizz which you can chose the answer by using Arduino button. For the moment i can’t send the stat of my button to processing and i dont know why. …

---

## [Detect keypress while in a loop](https://discourse.processing.org/t/detect-keypress-while-in-a-loop/32850)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 6:00pm UTC](https://discourse.processing.org/t/detect-keypress-while-in-a-loop/32850 "2021-10-17T18:00:14Z")

</div>

I am making a program to make music. However the playfunction has the problem, that I can’t interrupt it. So I wanted to implement a key to abort the play function. Here is a example to show the problem. It also has the…

---

## [Feedback examples](https://discourse.processing.org/t/feedback-examples/32843)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 4\
**Last updated:** [October 17, 2021, 5:12pm UTC](https://discourse.processing.org/t/feedback-examples/32843 "2021-10-17T17:12:56Z")

</div>

Hi there - I’m interested in experimenting a bit with feedback in Processing. Is Processing good for video feedback? I haven’t seen any examples and it’s been tough to figure out how to approach it. I’m curious if I’m …

---

## [Applying Reverb to Oscillator](https://discourse.processing.org/t/applying-reverb-to-oscillator/32862)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 5:37am UTC](https://discourse.processing.org/t/applying-reverb-to-oscillator/32862 "2021-10-17T05:37:32Z")

</div>

I am trying to make the sound made by the Oscillator sound less annoying and one idea woulb be adding a dampaning effect. I currently use this code: import processing.sound.\*; void setup() { SinOsc s=new SinOsc(this)…

---

## [Shader texture sample wrap on x axis?](https://discourse.processing.org/t/shader-texture-sample-wrap-on-x-axis/32717)

<div class="topic-metadata">

**Author:** [@mercurus](https://discourse.processing.org/u/mercurus)\
**Replies:** 1\
**Last updated:** [October 16, 2021, 11:58pm UTC](https://discourse.processing.org/t/shader-texture-sample-wrap-on-x-axis/32717 "2021-10-16T23:58:08Z")

</div>

I’ve created a shader that computes/draws a Conway’s Game of Life. It takes in an image (CGoL data encoded as pixels), reads the current state, and draws the next state. And it works fine… except that I want the pixels/c…

---

## [Processing errors with macOS Catalina](https://discourse.processing.org/t/processing-errors-with-macos-catalina/32865)

<div class="topic-metadata">

**Author:** [@sacrisenka](https://discourse.processing.org/u/sacrisenka)\
**Replies:** 1\
**Last updated:** [October 16, 2021, 4:40pm UTC](https://discourse.processing.org/t/processing-errors-with-macos-catalina/32865 "2021-10-16T16:40:17Z")

</div>

Good afternoon, I have problems to run Processing at a MacOs system with Catalina. The program returns errors when you send simple sentences as print(“Hello World!”); It returns syntax errors. ¿Do you know why occur…

---

## [Why this does not work?](https://discourse.processing.org/t/why-this-does-not-work/32786)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 3\
**Last updated:** [October 16, 2021, 5:14pm UTC](https://discourse.processing.org/t/why-this-does-not-work/32786 "2021-10-16T17:14:45Z")

</div>

I’m trying to visualize openstreetmap data but when I go to render it to the screen, if I change the noFill and stroke it wont render anything. The weird thing is that it works perfectly with those two lines commented. M…

---

## [Looking forward to JDK17](https://discourse.processing.org/t/looking-forward-to-jdk17/32867)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 16, 2021, 4:08pm UTC](https://discourse.processing.org/t/looking-forward-to-jdk17/32867 "2021-10-16T16:08:41Z")

</div>

Recently I’ve been looking at some cool features brought in for JDK14 that are now solid since JDK17. Particularly useful for my ruby-processing project is Instance Of Pattern Matching, but the switch expression could b…

---

## [Rotate a PShape](https://discourse.processing.org/t/rotate-a-pshape/32859)

<div class="topic-metadata">

**Author:** [@zack10](https://discourse.processing.org/u/zack10)\
**Replies:** 4\
**Last updated:** [October 16, 2021, 2:45pm UTC](https://discourse.processing.org/t/rotate-a-pshape/32859 "2021-10-16T14:45:53Z")

</div>

void setup() { size(600,600,P3D); smooth(); background(0); cam = new QueasyCam(this); cam.position.x = 3; cam.position.y = -20; cam.position.z = 0; obj = loadShape("mysterious\_object.obj"); } void draw() …

---

## [Help with complex homework(Solved)](https://discourse.processing.org/t/help-with-complex-homework-solved/32837)

<div class="topic-metadata">

**Author:** [@Onipunch777](https://discourse.processing.org/u/Onipunch777)\
**Replies:** 26\
**Last updated:** [October 16, 2021, 11:23am UTC](https://discourse.processing.org/t/help-with-complex-homework-solved/32837 "2021-10-16T11:23:19Z")

</div>

Hi everyone, I would really appreciate the help trying to figure out this code. I have been working at it for hours and I haven’t gotten any progress on it at all. I hope that you are able to help in any kind of way. T…

---

## [How can I make a Boolean button, where I can click anywhere and an additional overlay will appear on top of my pattern?](https://discourse.processing.org/t/how-can-i-make-a-boolean-button-where-i-can-click-anywhere-and-an-additional-overlay-will-appear-on-top-of-my-pattern/32821)

<div class="topic-metadata">

**Author:** [@Anjiyuuki](https://discourse.processing.org/u/Anjiyuuki)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 6:05pm UTC](https://discourse.processing.org/t/how-can-i-make-a-boolean-button-where-i-can-click-anywhere-and-an-additional-overlay-will-appear-on-top-of-my-pattern/32821 "2021-10-15T18:05:40Z")

</div>

int x= 0; int y= 0; int ov =60; boolean b= true; void setup(){ size(500,500); if (b){ for (x= 0; x\< width; x= x+ov) { for (y=0; y\< height; y=y+ov){ fill(random(255), random(0), random(0),50); ellipse( x,y, ov,…

---

## [keyPressed(event) usage](https://discourse.processing.org/t/keypressed-event-usage/32847)

<div class="topic-metadata">

**Author:** [@mhamilt](https://discourse.processing.org/u/mhamilt)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 6:20pm UTC](https://discourse.processing.org/t/keypressed-event-usage/32847 "2021-10-15T18:20:46Z")

</div>

In the keyPressed documentation one of the usages listed under Syntax is keyPressed(event). My expectation is that you could write the function as keyPressed(Event event), but that doesn’t seem to be correct. I anyone …

---

## [JRubyArt Help Required](https://discourse.processing.org/t/jrubyart-help-required/32849)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 3:26pm UTC](https://discourse.processing.org/t/jrubyart-help-required/32849 "2021-10-15T15:26:27Z")

</div>

I have just released a new version of JRubyArt as a rubygem, it is confirmed as working on Debian and ArchLinux with OpenJDK 11 and OpenJDK17, it is intended to work with JRuby-9.3.1.0 (but also works with JRuby-9.3.0.0 …

---

## [Help with if statements](https://discourse.processing.org/t/help-with-if-statements/32839)

<div class="topic-metadata">

**Author:** [@Onipunch777](https://discourse.processing.org/u/Onipunch777)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 7:20am UTC](https://discourse.processing.org/t/help-with-if-statements/32839 "2021-10-15T07:20:29Z")

</div>

Hello, I was hoping to get step-by-step help to get this homework assignment done. My teacher is asking the class to have the processing code print out odds numbers between 100 to 200 that can not be divided by 3. From w…

---

## [How to create a clickable list of files?](https://discourse.processing.org/t/how-to-create-a-clickable-list-of-files/32797)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 3:50am UTC](https://discourse.processing.org/t/how-to-create-a-clickable-list-of-files/32797 "2021-10-15T03:50:19Z")

</div>

I want to allow user to select files from a fixed directory. I don’t want user to navigate to other places. How can I make a list of files where user can tap on a file to select? The list should be dynamic and can be up…

---

## [Color changing flower screen saver](https://discourse.processing.org/t/color-changing-flower-screen-saver/32824)

<div class="topic-metadata">

**Author:** [@williammannisto](https://discourse.processing.org/u/williammannisto)\
**Replies:** 4\
**Last updated:** [October 14, 2021, 3:11pm UTC](https://discourse.processing.org/t/color-changing-flower-screen-saver/32824 "2021-10-14T15:11:46Z")

</div>

im trying to make a color changing flower screen saver for my mom as a assignment i have to do but im using ellipses and cant figure out how to make the ellipse rotate more than once in the exact same spot it was in last…

---

## [Guys how to make random rainbow colors in this script](https://discourse.processing.org/t/guys-how-to-make-random-rainbow-colors-in-this-script/32801)

<div class="topic-metadata">

**Author:** [@desciato](https://discourse.processing.org/u/desciato)\
**Replies:** 6\
**Last updated:** [October 14, 2021, 3:00pm UTC](https://discourse.processing.org/t/guys-how-to-make-random-rainbow-colors-in-this-script/32801 "2021-10-14T15:00:16Z")

</div>

Hello Guys can anyone help me how to make random rainbow colors in this script const margin = 25; function setup() { createCanvas(300, 400); noLoop(); strokeWeight(2); } function draw() { background(0); s…

---

## [Is possible to know if my mouse is on an svg?](https://discourse.processing.org/t/is-possible-to-know-if-my-mouse-is-on-an-svg/32825)

<div class="topic-metadata">

**Author:** [@TomLeVeritable](https://discourse.processing.org/u/TomLeVeritable)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 2:48pm UTC](https://discourse.processing.org/t/is-possible-to-know-if-my-mouse-is-on-an-svg/32825 "2021-10-14T14:48:37Z")

</div>

Hello I would just like to know if it is possible to know when the mouse is on an SVG? For example as above is it possible to know when our mouse is over Michigan and when it is over Ohio, And how do we do the detection…

---

## [Question about creating a particle text animation](https://discourse.processing.org/t/question-about-creating-a-particle-text-animation/32743)

<div class="topic-metadata">

**Author:** [@Rindoom](https://discourse.processing.org/u/Rindoom)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 3:12am UTC](https://discourse.processing.org/t/question-about-creating-a-particle-text-animation/32743 "2021-10-14T03:12:25Z")

</div>

Hey guys! I recently created a font for my typography class and I was wondering how can I make my text consisting of smaller squarish particles/metaballs, just for the sake of better visual presentation. I am particular…

---

## [Would be very grateful for some help with this conversion!](https://discourse.processing.org/t/would-be-very-grateful-for-some-help-with-this-conversion/32815)

<div class="topic-metadata">

**Author:** [@YourLocalGrandma](https://discourse.processing.org/u/YourLocalGrandma)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 1:05am UTC](https://discourse.processing.org/t/would-be-very-grateful-for-some-help-with-this-conversion/32815 "2021-10-14T01:05:18Z")

</div>

Hi guys, I am trying to get this effect going in .pde that I saw in .js, and have been struggling big time in making it work. I am pretty new at this so any help would be very much appreciated! Thanks .js code var img;…

---

## [CS 1335 Processing java script](https://discourse.processing.org/t/cs-1335-processing-java-script/32769)

<div class="topic-metadata">

**Author:** [@amna24688](https://discourse.processing.org/u/amna24688)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 3:52am UTC](https://discourse.processing.org/t/cs-1335-processing-java-script/32769 "2021-10-12T03:52:26Z")

</div>

Write code for the flip tile game; here is how the game is played : Basically there are 2 images… To begin with, one of the 2 images are randomly displayed in each cell of the grid. The user clicks on a cell to toggle…

---

## [Guys any Solution how to save the work?](https://discourse.processing.org/t/guys-any-solution-how-to-save-the-work/32812)

<div class="topic-metadata">

**Author:** [@desciato](https://discourse.processing.org/u/desciato)\
**Replies:** 2\
**Last updated:** [October 13, 2021, 10:19pm UTC](https://discourse.processing.org/t/guys-any-solution-how-to-save-the-work/32812 "2021-10-13T22:19:20Z")

</div>

float g = random(256); float b = random(256); float cChange = 2; float distanceChange = .001; for (float angle = 0; angle \< 360\*100; angle += .07) { float x = width/5 + cos(radians(angle))\*distance; float y = heigh…

---

## [I need help to spawn multiple objects at random moments](https://discourse.processing.org/t/i-need-help-to-spawn-multiple-objects-at-random-moments/32796)

<div class="topic-metadata">

**Author:** [@YP1702](https://discourse.processing.org/u/YP1702)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 7:45pm UTC](https://discourse.processing.org/t/i-need-help-to-spawn-multiple-objects-at-random-moments/32796 "2021-10-13T19:45:51Z")

</div>

int grid = 15; Player player; Enemy enemy; float posx; float posy; void setup(){ size(1200,800); player = new Player(); frameRate(20); enemy = new Enemy(); } void draw(){ background(0); player.updat…

---

## [Processing 4.0b2 flashes splashscreen for a fraction of a second and exits; no error message, on Linux](https://discourse.processing.org/t/processing-4-0b2-flashes-splashscreen-for-a-fraction-of-a-second-and-exits-no-error-message-on-linux/32776)

<div class="topic-metadata">

**Author:** [@michaelshiloh](https://discourse.processing.org/u/michaelshiloh)\
**Replies:** 6\
**Last updated:** [October 13, 2021, 2:51pm UTC](https://discourse.processing.org/t/processing-4-0b2-flashes-splashscreen-for-a-fraction-of-a-second-and-exits-no-error-message-on-linux/32776 "2021-10-13T14:51:37Z")

</div>

Hello, I’ve been using (and teaching) Processing for years. I’ve been using Processing 4 pretty much since it came out. This afternoon I was suddenly unable to start Processing. There are no error messages, it simply ex…

---

## [A simple SVG file display incompetely](https://discourse.processing.org/t/a-simple-svg-file-display-incompetely/32771)

<div class="topic-metadata">

**Author:** [@Load](https://discourse.processing.org/u/Load)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 6:11pm UTC](https://discourse.processing.org/t/a-simple-svg-file-display-incompetely/32771 "2021-10-12T18:11:51Z")

</div>

Hello everyone! I am trying to write a simple SVG file which is a rounded rectangle,I use the PShape method to switch the SVG file to a PShape Object. Through the SVG can be displayed by Edge browser,in the Processing…

---

## [How to display files column by column?](https://discourse.processing.org/t/how-to-display-files-column-by-column/18299)

<div class="topic-metadata">

**Author:** [@littleprince84](https://discourse.processing.org/u/littleprince84)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 4:01pm UTC](https://discourse.processing.org/t/how-to-display-files-column-by-column/18299 "2021-10-12T16:01:35Z")

</div>

Hi, I’m very beginner. I really need your help. (Eventhough I used a library, the question is not about the library itself. The main question is a code regarding how to read files (column by column)and display it in seq…

---

## [Marker error in processing IDE 4.0b1](https://discourse.processing.org/t/marker-error-in-processing-ide-4-0b1/32765)

<div class="topic-metadata">

**Author:** [@talfred](https://discourse.processing.org/u/talfred)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 1:02am UTC](https://discourse.processing.org/t/marker-error-in-processing-ide-4-0b1/32765 "2021-10-12T01:02:21Z")

</div>

On my computer (Windows 10) there’s an error in the IDE: when writing code, the marker shows up 2 - 3 positions to the right of where it actually is. This makes it hard to write code in the new IDE. No problems like this…

---

## [Trying to wrangle serial data from an Arduino](https://discourse.processing.org/t/trying-to-wrangle-serial-data-from-an-arduino/32720)

<div class="topic-metadata">

**Author:** [@pl4sma2389](https://discourse.processing.org/u/pl4sma2389)\
**Replies:** 17\
**Last updated:** [October 12, 2021, 12:13am UTC](https://discourse.processing.org/t/trying-to-wrangle-serial-data-from-an-arduino/32720 "2021-10-12T00:13:55Z")

</div>

Hello all, I’ve been working on a project for the last few days. It’s a very simple LiDAR scanner turret. It scans from right to left, steps up, and then scans right to left again, repeating this for a set amount of sca…

---

## [Solution: Remove duplicates from ArrayList](https://discourse.processing.org/t/solution-remove-duplicates-from-arraylist/32742)

<div class="topic-metadata">

**Author:** [@ubuntu-in-a-nutshell](https://discourse.processing.org/u/ubuntu-in-a-nutshell)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 9:59pm UTC](https://discourse.processing.org/t/solution-remove-duplicates-from-arraylist/32742 "2021-10-11T21:59:05Z")

</div>

I have found a solution to removing duplicates from ArrayList. I have built a custom function that returns an ArrayList and cleans up all duplicates. Here is my code for the custom function. ArrayList removeDuplicates(A…

---

## [How can you avoid the same outcome twice when using random()?](https://discourse.processing.org/t/how-can-you-avoid-the-same-outcome-twice-when-using-random/32760)

<div class="topic-metadata">

**Author:** [@colehodl](https://discourse.processing.org/u/colehodl)\
**Replies:** 1\
**Last updated:** [October 11, 2021, 9:27pm UTC](https://discourse.processing.org/t/how-can-you-avoid-the-same-outcome-twice-when-using-random/32760 "2021-10-11T21:27:12Z")

</div>

So I created a random profile picture generator with a bunch of attributes, basically it creates a random number generator between 1 and 75, and decides which attribute to display based on which number is randomly chosen…

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

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