# Latest

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

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

**Page:** 472

---

## [Playing random sounds from folder as an Urn (no repeat untill all the files are done)](https://discourse.processing.org/t/playing-random-sounds-from-folder-as-an-urn-no-repeat-untill-all-the-files-are-done/10391)

<div class="topic-metadata">

**Author:** [@o\_b](https://discourse.processing.org/u/o_b)\
**Replies:** 4\
**Last updated:** [June 26, 2019, 5:05pm UTC](https://discourse.processing.org/t/playing-random-sounds-from-folder-as-an-urn-no-repeat-untill-all-the-files-are-done/10391 "2019-06-26T17:05:38Z")

</div>

Hi there, I’m pretty new to processing. For an audio installation, I need a processing sketch to play random sounds from the data folder every 5 seconds, indefinitely. For this example I have 10 mp3 files, but I’ll ne…

---

## [Turn X,Y, Z mouse tracker into 3D CAD file?](https://discourse.processing.org/t/turn-x-y-z-mouse-tracker-into-3d-cad-file/12275)

<div class="topic-metadata">

**Author:** [@sdotjo](https://discourse.processing.org/u/sdotjo)\
**Replies:** 10\
**Last updated:** [June 26, 2019, 1:18pm UTC](https://discourse.processing.org/t/turn-x-y-z-mouse-tracker-into-3d-cad-file/12275 "2019-06-26T13:18:14Z")

</div>

Hello! I am working on a project to be able to “draw” with a 3D clay printer. Right now I have a sketch that draws X,Y with mouse movement and Z with time elapsed. I want to be able to export this line as a CAD file so…

---

## [Random Word Picker](https://discourse.processing.org/t/random-word-picker/10619)

<div class="topic-metadata">

**Author:** [@mariamalz](https://discourse.processing.org/u/mariamalz)\
**Replies:** 7\
**Last updated:** [June 26, 2019, 12:53pm UTC](https://discourse.processing.org/t/random-word-picker/10619 "2019-06-26T12:53:37Z")

</div>

So I just want to create a simple random word picker that can display one word every time the program is run. So far I have this code but it keeps generating words after the first one has popped up, and currently there …

---

## [\[SOLVED\] Arduino button press should only spawn single object](https://discourse.processing.org/t/solved-arduino-button-press-should-only-spawn-single-object/12281)

<div class="topic-metadata">

**Author:** [@RealDwayneJ](https://discourse.processing.org/u/RealDwayneJ)\
**Replies:** 5\
**Last updated:** [June 26, 2019, 11:55am UTC](https://discourse.processing.org/t/solved-arduino-button-press-should-only-spawn-single-object/12281 "2019-06-26T11:55:15Z")

</div>

I linked my code to my Arduino and replaced the “keyPressed” buttons for the “arduino.HIGH” However, currently when I press a button, it registers as multiple presses at once. I realize this could be very well the cause…

---

## [Java Mode: How to import external code?](https://discourse.processing.org/t/java-mode-how-to-import-external-code/12258)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 6\
**Last updated:** [June 25, 2019, 10:53pm UTC](https://discourse.processing.org/t/java-mode-how-to-import-external-code/12258 "2019-06-25T22:53:40Z")

</div>

I have never imported a library in my life before. Google says compile it including it to the classpath. So how do include external java code that I want to use in my sketch but isnt in the sketch’s directory? And wha…

---

## [I cant create a new Object when the old one hits a certain x value](https://discourse.processing.org/t/i-cant-create-a-new-object-when-the-old-one-hits-a-certain-x-value/11820)

<div class="topic-metadata">

**Author:** [@sc4p3g0a7](https://discourse.processing.org/u/sc4p3g0a7)\
**Replies:** 4\
**Last updated:** [June 25, 2019, 8:19pm UTC](https://discourse.processing.org/t/i-cant-create-a-new-object-when-the-old-one-hits-a-certain-x-value/11820 "2019-06-25T20:19:20Z")

</div>

Hello, so i am making a game, and there are two main objects, there is you, and the obstacle. i want to crate a new obstacle, when the previous one gets to a certain space, Here is the code for the obstacle PVector lo…

---

## [PVector array filled with static data](https://discourse.processing.org/t/pvector-array-filled-with-static-data/12282)

<div class="topic-metadata">

**Author:** [@TTG](https://discourse.processing.org/u/TTG)\
**Replies:** 4\
**Last updated:** [June 25, 2019, 3:32pm UTC](https://discourse.processing.org/t/pvector-array-filled-with-static-data/12282 "2019-06-25T15:32:54Z")

</div>

Hi team, I have an issue regarding the correct way to assign PVector data in an array. the data is derived from earlier task (see image and code below), i only want to us the output as a PVector in an array (static co…

---

## [Mouse position is tracked beyond sketch window while dragging](https://discourse.processing.org/t/mouse-position-is-tracked-beyond-sketch-window-while-dragging/12283)

<div class="topic-metadata">

**Author:** [@gyula](https://discourse.processing.org/u/gyula)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 1:23pm UTC](https://discourse.processing.org/t/mouse-position-is-tracked-beyond-sketch-window-while-dragging/12283 "2019-06-25T13:23:21Z")

</div>

This is not a question but a statement. According to the reference, Processing can only track mouseX and mouseY when the pointer is over the current window. Once the mouse moves away from the window, mouseX and mouseY w…

---

## [Pause Line Execution Until Condition Happens in P5](https://discourse.processing.org/t/pause-line-execution-until-condition-happens-in-p5/11910)

<div class="topic-metadata">

**Author:** [@zinsy23](https://discourse.processing.org/u/zinsy23)\
**Replies:** 9\
**Last updated:** [June 25, 2019, 11:24am UTC](https://discourse.processing.org/t/pause-line-execution-until-condition-happens-in-p5/11910 "2019-06-25T11:24:33Z")

</div>

I am making an abacus simulator in p5 (sketch file) that does all the moves step by step. To animate the movement, I have variable x incrementally increase/decrease in a show function I created (lines 166 and 172), which…

---

## [How do I add score to my game?](https://discourse.processing.org/t/how-do-i-add-score-to-my-game/12246)

<div class="topic-metadata">

**Author:** [@rahul321](https://discourse.processing.org/u/rahul321)\
**Replies:** 7\
**Last updated:** [June 25, 2019, 10:28am UTC](https://discourse.processing.org/t/how-do-i-add-score-to-my-game/12246 "2019-06-25T10:28:53Z")

</div>

I’m new to processing and have been trying to make a game in which the character moves to the coordinates of mouse click and then stays there until it is called again. I have a “food” which moves to a random location whe…

---

## [\[SOLVED\] Processing messed up after using AS](https://discourse.processing.org/t/solved-processing-messed-up-after-using-as/12264)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 4\
**Last updated:** [June 25, 2019, 10:00am UTC](https://discourse.processing.org/t/solved-processing-messed-up-after-using-as/12264 "2019-06-25T10:00:15Z")

</div>

OK … so I decided to try AS to see how it might be useful in addition to Processing and now I get this error when I attempt to build using Processing … FAILURE: Build failed with an exception. \* What went wrong: A p…

---

## [Display SVG file missing text elements](https://discourse.processing.org/t/display-svg-file-missing-text-elements/11969)

<div class="topic-metadata">

**Author:** [@Jen](https://discourse.processing.org/u/Jen)\
**Replies:** 6\
**Last updated:** [June 25, 2019, 1:43am UTC](https://discourse.processing.org/t/display-svg-file-missing-text-elements/11969 "2019-06-25T01:43:12Z")

</div>

I am using processing 3 and when I was displaying a svg file, all the text tags are missing. Here is a example of text tag in the svg file \<g id="g4408" transform="matrix(0.41926233,0,0,0.41926233,358.69347,78.772123)"\>…

---

## [Proscene mouse postion projection from screen to scene's plane](https://discourse.processing.org/t/proscene-mouse-postion-projection-from-screen-to-scenes-plane/12278)

<div class="topic-metadata">

**Author:** [@Ivan](https://discourse.processing.org/u/Ivan)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 12:46am UTC](https://discourse.processing.org/t/proscene-mouse-postion-projection-from-screen-to-scenes-plane/12278 "2019-06-25T00:46:07Z")

</div>

Hello! Usually, for zooming and panning I’m using gicentreUtils library which is great but still has an issue - small additional zooming is added at the end of the corresponding mouse gesture (SHIFT+mouseDrag). Therefo…

---

## [Array input field](https://discourse.processing.org/t/array-input-field/12266)

<div class="topic-metadata">

**Author:** [@FlameOfPhoenix](https://discourse.processing.org/u/FlameOfPhoenix)\
**Replies:** 2\
**Last updated:** [June 24, 2019, 11:10pm UTC](https://discourse.processing.org/t/array-input-field/12266 "2019-06-24T23:10:24Z")

</div>

I have a question about input fields(I’m using the ones from controlp5) and was asking myself if you can have it so, that every entry in that field are integers and also added to an array. Thank you for your help Edit: …

---

## [PImage garbage not being properly collected](https://discourse.processing.org/t/pimage-garbage-not-being-properly-collected/12252)

<div class="topic-metadata">

**Author:** [@n055](https://discourse.processing.org/u/n055)\
**Replies:** 8\
**Last updated:** [June 24, 2019, 5:48pm UTC](https://discourse.processing.org/t/pimage-garbage-not-being-properly-collected/12252 "2019-06-24T17:48:11Z")

</div>

Howdy. I’m making a display intended to be constantly running on a TV as a sort of information Plaque. I utilize PImage objects as I have a folder of pictures I wish to display as a slideshow, and I am aware that those …

---

## [How to get the orientation](https://discourse.processing.org/t/how-to-get-the-orientation/12233)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [June 24, 2019, 8:58am UTC](https://discourse.processing.org/t/how-to-get-the-orientation/12233 "2019-06-24T08:58:58Z")

</div>

Hi, I’m trying to get the orientation of the device to place a text inside a rectangle which variate it size depending on the device orientation (PORTRAIT or LANDSCAPE). Using processing 3.5.3 in android mode. Someone …

---

## [Float 2D Array Data Limit](https://discourse.processing.org/t/float-2d-array-data-limit/12189)

<div class="topic-metadata">

**Author:** [@SmallSalamander](https://discourse.processing.org/u/SmallSalamander)\
**Replies:** 11\
**Last updated:** [June 23, 2019, 10:41pm UTC](https://discourse.processing.org/t/float-2d-array-data-limit/12189 "2019-06-23T22:41:20Z")

</div>

I have a problem with my code where I added 2.25 million numbers to a float 2D array, and depending on the computer the program either does not run or gives a string of errors. I was wondering if there is a way to either…

---

## [Unknown class through a function](https://discourse.processing.org/t/unknown-class-through-a-function/12236)

<div class="topic-metadata">

**Author:** [@FlyingApple](https://discourse.processing.org/u/FlyingApple)\
**Replies:** 2\
**Last updated:** [June 23, 2019, 9:40pm UTC](https://discourse.processing.org/t/unknown-class-through-a-function/12236 "2019-06-23T21:40:03Z")

</div>

void collision(Player player) { for (Wall wall : walls) { //find collision between player and wall, if they collide, stop player movement Is it possible for the example above to have an unknown class passed throu…

---

## [Using shape() in P2D can throw OutOfMemory and ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/using-shape-in-p2d-can-throw-outofmemory-and-arrayindexoutofboundsexception/12242)

<div class="topic-metadata">

**Author:** [@macbrayne](https://discourse.processing.org/u/macbrayne)\
**Replies:** 6\
**Last updated:** [June 23, 2019, 4:50pm UTC](https://discourse.processing.org/t/using-shape-in-p2d-can-throw-outofmemory-and-arrayindexoutofboundsexception/12242 "2019-06-23T16:50:30Z")

</div>

Hello! When trying to display a specific svg using shape the P2D renderer spits out a OutOfMemory error. I think this might be a bug. java.lang.ArrayIndexOutOfBoundsException: 200 at jogamp.opengl.glu.tessellator.Prio…

---

## [What's wrong with this code? HELP I want to code to like the picture I've added of](https://discourse.processing.org/t/whats-wrong-with-this-code-help-i-want-to-code-to-like-the-picture-ive-added-of/12249)

<div class="topic-metadata">

**Author:** [@henry](https://discourse.processing.org/u/henry)\
**Replies:** 4\
**Last updated:** [June 23, 2019, 11:28am UTC](https://discourse.processing.org/t/whats-wrong-with-this-code-help-i-want-to-code-to-like-the-picture-ive-added-of/12249 "2019-06-23T11:28:54Z")

</div>

size(300, 300); int\[\]data={50, 100, 30, 120, 40, 70, 150}; int max=data\[0\]; int min=data\[0\]; for (int i=0; i\<data.length; i++) { fill(255); rect(10+15\*i, 10, 10, data\[i\]); if(max\<data\[i\]) { max=data\[i\]; …

---

## [This is odd mapping problem](https://discourse.processing.org/t/this-is-odd-mapping-problem/11767)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 4\
**Last updated:** [June 23, 2019, 2:13am UTC](https://discourse.processing.org/t/this-is-odd-mapping-problem/11767 "2019-06-23T02:13:01Z")

</div>

I’ve been playing with navigational star charts, photo maps, star databases, processing for about a year now. With lots of help, I’ve learned how to project an image onto a sphere/globe and plot points onto the image. …

---

## [Convert double to bytes](https://discourse.processing.org/t/convert-double-to-bytes/12154)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.processing.org/u/x13420x)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 11:36pm UTC](https://discourse.processing.org/t/convert-double-to-bytes/12154 "2019-06-22T23:36:38Z")

</div>

I need to convert a single array of doubles to 8 arrays of bytes to save…but not sure this is possible…currently I am converting to float then to str…to save as txt…but there is some loss with this…I would prefer to pres…

---

## [Serial.list() hangs if 32bit export is run under 64bit Windows](https://discourse.processing.org/t/serial-list-hangs-if-32bit-export-is-run-under-64bit-windows/12231)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 5\
**Last updated:** [June 22, 2019, 9:58pm UTC](https://discourse.processing.org/t/serial-list-hangs-if-32bit-export-is-run-under-64bit-windows/12231 "2019-06-22T21:58:11Z")

</div>

Serial.list() hangs in exported apps if the exported 32bit version is started unter 64bit Windows (the exported 64bit version works under 64bit Windows). Is there any way to fix this on my side, short of distributing tw…

---

## [Please help me TT](https://discourse.processing.org/t/please-help-me-tt/12098)

<div class="topic-metadata">

**Author:** [@apple](https://discourse.processing.org/u/apple)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 5:02pm UTC](https://discourse.processing.org/t/please-help-me-tt/12098 "2019-06-22T17:02:32Z")

</div>

String a = "1,235,345,234,123,234,345.\\n"; //channel(0,1,2),value,value,value,value,value,value.\\n String\[\] temp = split(a,','); String CH = temp\[0\].replace("\\n",""); //int value1 = int(temp\[1\]); //int value2 = int(tem…

---

## [saveFrame not advancing frame count](https://discourse.processing.org/t/saveframe-not-advancing-frame-count/12060)

<div class="topic-metadata">

**Author:** [@PixelMx](https://discourse.processing.org/u/PixelMx)\
**Replies:** 6\
**Last updated:** [June 22, 2019, 4:49pm UTC](https://discourse.processing.org/t/saveframe-not-advancing-frame-count/12060 "2019-06-22T16:49:02Z")

</div>

Good morning. My processing has been acting up. First, it didn’t follow the size command and was creating sketches at 4K no matter what. I fixed this by opening an older version of Processing and running the sketch, then…

---

## [Mobile examples with accelerationX are not working?](https://discourse.processing.org/t/mobile-examples-with-accelerationx-are-not-working/11122)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 3\
**Last updated:** [June 22, 2019, 3:18pm UTC](https://discourse.processing.org/t/mobile-examples-with-accelerationx-are-not-working/11122 "2019-06-22T15:18:11Z")

</div>

Hi, A few weeks ago the mobile example ex03\_shake\_ballBounce was working well for me, and I’d made a version with coloured balls. Today the accelerationX and Y are returning zero. A few days ago I updated to P5.JS 1.…

---

## [Screen capturer](https://discourse.processing.org/t/screen-capturer/12059)

<div class="topic-metadata">

**Author:** [@samolet4e](https://discourse.processing.org/u/samolet4e)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 2:57pm UTC](https://discourse.processing.org/t/screen-capturer/12059 "2019-06-22T14:57:16Z")

</div>

Hello. I would like to discuss an issue related to a screen capturing program. The following code is capable of screen recording and overlaying the mouse cursor: import java.awt.Robot; import java.awt.image.BufferedImag…

---

## [Gray or blank screen when export :(](https://discourse.processing.org/t/gray-or-blank-screen-when-export/12163)

<div class="topic-metadata">

**Author:** [@Pan](https://discourse.processing.org/u/Pan)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 1:03pm UTC](https://discourse.processing.org/t/gray-or-blank-screen-when-export/12163 "2019-06-22T13:03:49Z")

</div>

Hi, when i export my sketch the result is a gray or blank screen but when i am processing the sketch, this works, can someone help me please? Thank you for reading. I am using Windows 8 with 64 bits and Processing 3.5.…

---

## [Beginner (I assume?) Question: How do I make words appear onscreen](https://discourse.processing.org/t/beginner-i-assume-question-how-do-i-make-words-appear-onscreen/12172)

<div class="topic-metadata">

**Author:** [@joshshaman13](https://discourse.processing.org/u/joshshaman13)\
**Replies:** 2\
**Last updated:** [June 22, 2019, 12:59pm UTC](https://discourse.processing.org/t/beginner-i-assume-question-how-do-i-make-words-appear-onscreen/12172 "2019-06-22T12:59:09Z")

</div>

Hey guys, I’m trying to make text appear in a sketch when I touch ‘X’ value on my MPR121 TouchBoard. The problem is I’m not very familiar with Processing, so I was wondering how I might go about this. I feel like most of…

---

## [Problems with background in draw();](https://discourse.processing.org/t/problems-with-background-in-draw/12218)

<div class="topic-metadata">

**Author:** [@wordcounter](https://discourse.processing.org/u/wordcounter)\
**Replies:** 3\
**Last updated:** [June 22, 2019, 10:35am UTC](https://discourse.processing.org/t/problems-with-background-in-draw/12218 "2019-06-22T10:35:07Z")

</div>

Hello! I’m new to processing and I’m having some background issues. I’m working on a data visualization of word frequency in a text, shown through a bar graph. For the example code I replaced my text with a sequence of…

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

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