# Processing

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

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

**Page:** 329

---

## [\[imageLoad()\] disapear when i change size()](https://discourse.processing.org/t/imageload-disapear-when-i-change-size/7702)

<div class="topic-metadata">

**Author:** [@bMan](https://discourse.processing.org/u/bMan)\
**Replies:** 4\
**Last updated:** [January 22, 2019, 12:41am UTC](https://discourse.processing.org/t/imageload-disapear-when-i-change-size/7702 "2019-01-22T00:41:42Z")

</div>

Hi, guys! I’m super new here. I need some help :slight\_smile: I added a image with resolution for example 600x400, and set the size(600,400). Its perfectly works However, When i change size to another value for examp…

---

## [Exporting application and removing the source folder](https://discourse.processing.org/t/exporting-application-and-removing-the-source-folder/7524)

<div class="topic-metadata">

**Author:** [@Kochtopf](https://discourse.processing.org/u/Kochtopf)\
**Replies:** 2\
**Last updated:** [January 22, 2019, 12:23am UTC](https://discourse.processing.org/t/exporting-application-and-removing-the-source-folder/7524 "2019-01-22T00:23:12Z")

</div>

I have problems with exporting my sketch with Export Application option. When I export it I get 2 folders ( for 32bit and 64bit version) and if I click on 32bit version and run my .exe file everything works fine. But if …

---

## [HTML SVG Loading](https://discourse.processing.org/t/html-svg-loading/7531)

<div class="topic-metadata">

**Author:** [@Thermacon](https://discourse.processing.org/u/Thermacon)\
**Replies:** 5\
**Last updated:** [January 21, 2019, 11:43pm UTC](https://discourse.processing.org/t/html-svg-loading/7531 "2019-01-21T23:43:19Z")

</div>

I’m not really sure how to explain this, but I’ll give it a shot. I have a URL that has a SVG file on it, and want to load it in and display it in my project. Something like: PShape costume; costume = loadShape("https…

---

## [Fill colors not blending on triangle strip object](https://discourse.processing.org/t/fill-colors-not-blending-on-triangle-strip-object/7565)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 3\
**Last updated:** [January 21, 2019, 11:28pm UTC](https://discourse.processing.org/t/fill-colors-not-blending-on-triangle-strip-object/7565 "2019-01-21T23:28:05Z")

</div>

In order to draw multiple rows of triangle strips (for terrain), either they need to be looped, in which case it glitches by drawing a line from the end of one row to the beginning of the next, or begin shape needs to be…

---

## [How should i begin with color detection in my maze game](https://discourse.processing.org/t/how-should-i-begin-with-color-detection-in-my-maze-game/7713)

<div class="topic-metadata">

**Author:** [@Nolan](https://discourse.processing.org/u/Nolan)\
**Replies:** 2\
**Last updated:** [January 21, 2019, 10:52pm UTC](https://discourse.processing.org/t/how-should-i-begin-with-color-detection-in-my-maze-game/7713 "2019-01-21T22:52:51Z")

</div>

PLZ help me i just started with codeing

---

## [How to limit a shape inside a rect?](https://discourse.processing.org/t/how-to-limit-a-shape-inside-a-rect/7586)

<div class="topic-metadata">

**Author:** [@leochk](https://discourse.processing.org/u/leochk)\
**Replies:** 4\
**Last updated:** [January 21, 2019, 7:37pm UTC](https://discourse.processing.org/t/how-to-limit-a-shape-inside-a-rect/7586 "2019-01-21T19:37:10Z")

</div>

Hi guys, I’m currently working on a personal project. Basically, I have a Voronoi map and I plan to create a GUI: whenever the user clicks on a voronoi polygon, a window appears and show its informations (height, moistur…

---

## [Problems with OSC and Pure Data](https://discourse.processing.org/t/problems-with-osc-and-pure-data/7614)

<div class="topic-metadata">

**Author:** [@julibla](https://discourse.processing.org/u/julibla)\
**Replies:** 1\
**Last updated:** [January 21, 2019, 7:20pm UTC](https://discourse.processing.org/t/problems-with-osc-and-pure-data/7614 "2019-01-21T19:20:25Z")

</div>

Hi guys! i am trying to connect Pure Data and Processing by OSC. Yesterday when i did the conection between the two programs it was succesfull. But today, i get this problem: i am working with the port 11112, If i open …

---

## [Help with some loops and image processing](https://discourse.processing.org/t/help-with-some-loops-and-image-processing/7541)

<div class="topic-metadata">

**Author:** [@annaschimpf](https://discourse.processing.org/u/annaschimpf)\
**Replies:** 2\
**Last updated:** [January 17, 2019, 7:14pm UTC](https://discourse.processing.org/t/help-with-some-loops-and-image-processing/7541 "2019-01-17T19:14:04Z")

</div>

Hello there, I am pretty new to processing and what I am going to ask is probably a little stupid but I just can´t get on without help. I want to write a program to do the following: Take a lot of pictures “cut out” …

---

## [Help for creating own library (add java file to sketch)](https://discourse.processing.org/t/help-for-creating-own-library-add-java-file-to-sketch/7130)

<div class="topic-metadata">

**Author:** [@Wolfgang](https://discourse.processing.org/u/Wolfgang)\
**Replies:** 6\
**Last updated:** [January 21, 2019, 5:46pm UTC](https://discourse.processing.org/t/help-for-creating-own-library-add-java-file-to-sketch/7130 "2019-01-21T17:46:03Z")

</div>

Hi erveryone, i created a class called Adressbook. I copy the class inside the sketchbook. created a new file and entered import Adressbook; – no library found for Addressbook — I got as error. What do I have to do t…

---

## [How to calculate two different mean values with the same function](https://discourse.processing.org/t/how-to-calculate-two-different-mean-values-with-the-same-function/7647)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 7\
**Last updated:** [January 21, 2019, 4:31pm UTC](https://discourse.processing.org/t/how-to-calculate-two-different-mean-values-with-the-same-function/7647 "2019-01-21T16:31:49Z")

</div>

Hello, I’m a bit in a problem. I’m supposed to get this function to work for the followings array, but I only get it to work it one. Perhaps I’m not thinking right, or it’s easier than I’m trying to it to be. Anyone tha…

---

## [Passing arguments to exported application](https://discourse.processing.org/t/passing-arguments-to-exported-application/7097)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 4\
**Last updated:** [January 21, 2019, 2:14pm UTC](https://discourse.processing.org/t/passing-arguments-to-exported-application/7097 "2019-01-21T14:14:00Z")

</div>

How can I pass arguments to an exported application on OSX? This is my sketch: void setup() { size(500, 500); } void draw() { background(0); fill(255); if (args != null) { for (String s : args) { tex…

---

## [Make array length random](https://discourse.processing.org/t/make-array-length-random/7680)

<div class="topic-metadata">

**Author:** [@squirrel1969](https://discourse.processing.org/u/squirrel1969)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 8:33pm UTC](https://discourse.processing.org/t/make-array-length-random/7680 "2019-01-20T20:33:50Z")

</div>

I have these worm things which are just a bunch of circles in a line that are falling down the screen and want to make it so that every time they go off screen they reset back to zero with a different amount of circles, …

---

## [The screen is updating after while loop is completed ? need help](https://discourse.processing.org/t/the-screen-is-updating-after-while-loop-is-completed-need-help/7119)

<div class="topic-metadata">

**Author:** [@liceroy](https://discourse.processing.org/u/liceroy)\
**Replies:** 4\
**Last updated:** [January 20, 2019, 7:36pm UTC](https://discourse.processing.org/t/the-screen-is-updating-after-while-loop-is-completed-need-help/7119 "2019-01-20T19:36:28Z")

</div>

I am using " delay() " inside while loop and making some changes in the screen. I was hoping the changes will be visiable since I am using delay(1000) in every while loop but only the final result is printed on screen …

---

## [Virtual dice roll around many times then stop](https://discourse.processing.org/t/virtual-dice-roll-around-many-times-then-stop/7608)

<div class="topic-metadata">

**Author:** [@Captainsparkles](https://discourse.processing.org/u/Captainsparkles)\
**Replies:** 18\
**Last updated:** [January 20, 2019, 5:34pm UTC](https://discourse.processing.org/t/virtual-dice-roll-around-many-times-then-stop/7608 "2019-01-20T17:34:08Z")

</div>

I can’t figure out the problem as when you press the button it draws 6 circles, but the main point of the program is to make the dice roll around like 7 times slower each time, and then stopping on any side like an actua…

---

## [Weird shifting behavior inside ArrayList - is it a bug?](https://discourse.processing.org/t/weird-shifting-behavior-inside-arraylist-is-it-a-bug/7668)

<div class="topic-metadata">

**Author:** [@FirstFloop](https://discourse.processing.org/u/FirstFloop)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 11:52am UTC](https://discourse.processing.org/t/weird-shifting-behavior-inside-arraylist-is-it-a-bug/7668 "2019-01-20T11:52:47Z")

</div>

To start this question off, here’s the code in question: ArrayList\<Integer\> x = new ArrayList\<Integer\>(); ArrayList\<Integer\> y = new ArrayList\<Integer\>(); Integer posX; Integer posY; Integer posXR; Integer posYR; Intege…

---

## [I need help with bullet direction](https://discourse.processing.org/t/i-need-help-with-bullet-direction/7666)

<div class="topic-metadata">

**Author:** [@vGlint](https://discourse.processing.org/u/vGlint)\
**Replies:** 2\
**Last updated:** [January 20, 2019, 8:38am UTC](https://discourse.processing.org/t/i-need-help-with-bullet-direction/7666 "2019-01-20T08:38:22Z")

</div>

i have made a simple project where a have a player that shoots. i have coded an aimer that gets bigger when you help the mouse down. i need help so the bullets will pick a random direction in the size of my aimer. here i…

---

## [Change color with keyPressed and update color](https://discourse.processing.org/t/change-color-with-keypressed-and-update-color/7645)

<div class="topic-metadata">

**Author:** [@zinni](https://discourse.processing.org/u/zinni)\
**Replies:** 10\
**Last updated:** [January 20, 2019, 3:25am UTC](https://discourse.processing.org/t/change-color-with-keypressed-and-update-color/7645 "2019-01-20T03:25:39Z")

</div>

I just take this example of a particle system: \[https://processing.org/examples/simpleparticlesystem.html\] and made some changes. My goal is to change the colors with keyPressed. With my code the variables of r1,b1,g1…

---

## [Am I dumb or is this a bug?](https://discourse.processing.org/t/am-i-dumb-or-is-this-a-bug/7648)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 7\
**Last updated:** [January 19, 2019, 10:44pm UTC](https://discourse.processing.org/t/am-i-dumb-or-is-this-a-bug/7648 "2019-01-19T22:44:29Z")

</div>

void setup() { } void draw() { fill((frameCount \< 60) ? random(255) : color(255, 0, 0)); rect(0, 0, width, height); fill(color(255, 0, 0)); text("a", width/2, height/2); } By all means of logic the screen shou…

---

## [Multiple particle systems](https://discourse.processing.org/t/multiple-particle-systems/7650)

<div class="topic-metadata">

**Author:** [@larppan](https://discourse.processing.org/u/larppan)\
**Replies:** 4\
**Last updated:** [January 19, 2019, 5:41pm UTC](https://discourse.processing.org/t/multiple-particle-systems/7650 "2019-01-19T17:41:45Z")

</div>

Hi guys! I´m writing code for a Uni project and I stumbled on a problem. Basically I´m making an interactive installation and I have a kinect with which I will track hands and create these particle effects. My problem …

---

## [Problem loading random images and interactivity](https://discourse.processing.org/t/problem-loading-random-images-and-interactivity/7637)

<div class="topic-metadata">

**Author:** [@srushton18](https://discourse.processing.org/u/srushton18)\
**Replies:** 7\
**Last updated:** [January 19, 2019, 1:35pm UTC](https://discourse.processing.org/t/problem-loading-random-images-and-interactivity/7637 "2019-01-19T13:35:31Z")

</div>

Hello! I’m new to Processing but have experience with other bits and bats of coding, but feel I’m really banging my head against the wall here. All I want is to draw a canvas that loads a random background image and ano…

---

## [Erase part of PGraphics image to transparent](https://discourse.processing.org/t/erase-part-of-pgraphics-image-to-transparent/7605)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 4\
**Last updated:** [January 19, 2019, 12:01pm UTC](https://discourse.processing.org/t/erase-part-of-pgraphics-image-to-transparent/7605 "2019-01-19T12:01:54Z")

</div>

Any help cutting/cropping out part of a PGraphics image, leaving behind a transparent rectangle? I tried the code below, but it just adds a transparent rectangle on top (no visual change to the underlying image). I did…

---

## [Set present background colour](https://discourse.processing.org/t/set-present-background-colour/6957)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 4\
**Last updated:** [January 18, 2019, 3:07pm UTC](https://discourse.processing.org/t/set-present-background-colour/6957 "2019-01-18T15:07:26Z")

</div>

I’m trying to set the present background colour of a sketch’s second window launched through PApplet.runSketch(), however nothing I’ve tried works. I don’t want to set processing’s background preference for all sketches…

---

## [Saving into internal memory](https://discourse.processing.org/t/saving-into-internal-memory/7611)

<div class="topic-metadata">

**Author:** [@ArduinoKer](https://discourse.processing.org/u/ArduinoKer)\
**Replies:** 1\
**Last updated:** [January 18, 2019, 12:01pm UTC](https://discourse.processing.org/t/saving-into-internal-memory/7611 "2019-01-18T12:01:13Z")

</div>

Hello everyone, i have a coding question… I am currently doing a project about positioning. I am using the Processing application to display the movements and the coordinates of my device, also i’ve added some extra fea…

---

## [Why cant I run a camera at 60FPS?](https://discourse.processing.org/t/why-cant-i-run-a-camera-at-60fps/7569)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 2\
**Last updated:** [January 18, 2019, 6:48am UTC](https://discourse.processing.org/t/why-cant-i-run-a-camera-at-60fps/7569 "2019-01-18T06:48:46Z")

</div>

I have this application that requires fast video processing, there are items in motion on a belt. So I got a camera that goes up to 120 FPS. It also does 30 and 60 FPS\> I am able to run it well at 30FPS or less. But…

---

## [Including shared pde files across projects](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701)

<div class="topic-metadata">

**Author:** [@malcolm\_gc](https://discourse.processing.org/u/malcolm_gc)\
**Replies:** 55\
**Last updated:** [January 17, 2019, 11:15pm UTC](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701 "2019-01-17T23:15:26Z")

</div>

Honey gave me an answer to my question How can I make an include file for my scripts - SOLVED THANKS which to paraphrase said stick your variables in a file called file.pde in the same directory and it is included automa…

---

## [How to unplug a method attached to a controller](https://discourse.processing.org/t/how-to-unplug-a-method-attached-to-a-controller/7122)

<div class="topic-metadata">

**Author:** [@robotijo](https://discourse.processing.org/u/robotijo)\
**Replies:** 2\
**Last updated:** [January 17, 2019, 10:10pm UTC](https://discourse.processing.org/t/how-to-unplug-a-method-attached-to-a-controller/7122 "2019-01-17T22:10:07Z")

</div>

Hi! I’m using the Game Control Plus library to configure a game pad to control a Processing GUI. It’s working good and I’m happy with it but I’m stuck now. I would like to change the behavior of the game pad buttons pre…

---

## [HeadTracking Negative Space](https://discourse.processing.org/t/headtracking-negative-space/4620)

<div class="topic-metadata">

**Author:** [@Bianyx](https://discourse.processing.org/u/Bianyx)\
**Replies:** 5\
**Last updated:** [January 17, 2019, 9:12pm UTC](https://discourse.processing.org/t/headtracking-negative-space/4620 "2019-01-17T21:12:34Z")

</div>

Hey Guys, So I am prototyping on processing. The effect I would want to achieve is same as the https://www.youtube.com/watch?v=Jd3-eiid-Uw. Another reference I am using openCV for…

---

## [Problem with overlapping balls](https://discourse.processing.org/t/problem-with-overlapping-balls/7588)

<div class="topic-metadata">

**Author:** [@bjente](https://discourse.processing.org/u/bjente)\
**Replies:** 6\
**Last updated:** [January 17, 2019, 12:30pm UTC](https://discourse.processing.org/t/problem-with-overlapping-balls/7588 "2019-01-17T12:30:10Z")

</div>

Hello all, I’m kinda new to processing and I’m doing some exercises to get the hang of it. Right now I’m writing a little script which draws balls to the screen. If the balls overlap, I want the color of the current bal…

---

## [Mutator not mutating](https://discourse.processing.org/t/mutator-not-mutating/7553)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 2\
**Last updated:** [January 17, 2019, 10:27am UTC](https://discourse.processing.org/t/mutator-not-mutating/7553 "2019-01-17T10:27:32Z")

</div>

Howdy! I wrote this program to mutate colors on a grid, where there’s a probability of an offspring grid inheriting each square from its parent grid, or mutating it into a randomized color. …but I cannot get it to work…

---

## [Where are the Java options set](https://discourse.processing.org/t/where-are-the-java-options-set/7076)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 3\
**Last updated:** [January 17, 2019, 7:16am UTC](https://discourse.processing.org/t/where-are-the-java-options-set/7076 "2019-01-17T07:16:33Z")

</div>

Where are the java options set, for example the option to enable assertions? Normally assertion checking is off by default in java, but in Processing it is on by default. At the moment I’m using a library that has some…

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

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