# Latest

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

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

**Page:** 534

---

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

---

## [How can the following example be fully written out?](https://discourse.processing.org/t/how-can-the-following-example-be-fully-written-out/7707)

<div class="topic-metadata">

**Author:** [@anon98404100](https://discourse.processing.org/u/anon98404100)\
**Replies:** 3\
**Last updated:** [January 21, 2019, 7:18pm UTC](https://discourse.processing.org/t/how-can-the-following-example-be-fully-written-out/7707 "2019-01-21T19:18:04Z")

</div>

Slight heads-up: The following code was code from earlier in the day and doesn’t work properly, however, there is a small piece of code in there I would like to get some explanation of. Also sorry if the question is kind…

---

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

---

## [How can I use beacon? / beacon application / help me~!](https://discourse.processing.org/t/how-can-i-use-beacon-beacon-application-help-me/7693)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [January 21, 2019, 8:34am UTC](https://discourse.processing.org/t/how-can-i-use-beacon-beacon-application-help-me/7693 "2019-01-21T08:34:47Z")

</div>

How can I use beacon? Do you have anything to develop about beacon? Scan the beacon Receive beacon information Please help me if you have implemented in Pocessing of Android mode. E-mail: myksj1105@hanmail.net I wo…

---

## [Imei of an android device](https://discourse.processing.org/t/imei-of-an-android-device/7579)

<div class="topic-metadata">

**Author:** [@sonichel](https://discourse.processing.org/u/sonichel)\
**Replies:** 16\
**Last updated:** [January 21, 2019, 8:19am UTC](https://discourse.processing.org/t/imei-of-an-android-device/7579 "2019-01-21T08:19:00Z")

</div>

Dear library what do you recommend to get the imei of my android device, or any unique identifier of the device?

---

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

---

## [\[RESOLVED\] Declaring a class function and using it inside the same class?](https://discourse.processing.org/t/resolved-declaring-a-class-function-and-using-it-inside-the-same-class/7626)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 5:07pm UTC](https://discourse.processing.org/t/resolved-declaring-a-class-function-and-using-it-inside-the-same-class/7626 "2019-01-20T17:07:21Z")

</div>

def idle(self): if self.imgcount \> len(self.idle) - 1 : self.imgcount = 0 if self.face == 'RIGHT': image(self.idle\[self.imgcount\],self.vec.x,self.vec.y,self.w,self…

---

## [\[SOLVED\] Help with loadImage() from phone's gallery and internal storage](https://discourse.processing.org/t/solved-help-with-loadimage-from-phones-gallery-and-internal-storage/6468)

<div class="topic-metadata">

**Author:** [@ferrnw](https://discourse.processing.org/u/ferrnw)\
**Replies:** 7\
**Last updated:** [January 20, 2019, 4:57pm UTC](https://discourse.processing.org/t/solved-help-with-loadimage-from-phones-gallery-and-internal-storage/6468 "2019-01-20T16:57:15Z")

</div>

I was wondering if anyone knew a good way to load an image from a phone’s gallery into a PImage in a sketch. Working with an application in Android Studio. I’m trying to load an image from the photo gallery. I was using…

---

## [Processing Community Day @ Detroit](https://discourse.processing.org/t/processing-community-day-detroit/3872)

<div class="topic-metadata">

**Author:** [@goran](https://discourse.processing.org/u/goran)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 4:01pm UTC](https://discourse.processing.org/t/processing-community-day-detroit/3872 "2019-01-20T16:01:53Z")

</div>

Hi, all. I’m eager to organize something in Detroit, MI. I have Omnicorp Detroit hackspace on board (I’m a member), but I’d like to get others who are interested included too. The date hasn’t been set decided yet. If y…

---

## [Function KeyPressed](https://discourse.processing.org/t/function-keypressed/7676)

<div class="topic-metadata">

**Author:** [@Awazez](https://discourse.processing.org/u/Awazez)\
**Replies:** 4\
**Last updated:** [January 20, 2019, 2:40pm UTC](https://discourse.processing.org/t/function-keypressed/7676 "2019-01-20T14:40:54Z")

</div>

Hi ! I’m quite new in javascript and I tried to program a Flappy bird with the coding train video. I did a function named KeyPressed function KeyPressed () { if (key == "") { console.log("SPACE"); } } But it’…

---

## [Libros de Processing aplicados a la electrónica](https://discourse.processing.org/t/libros-de-processing-aplicados-a-la-electronica/7593)

<div class="topic-metadata">

**Author:** [@Dolomiti](https://discourse.processing.org/u/Dolomiti)\
**Replies:** 2\
**Last updated:** [January 20, 2019, 1:58pm UTC](https://discourse.processing.org/t/libros-de-processing-aplicados-a-la-electronica/7593 "2019-01-20T13:58:43Z")

</div>

Hola amigos me gustaría saber si hay algún libro que trate de este lenguaje,” processing” y sus aplicaciones en el campo de la electrónica y en concreto el campo comunicación “serial port”. He comprado la segunda edició…

---

## [Processing Community Day @ Copenhagen, Denmark](https://discourse.processing.org/t/processing-community-day-copenhagen-denmark/7673)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 0\
**Last updated:** [January 20, 2019, 1:36pm UTC](https://discourse.processing.org/t/processing-community-day-copenhagen-denmark/7673 "2019-01-20T13:36:58Z")

</div>

Processing Community Day Copenhagen is a free, one-day event that will bring together people of all ages to celebrate and explore art, code, and everything in between. When: February 1st from 5-9 PM. More info + sign u…

---

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

---

## [Can't use line() and loadPixels()](https://discourse.processing.org/t/cant-use-line-and-loadpixels/7620)

<div class="topic-metadata">

**Author:** [@NirDafnai](https://discourse.processing.org/u/NirDafnai)\
**Replies:** 5\
**Last updated:** [January 19, 2019, 5:16pm UTC](https://discourse.processing.org/t/cant-use-line-and-loadpixels/7620 "2019-01-19T17:16:44Z")

</div>

function setup() { let c = createCanvas(600, 600); c.parent('canvasParent'); pixelDensity(1); background(255); loadPixels(); } function mouseDragged() { if(mouseButton == LEFT) { strokeWeight(30); stroke(200,…

---

## [video.loadPixels() does not seem to work](https://discourse.processing.org/t/video-loadpixels-does-not-seem-to-work/7225)

<div class="topic-metadata">

**Author:** [@rjsan](https://discourse.processing.org/u/rjsan)\
**Replies:** 3\
**Last updated:** [January 19, 2019, 4:37pm UTC](https://discourse.processing.org/t/video-loadpixels-does-not-seem-to-work/7225 "2019-01-19T16:37:20Z")

</div>

Hi all! I did a lot of code dabbling on this video capture tutorial sometime around 2017 : https://www.youtube.com/watch?v=rNqaw8LT2ZU using p5js version v0.5.11 . All seem to work even around early 2018 but when i rev…

---

## [Disable/ignore touch completely](https://discourse.processing.org/t/disable-ignore-touch-completely/7627)

<div class="topic-metadata">

**Author:** [@derekkinsman](https://discourse.processing.org/u/derekkinsman)\
**Replies:** 2\
**Last updated:** [January 19, 2019, 3:38pm UTC](https://discourse.processing.org/t/disable-ignore-touch-completely/7627 "2019-01-19T15:38:00Z")

</div>

I’d like to have a full screen sketch, with further non-Processing code below it. And have the whole thing stuck in: ScrollView \> LinearLayout. The Processing sketch doesn’t have any touch interactions. Disabling touch …

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

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