# Latest

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

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

**Page:** 221

---

## [P5js sound, microphone stop doesn't stop the microphone input](https://discourse.processing.org/t/p5js-sound-microphone-stop-doesnt-stop-the-microphone-input/30283)

<div class="topic-metadata">

**Author:** [@cprieto](https://discourse.processing.org/u/cprieto)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 9:42pm UTC](https://discourse.processing.org/t/p5js-sound-microphone-stop-doesnt-stop-the-microphone-input/30283 "2021-05-25T21:42:58Z")

</div>

I will expect the method stop will stop the microphone from capturing input in p5js, as the documentation states: Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel(). But that is not happening, even…

---

## [Error when trying to save output audio in P5js sound](https://discourse.processing.org/t/error-when-trying-to-save-output-audio-in-p5js-sound/30280)

<div class="topic-metadata">

**Author:** [@cprieto](https://discourse.processing.org/u/cprieto)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 9:21pm UTC](https://discourse.processing.org/t/error-when-trying-to-save-output-audio-in-p5js-sound/30280 "2021-05-25T21:21:06Z")

</div>

The documentation for p5.SoundRecorder is pretty clear when it says what is going to record: Record sounds for playback and/or to save as a .wav file. The p5.SoundRecorder records all sound output from your sketch, or …

---

## [Animated colors on a moving object](https://discourse.processing.org/t/animated-colors-on-a-moving-object/30278)

<div class="topic-metadata">

**Author:** [@int](https://discourse.processing.org/u/int)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 3:08pm UTC](https://discourse.processing.org/t/animated-colors-on-a-moving-object/30278 "2021-05-25T15:08:02Z")

</div>

Hi! I’m trying to add animated colors to this ellipse that is moving back and forth when a key is pressed, but I can’t figure out what’s the problem in my code, as the color changes immediately from yellow to red when th…

---

## [Servo turn opposite direction](https://discourse.processing.org/t/servo-turn-opposite-direction/30166)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 5\
**Last updated:** [May 25, 2021, 2:36pm UTC](https://discourse.processing.org/t/servo-turn-opposite-direction/30166 "2021-05-25T14:36:35Z")

</div>

hi forum. i was able to track the object coordinate in the screen/lcd based on color and plan to direct the middle camera attached to pantilt arm every time the object moves. but the result is the horizontal servo always…

---

## [Loops with different colors](https://discourse.processing.org/t/loops-with-different-colors/30257)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 1:52pm UTC](https://discourse.processing.org/t/loops-with-different-colors/30257 "2021-05-25T13:52:28Z")

</div>

why doesn’t this code work? color\[\] c = new color \[6\]; int x; int l; void setup(){ size(900, 550); c\[0\]=color(8,100, 0); c\[1\]=color(12); c\[2\]=color(16); c\[3\]=color(4); c\[4\]=color(4); c\[5\]=color(4)…

---

## [P5 panning with sliders and play video with button](https://discourse.processing.org/t/p5-panning-with-sliders-and-play-video-with-button/30255)

<div class="topic-metadata">

**Author:** [@karenmani](https://discourse.processing.org/u/karenmani)\
**Replies:** 6\
**Last updated:** [May 25, 2021, 1:38pm UTC](https://discourse.processing.org/t/p5-panning-with-sliders-and-play-video-with-button/30255 "2021-05-25T13:38:52Z")

</div>

Hi! I’m trying to create a website with p5 that plays a video back and then also uses a slider to pan a song that is simultaneously playing. I followed example code from the p5 website, however for some reason, my button…

---

## [Activate webcam at certain time while playing video](https://discourse.processing.org/t/activate-webcam-at-certain-time-while-playing-video/30215)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 6\
**Last updated:** [May 25, 2021, 4:09am UTC](https://discourse.processing.org/t/activate-webcam-at-certain-time-while-playing-video/30215 "2021-05-25T04:09:11Z")

</div>

Hi all, I want to play a video in processing and 1 minute and 34 seconds into the video I want to implement live video footage from the webcam. This is how far I’ve come. How can I activate the webcam 1 minute and 34 …

---

## [Help me to change the color](https://discourse.processing.org/t/help-me-to-change-the-color/30263)

<div class="topic-metadata">

**Author:** [@Nico](https://discourse.processing.org/u/Nico)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 1:01am UTC](https://discourse.processing.org/t/help-me-to-change-the-color/30263 "2021-05-25T01:01:31Z")

</div>

I want the small circles to be green when they approach the big circle and change to red when they move away from it, can you help me? \</\> let puntos = 80/3 let angulo = 360/puntos function setup() { createCanvas(4…

---

## [Displaying text from an API inside the canvas](https://discourse.processing.org/t/displaying-text-from-an-api-inside-the-canvas/30244)

<div class="topic-metadata">

**Author:** [@Blomer478](https://discourse.processing.org/u/Blomer478)\
**Replies:** 10\
**Last updated:** [May 24, 2021, 10:49pm UTC](https://discourse.processing.org/t/displaying-text-from-an-api-inside-the-canvas/30244 "2021-05-24T22:49:08Z")

</div>

Hi, I’m having trouble getting the text from an API to display on my canvas, I can get it outside of it but I can’t find the way to put it in. I have the API key in my code and I know the variable names are kinda weird.…

---

## [Currency Converter : how to make a window with text and buttons?](https://discourse.processing.org/t/currency-converter-how-to-make-a-window-with-text-and-buttons/30256)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 7\
**Last updated:** [May 24, 2021, 9:57pm UTC](https://discourse.processing.org/t/currency-converter-how-to-make-a-window-with-text-and-buttons/30256 "2021-05-24T21:57:16Z")

</div>

Hi! I have to create a currency converter, without having to use any GUI libraries, so I wanted to create a window where all the text and button would be. I wanted to use def setup and def draw functions but I’m not sur…

---

## [Eyeball moving effect](https://discourse.processing.org/t/eyeball-moving-effect/30261)

<div class="topic-metadata">

**Author:** [@isaf12](https://discourse.processing.org/u/isaf12)\
**Replies:** 1\
**Last updated:** [May 24, 2021, 9:50pm UTC](https://discourse.processing.org/t/eyeball-moving-effect/30261 "2021-05-24T21:50:59Z")

</div>

Hi, I’m new to this. I wanted to created one simple eyeball with two ellipses. One being bigger for the white part of the eye and the other ellipse a little smaller which is the iris, the black part of the eye. I can get…

---

## [An undo and redo button for my drawing program](https://discourse.processing.org/t/an-undo-and-redo-button-for-my-drawing-program/30194)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 17\
**Last updated:** [May 24, 2021, 9:07pm UTC](https://discourse.processing.org/t/an-undo-and-redo-button-for-my-drawing-program/30194 "2021-05-24T21:07:18Z")

</div>

I have seen other peoples code of how to do it but I can’t seem to fully understand how it works. Especially when they have arrays and stuff. Someone please explain to me.

---

## [Animation layers](https://discourse.processing.org/t/animation-layers/30247)

<div class="topic-metadata">

**Author:** [@WUW](https://discourse.processing.org/u/WUW)\
**Replies:** 6\
**Last updated:** [May 24, 2021, 5:24pm UTC](https://discourse.processing.org/t/animation-layers/30247 "2021-05-24T17:24:39Z")

</div>

Hi, I have this very simple animation. Rects drawing one by one on the sketch window. I want at the sametine a line to animate from left to right. Without leaving its trail. I tried animate translate, pop and push, backg…

---

## [Can someone Help me with a Timer](https://discourse.processing.org/t/can-someone-help-me-with-a-timer/30240)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 1\
**Last updated:** [May 24, 2021, 1:23pm UTC](https://discourse.processing.org/t/can-someone-help-me-with-a-timer/30240 "2021-05-24T13:23:07Z")

</div>

I visit a timer during the game when side is on 1 for 10 seconds afterwards side should be set to 2 import processing.sound.\*; boolean startp = true; float c; int seite, score, rx, ry; SoundFile theme; SoundFile plus; S…

---

## [Connecting Points with a Line](https://discourse.processing.org/t/connecting-points-with-a-line/30243)

<div class="topic-metadata">

**Author:** [@SodaPopPop](https://discourse.processing.org/u/SodaPopPop)\
**Replies:** 5\
**Last updated:** [May 24, 2021, 1:05pm UTC](https://discourse.processing.org/t/connecting-points-with-a-line/30243 "2021-05-24T13:05:22Z")

</div>

Hello all! This is a continuation of my project from here! It is a bouncing ball that starts in random location with a random gravity acting on it. If you press with a mouse the velocity increases. There’s a chance the …

---

## [Sandbox warning on Mac](https://discourse.processing.org/t/sandbox-warning-on-mac/30200)

<div class="topic-metadata">

**Author:** [@Viz](https://discourse.processing.org/u/Viz)\
**Replies:** 4\
**Last updated:** [May 24, 2021, 8:13am UTC](https://discourse.processing.org/t/sandbox-warning-on-mac/30200 "2021-05-24T08:13:03Z")

</div>

Hi Everyone, I’m a teacher and I’m using p5.js to teach kids javascript at the school I work at. Unfortunately I keep getting this error on my Mac using safari which prevents p5.js from working. “Error while parsing the…

---

## [Can someone Help me? (host files)](https://discourse.processing.org/t/can-someone-help-me-host-files/30178)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 5\
**Last updated:** [May 24, 2021, 7:25am UTC](https://discourse.processing.org/t/can-someone-help-me-host-files/30178 "2021-05-24T07:25:14Z")

</div>

can I make a free website where I can save files and give them back in processing on the mobile phone?

---

## [Infrared remote control](https://discourse.processing.org/t/infrared-remote-control/29301)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 9\
**Last updated:** [May 23, 2021, 8:36pm UTC](https://discourse.processing.org/t/infrared-remote-control/29301 "2021-05-23T20:36:50Z")

</div>

I found this sketch on a Japanese site and it has several errors i fix some of them but still not working any help thanks everyone import processing.serial.\*; Serial myPort ; int \[\] recv\_data = new int \[ 20…

---

## [Using scale() to rotate a moving gif](https://discourse.processing.org/t/using-scale-to-rotate-a-moving-gif/30230)

<div class="topic-metadata">

**Author:** [@Blomer478](https://discourse.processing.org/u/Blomer478)\
**Replies:** 4\
**Last updated:** [May 23, 2021, 7:55pm UTC](https://discourse.processing.org/t/using-scale-to-rotate-a-moving-gif/30230 "2021-05-23T19:55:51Z")

</div>

I’ve been trying to make this work for a good couple of hours but I really can’t see what is wrong. I have an animated gif that goes from left to right and once it get out of the screen it goes back to the left, that wo…

---

## [It's a question about how to use the code of ''Clear''](https://discourse.processing.org/t/its-a-question-about-how-to-use-the-code-of-clear/30236)

<div class="topic-metadata">

**Author:** [@yun](https://discourse.processing.org/u/yun)\
**Replies:** 6\
**Last updated:** [May 23, 2021, 12:54pm UTC](https://discourse.processing.org/t/its-a-question-about-how-to-use-the-code-of-clear/30236 "2021-05-23T12:54:15Z")

</div>

I have some problems when I write code. I try to design a game like a gold miner, and I want to use the left and right keys to move my hook. But when I write codes like this: function setup() { createCanvas(windowWidth…

---

## [ArrayOutOfBoundException for pixels](https://discourse.processing.org/t/arrayoutofboundexception-for-pixels/30214)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 3\
**Last updated:** [May 23, 2021, 10:00am UTC](https://discourse.processing.org/t/arrayoutofboundexception-for-pixels/30214 "2021-05-23T10:00:36Z")

</div>

Why do I get an ArrayOutOfBoundException for this code? void setup(){ size(400,400); } void draw(){ background(44); loadPixels(); for(int x=0; x \< width; x++){ for(int y=0; y \< height; y++){ int index=(x+y\*width…

---

## [Make and watch movies in txt file format](https://discourse.processing.org/t/make-and-watch-movies-in-txt-file-format/30237)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [May 23, 2021, 11:12am UTC](https://discourse.processing.org/t/make-and-watch-movies-in-txt-file-format/30237 "2021-05-23T11:12:42Z")

</div>

Tired of gif, png? too Geek for avi and MPG? Now here is my new txt animation tool. still its in eraly accses development fase it has many roughe edges. but ist useful manuel in short: Right or left mouse click +/- …

---

## [Debugging ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/debugging-arrayindexoutofboundsexception/29988)

<div class="topic-metadata">

**Author:** [@elenanito](https://discourse.processing.org/u/elenanito)\
**Replies:** 5\
**Last updated:** [May 9, 2021, 10:01pm UTC](https://discourse.processing.org/t/debugging-arrayindexoutofboundsexception/29988 "2021-05-09T22:01:40Z")

</div>

I got this exception and the console says: java.lang.ArrayIndexOutOfBoundsException: 8 at programName.function(projectName.java:84) But there is nothing but comments on line 84 . my program has over 2000 lines so…

---

## [Resizing a PGraphics](https://discourse.processing.org/t/resizing-a-pgraphics/30227)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [May 23, 2021, 10:29am UTC](https://discourse.processing.org/t/resizing-a-pgraphics/30227 "2021-05-23T10:29:34Z")

</div>

I’ve seen there’s been a previous post about this and thats great as the answer has technically already been posted, however I wanted to know what limitations this might have if i’m planning on making use of resize every…

---

## [AndroidManifest\_Additions](https://discourse.processing.org/t/androidmanifest-additions/30231)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [May 23, 2021, 4:49am UTC](https://discourse.processing.org/t/androidmanifest-additions/30231 "2021-05-23T04:49:10Z")

</div>

An Android project that I am working on requires additions to the AndroidManifest.xml file. The code runs ok but with every compile a new AndroidManifest.xml file is created and my additions are saved in a copy of the a…

---

## [Where to find the error logs from running an app on a device](https://discourse.processing.org/t/where-to-find-the-error-logs-from-running-an-app-on-a-device/30226)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 0\
**Last updated:** [May 22, 2021, 11:09pm UTC](https://discourse.processing.org/t/where-to-find-the-error-logs-from-running-an-app-on-a-device/30226 "2021-05-22T23:09:59Z")

</div>

Hi, when running running in Android mode and attempting to run a program on a device, sometimes all the errors cannot be seen in the console (gradle errors mainly) - where are the error logs stored? Any help is much ap…

---

## [Preserve quality when CSS scaling?](https://discourse.processing.org/t/preserve-quality-when-css-scaling/30223)

<div class="topic-metadata">

**Author:** [@Gershy13](https://discourse.processing.org/u/Gershy13)\
**Replies:** 4\
**Last updated:** [May 22, 2021, 10:05pm UTC](https://discourse.processing.org/t/preserve-quality-when-css-scaling/30223 "2021-05-22T22:05:08Z")

</div>

I made a piece of art in p5Js, and its being displayed on a webpage, so i used CSS to make the canvas (by setting width,height:80%) fit slightly better on the page. Only problem with that is that the quality doesn’t look…

---

## [Hosting sketches and limitations with using mic/camera](https://discourse.processing.org/t/hosting-sketches-and-limitations-with-using-mic-camera/30202)

<div class="topic-metadata">

**Author:** [@Merk](https://discourse.processing.org/u/Merk)\
**Replies:** 5\
**Last updated:** [May 22, 2021, 10:26pm UTC](https://discourse.processing.org/t/hosting-sketches-and-limitations-with-using-mic-camera/30202 "2021-05-22T22:26:18Z")

</div>

I’ve been coding in Processing.org for 18 months, now exploring moving to p5.js, and trying to get my head around lots of things, including where/how to host my sketches. I watched Dan Schiffman’s video on how to use Gi…

---

## [MacOS microphone access](https://discourse.processing.org/t/macos-microphone-access/30096)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 4:10pm UTC](https://discourse.processing.org/t/macos-microphone-access/30096 "2021-05-22T16:10:53Z")

</div>

I have troubles giving my Processing application the necessary microphone access as MacOS (Big Sur in my case) doesn’t open the permission window. I know the issue was discussed here and I did find a workaround opening …

---

## [If (int(geschlecht.charAt(0)) == 119) works, but if (geschlecht == "m") not](https://discourse.processing.org/t/if-int-geschlecht-charat-0-119-works-but-if-geschlecht-m-not/30212)

<div class="topic-metadata">

**Author:** [@Joghurt](https://discourse.processing.org/u/Joghurt)\
**Replies:** 7\
**Last updated:** [May 22, 2021, 1:16pm UTC](https://discourse.processing.org/t/if-int-geschlecht-charat-0-119-works-but-if-geschlecht-m-not/30212 "2021-05-22T13:16:52Z")

</div>

Hi I have a comprehension problem right now. I have a csv table which has, among other things, the column “GESCHLECHT\_HUND” with the possible entries “w” and “m” of type String. When I program it like this it doesn’t w…

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

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