# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=396

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

**Page:** 397

---

## [P5js instance mode running sketches after removing them from DOM](https://discourse.processing.org/t/p5js-instance-mode-running-sketches-after-removing-them-from-dom/17551)

<div class="topic-metadata">

**Author:** [@eli7vh](https://discourse.processing.org/u/eli7vh)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 6:44pm UTC](https://discourse.processing.org/t/p5js-instance-mode-running-sketches-after-removing-them-from-dom/17551 "2020-02-04T18:44:24Z")

</div>

Hello, I am making a sketch browser for myself using p5 instance mode. The sketches seem to continue running after removing them from the DOM. which results in my CPU getting pinned… relevant code is here: const loadS…

---

## [Check For USB Port Connection](https://discourse.processing.org/t/check-for-usb-port-connection/17406)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 21\
**Last updated:** [February 4, 2020, 6:43pm UTC](https://discourse.processing.org/t/check-for-usb-port-connection/17406 "2020-02-04T18:43:34Z")

</div>

My sketch seems to work well unless I forget to plug in the USB-based input (Arduino). If I fail to connect the USB, my sketch fails in a most ungracious manner(appears to lockup in a loop). Can someone help with the c…

---

## [Development of processing for android](https://discourse.processing.org/t/development-of-processing-for-android/17510)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 5\
**Last updated:** [February 4, 2020, 6:07pm UTC](https://discourse.processing.org/t/development-of-processing-for-android/17510 "2020-02-04T18:07:27Z")

</div>

Hello everyone I created pull request in processing for android a month back, It’s already approved. Any mentor please review or merge it. Thanks

---

## [Escaping string path](https://discourse.processing.org/t/escaping-string-path/17549)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 5:50pm UTC](https://discourse.processing.org/t/escaping-string-path/17549 "2020-02-04T17:50:33Z")

</div>

Hello, I have the following string that gives me error (replaced some with “abc” for privacy) String dir = "D:\\OneDrive - Abc abc abc abc \\ABC\\processing-3.0.1\\abc\\CsvPaddingAutomator"; Error: Not expecting symbol 'O…

---

## [Creating speech recognition](https://discourse.processing.org/t/creating-speech-recognition/17333)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 5\
**Last updated:** [February 4, 2020, 4:38pm UTC](https://discourse.processing.org/t/creating-speech-recognition/17333 "2020-02-04T16:38:03Z")

</div>

Hi guys. I’m trying to create a voice recognition in android. I read some topics about this topic Speech recognition for android mode and then I read about “developers documentation” SpeechRecognizer but it has no sense…

---

## [Contribution and Participation in GSOC 2020](https://discourse.processing.org/t/contribution-and-participation-in-gsoc-2020/17372)

<div class="topic-metadata">

**Author:** [@abhi9087](https://discourse.processing.org/u/abhi9087)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 3:53pm UTC](https://discourse.processing.org/t/contribution-and-participation-in-gsoc-2020/17372 "2020-02-04T15:53:48Z")

</div>

I am Abhishek Gupta from India and am pursuing a Bachelor of Technology in Computer Science and Engineering from Vellore Institute of technology. I have experience in python, C++, IoT, MYSQL, Machine learning, Web develo…

---

## [Gsoc 2020 information](https://discourse.processing.org/t/gsoc-2020-information/17283)

<div class="topic-metadata">

**Author:** [@Akshjain99](https://discourse.processing.org/u/Akshjain99)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 3:52pm UTC](https://discourse.processing.org/t/gsoc-2020-information/17283 "2020-02-04T15:52:42Z")

</div>

May I know will Processing going to be the Part of GSOC 2020 this year?

---

## [Savetable with P5](https://discourse.processing.org/t/savetable-with-p5/17475)

<div class="topic-metadata">

**Author:** [@jp3001](https://discourse.processing.org/u/jp3001)\
**Replies:** 7\
**Last updated:** [February 4, 2020, 11:27am UTC](https://discourse.processing.org/t/savetable-with-p5/17475 "2020-02-04T11:27:40Z")

</div>

I’ve got a strange error when trying to save a p5.table tablo= new p5.table; saveTable(tablo,‘Memory’,‘csv’); I’ve got the following msg: Exception has occured Error: creaheader is not defined but if I enter ‘html’…

---

## [Distance Checking of Static Objects](https://discourse.processing.org/t/distance-checking-of-static-objects/17519)

<div class="topic-metadata">

**Author:** [@zavierboyles](https://discourse.processing.org/u/zavierboyles)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 8:34am UTC](https://discourse.processing.org/t/distance-checking-of-static-objects/17519 "2020-02-04T08:34:26Z")

</div>

Hi. I’m trying to draw an array of 9 flowers in such a way that there is no overlap and the centres are on within the boundaries of the canvas. I’ve come up with a method so that the flowers are at least spawning far en…

---

## [Infinite Runner Tutorial](https://discourse.processing.org/t/infinite-runner-tutorial/17477)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 3\
**Last updated:** [February 4, 2020, 4:17am UTC](https://discourse.processing.org/t/infinite-runner-tutorial/17477 "2020-02-04T04:17:22Z")

</div>

Just wondering if anyone has or has come across an infinite runner tutorial?

---

## [Using selectOutput](https://discourse.processing.org/t/using-selectoutput/17534)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 1:50am UTC](https://discourse.processing.org/t/using-selectoutput/17534 "2020-02-04T01:50:51Z")

</div>

I seek to add a file browser to my application. I see that the selectOutput, and selectInput, classes were made for it. In this document for selectOutput: https://processing.org/reference/selectOutput\_.html I see const…

---

## [Is it possible to develop for Oculus Quest with processing?](https://discourse.processing.org/t/is-it-possible-to-develop-for-oculus-quest-with-processing/17527)

<div class="topic-metadata">

**Author:** [@BernOC](https://discourse.processing.org/u/BernOC)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 12:29am UTC](https://discourse.processing.org/t/is-it-possible-to-develop-for-oculus-quest-with-processing/17527 "2020-02-04T00:29:25Z")

</div>

It’s probably easier to use something like Unity for this, but as part of a college module, we must use Processing. Thanks in advance

---

## [Avoiding tile overlap (of colorful plastic toy shapes)](https://discourse.processing.org/t/avoiding-tile-overlap-of-colorful-plastic-toy-shapes/17525)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 1\
**Last updated:** [February 3, 2020, 9:59pm UTC](https://discourse.processing.org/t/avoiding-tile-overlap-of-colorful-plastic-toy-shapes/17525 "2020-02-03T21:59:17Z")

</div>

Below is code I’m working on to display those little plastic toy shapes (hexagon, triangle, square, etc…) and I wanted to find a way to prevent a new shape from overlapping previous ones. So far I have the shapes display…

---

## [Libraries not listed on Libraries page?](https://discourse.processing.org/t/libraries-not-listed-on-libraries-page/11806)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 12\
**Last updated:** [February 3, 2020, 8:38pm UTC](https://discourse.processing.org/t/libraries-not-listed-on-libraries-page/11806 "2020-02-03T20:38:19Z")

</div>

Hi Processing community – What are some of the the libraries that you can think that are NOT currently listed on the Processing libraries page? https://processing.org/reference/libraries/ These could be things you use…

---

## [Moving circle with arrow keys](https://discourse.processing.org/t/moving-circle-with-arrow-keys/10586)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 6\
**Last updated:** [February 3, 2020, 7:37pm UTC](https://discourse.processing.org/t/moving-circle-with-arrow-keys/10586 "2020-02-03T19:37:29Z")

</div>

hello everyone, I have an assignment that says i have to make a circle that moves when the arrow keys are pressed and it shouldn’t leave the canvas, but i’m having a problem with keeping the circle within the canvas…i n…

---

## [Found some problem with color](https://discourse.processing.org/t/found-some-problem-with-color/17521)

<div class="topic-metadata">

**Author:** [@Daniele92](https://discourse.processing.org/u/Daniele92)\
**Replies:** 5\
**Last updated:** [February 3, 2020, 6:36pm UTC](https://discourse.processing.org/t/found-some-problem-with-color/17521 "2020-02-03T18:36:11Z")

</div>

color c= color(#2f4f4f); color b= color(115,10,100); color a= color(0,100,255); void setup() { size(500,500); background(255); for(int i = 0; i\<100; i++) { rett(int(random(width)), int(random(height)), …

---

## [Processing JavaDoc index.html](https://discourse.processing.org/t/processing-javadoc-index-html/17158)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 14\
**Last updated:** [February 3, 2020, 5:46pm UTC](https://discourse.processing.org/t/processing-javadoc-index-html/17158 "2020-02-03T17:46:13Z")

</div>

Hi all, I’m trying to generate a structured overview of my code in Processing (similar to a JavaDoc I believe). I added some doc comments, after which I do: ‘file --\> export application --\> windows’, from the PDE. Accor…

---

## [I need help I don’t know how to set it up](https://discourse.processing.org/t/i-need-help-i-don-t-know-how-to-set-it-up/17528)

<div class="topic-metadata">

**Author:** [@ImConfused](https://discourse.processing.org/u/ImConfused)\
**Replies:** 2\
**Last updated:** [February 3, 2020, 5:20pm UTC](https://discourse.processing.org/t/i-need-help-i-don-t-know-how-to-set-it-up/17528 "2020-02-03T17:20:13Z")

</div>

I have no clue how to setup this up I have to make a bunch of tiny squares change color

---

## [Sound on Android doesn't work](https://discourse.processing.org/t/sound-on-android-doesnt-work/17516)

<div class="topic-metadata">

**Author:** [@ViZrd](https://discourse.processing.org/u/ViZrd)\
**Replies:** 0\
**Last updated:** [February 2, 2020, 1:54pm UTC](https://discourse.processing.org/t/sound-on-android-doesnt-work/17516 "2020-02-02T13:54:53Z")

</div>

I tried the sound example (https://processing.org/reference/libraries/sound/Sound.html) and while the app “worked”, as in- it runs on the device, no sound is generated. I get the Processing console error: java.lang.No…

---

## [Problem with robot cursor](https://discourse.processing.org/t/problem-with-robot-cursor/2046)

<div class="topic-metadata">

**Author:** [@erwrow](https://discourse.processing.org/u/erwrow)\
**Replies:** 9\
**Last updated:** [February 3, 2020, 1:46pm UTC](https://discourse.processing.org/t/problem-with-robot-cursor/2046 "2020-02-03T13:46:14Z")

</div>

Greetings everyone! i was making a program that moves the camera and lets you ovserve an object from any direction (using w, a, s, d and the mouse, kinda like a game), to do that i use the robot class to restart the posi…

---

## [Making patterns with modulo](https://discourse.processing.org/t/making-patterns-with-modulo/17522)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 12:00pm UTC](https://discourse.processing.org/t/making-patterns-with-modulo/17522 "2020-02-03T12:00:27Z")

</div>

Hi. A friend asked me how to create 2D patterns and also how to make not only rectangular patterns but other shapes, so I thought I could answer here which might help someone else too :slight\_smile: I’m going to assume …

---

## [Problems with my video](https://discourse.processing.org/t/problems-with-my-video/17512)

<div class="topic-metadata">

**Author:** [@amprocessing](https://discourse.processing.org/u/amprocessing)\
**Replies:** 2\
**Last updated:** [February 3, 2020, 2:58am UTC](https://discourse.processing.org/t/problems-with-my-video/17512 "2020-02-03T02:58:44Z")

</div>

So, in my code I uses g4p guide in order to help me create a user interface and buttons, as I am a beginner. when the button is pressed, the video should begin to play, and the buttons disappears. The video begins to pla…

---

## [Easier way to write if else statement](https://discourse.processing.org/t/easier-way-to-write-if-else-statement/17250)

<div class="topic-metadata">

**Author:** [@MikkelS](https://discourse.processing.org/u/MikkelS)\
**Replies:** 6\
**Last updated:** [February 2, 2020, 9:44pm UTC](https://discourse.processing.org/t/easier-way-to-write-if-else-statement/17250 "2020-02-02T21:44:09Z")

</div>

Hey, I was just wondering if there exists an easier way to write the following code? if (lives == 3) { // image(heart, heartX1, heartY, heartWH, heartWH); image(heart, heartX2, heartY, heartWH, heartWH);…

---

## [Chaos game (different versions)](https://discourse.processing.org/t/chaos-game-different-versions/17436)

<div class="topic-metadata">

**Author:** [@trikaphundo](https://discourse.processing.org/u/trikaphundo)\
**Replies:** 4\
**Last updated:** [February 2, 2020, 9:22pm UTC](https://discourse.processing.org/t/chaos-game-different-versions/17436 "2020-02-02T21:22:51Z")

</div>

Hello everyone. Some months ago I made a Processing sketch to experiment with the game of chaos. I coded different versions of it and managed to create lots of interesting images with them. In this post I am going to pub…

---

## [Overriding touches](https://discourse.processing.org/t/overriding-touches/17483)

<div class="topic-metadata">

**Author:** [@KnightOfBurgers](https://discourse.processing.org/u/KnightOfBurgers)\
**Replies:** 3\
**Last updated:** [February 2, 2020, 4:57pm UTC](https://discourse.processing.org/t/overriding-touches/17483 "2020-02-02T16:57:58Z")

</div>

I’ve created a Live Wallpaper that involves a lot of dragging about. While executing it, the system tries to shift the homescreen, and the transition distorts the wallpaper. Is there a way that I can prevent the system f…

---

## [Minimum and maximum random numbers](https://discourse.processing.org/t/minimum-and-maximum-random-numbers/16888)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 12\
**Last updated:** [February 2, 2020, 2:54pm UTC](https://discourse.processing.org/t/minimum-and-maximum-random-numbers/16888 "2020-02-02T14:54:09Z")

</div>

I want to generate two random numbers. The numbers will be used to limit a range of hues (minimum 0, maximum 360). I can do it like this: float start; float end; //… start = random(0,360); end = start + random(45,90)…

---

## [Problem in uploading Android sketch](https://discourse.processing.org/t/problem-in-uploading-android-sketch/17476)

<div class="topic-metadata">

**Author:** [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Replies:** 4\
**Last updated:** [February 2, 2020, 3:22am UTC](https://discourse.processing.org/t/problem-in-uploading-android-sketch/17476 "2020-02-02T03:22:30Z")

</div>

Using Raspberry PI3. I took one of the simple examples from Processing library, switched to Android mode and tried to upload it to my smartphone. I get a message “No devices found”. My smartphone is shown with “dmesg” f…

---

## [Drawn object stops moving away?](https://discourse.processing.org/t/drawn-object-stops-moving-away/17493)

<div class="topic-metadata">

**Author:** [@jedslater](https://discourse.processing.org/u/jedslater)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 3:11am UTC](https://discourse.processing.org/t/drawn-object-stops-moving-away/17493 "2020-02-02T03:11:01Z")

</div>

Hi there! I’ve been working on some sketches using the contours of a 3D object to draw onto the canvas. In order to give the appearance of the object (in this case a box) moving into the distance, I increment the value o…

---

## [p5.Play in p5.js editor](https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 2:36am UTC](https://discourse.processing.org/t/p5-play-in-p5-js-editor/17506 "2020-02-02T02:36:11Z")

</div>

Does anyone know how to use the P5.Play library in the p5.js editor? I believe that the library has to be referenced in the index.html file, I just do not know how to do that or where to point the reference too.

---

## [saveFrame() doesn't match real time](https://discourse.processing.org/t/saveframe-doesnt-match-real-time/17397)

<div class="topic-metadata">

**Author:** [@BrokenCode](https://discourse.processing.org/u/BrokenCode)\
**Replies:** 2\
**Last updated:** [February 1, 2020, 9:02pm UTC](https://discourse.processing.org/t/saveframe-doesnt-match-real-time/17397 "2020-02-01T21:02:14Z")

</div>

Hello everyone, I have a very tricky question here. Why saveFrame() doesn’t write all the frames as it should? I mean, if I have a grid of 28 tiles (println(points.size());), and I wait 1 second to fill each tile: if (…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=395)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=397)
