# Latest

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

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

**Page:** 463

---

## [pushMatrix() cannot use push more than 32 times](https://discourse.processing.org/t/pushmatrix-cannot-use-push-more-than-32-times/12860)

<div class="topic-metadata">

**Author:** [@mezhaka](https://discourse.processing.org/u/mezhaka)\
**Replies:** 15\
**Last updated:** [July 24, 2019, 9:53am UTC](https://discourse.processing.org/t/pushmatrix-cannot-use-push-more-than-32-times/12860 "2019-07-24T09:53:25Z")

</div>

Why is this not a valid patch? I get a “RuntimeException: pushMatrix() cannot use push more than 32 times” error in a snippet that seems perfectly valid for me: void setup() { size(700, 500); } void dra…

---

## [Review / Refactor / Example of p5 UI](https://discourse.processing.org/t/review-refactor-example-of-p5-ui/12838)

<div class="topic-metadata">

**Author:** [@hellonearthis](https://discourse.processing.org/u/hellonearthis)\
**Replies:** 2\
**Last updated:** [July 24, 2019, 8:53am UTC](https://discourse.processing.org/t/review-refactor-example-of-p5-ui/12838 "2019-07-24T08:53:43Z")

</div>

I’m working on a UI using p5.js you can see it here in p5 webeditor. It is rendered from the game loop, but could be even driven using redraw() frunction. But I’m ok with it hogging the game loop for now. No I don’t …

---

## [How to loop faster than 60 times per second?](https://discourse.processing.org/t/how-to-loop-faster-than-60-times-per-second/12890)

<div class="topic-metadata">

**Author:** [@Luigi](https://discourse.processing.org/u/Luigi)\
**Replies:** 8\
**Last updated:** [July 24, 2019, 8:25am UTC](https://discourse.processing.org/t/how-to-loop-faster-than-60-times-per-second/12890 "2019-07-24T08:25:58Z")

</div>

Hi, I am creating a graphic user interface for a machine controled by an arduino The arduino sends serial data to processing at 120 SPS and my monitor displays 60 images per second. the only way to draw those values on…

---

## [Check direction of the mouse compared to a point in space](https://discourse.processing.org/t/check-direction-of-the-mouse-compared-to-a-point-in-space/12883)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 19\
**Last updated:** [July 24, 2019, 7:20am UTC](https://discourse.processing.org/t/check-direction-of-the-mouse-compared-to-a-point-in-space/12883 "2019-07-24T07:20:52Z")

</div>

Hi, i wonder how to check and know the directions (left,right,up and down) of the mouse compared to a point in space. void setup(){ size(300,300); } void draw(){ background(255); PVector dotPos = new PVector(150,…

---

## [Static/Crackling sound](https://discourse.processing.org/t/static-crackling-sound/12945)

<div class="topic-metadata">

**Author:** [@blosh](https://discourse.processing.org/u/blosh)\
**Replies:** 0\
**Last updated:** [July 24, 2019, 4:36am UTC](https://discourse.processing.org/t/static-crackling-sound/12945 "2019-07-24T04:36:37Z")

</div>

When using the Sound library on Android, I sometimes get a static or crackling noise. It usually occurs when playing too many sound files at the same time. It is definitely not from something else on my phone since closi…

---

## [Electric Fields App](https://discourse.processing.org/t/electric-fields-app/12849)

<div class="topic-metadata">

**Author:** [@gbenedisgrab](https://discourse.processing.org/u/gbenedisgrab)\
**Replies:** 2\
**Last updated:** [July 24, 2019, 2:18am UTC](https://discourse.processing.org/t/electric-fields-app/12849 "2019-07-24T02:18:24Z")

</div>

Hi All, I am working on my 3rd blog post and in the process I created this visualization of the Electric field for 4 randomly placed charges. Let me know what you think. https://efield-lines.glitch.me/

---

## [MiM – A modern interface for Mathematics](https://discourse.processing.org/t/mim-a-modern-interface-for-mathematics/12935)

<div class="topic-metadata">

**Author:** [@Oskar](https://discourse.processing.org/u/Oskar)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 12:03am UTC](https://discourse.processing.org/t/mim-a-modern-interface-for-mathematics/12935 "2019-07-24T00:03:58Z")

</div>

Hi Everyone! @Alexandra We’re happy to share a very early demo for the prototype of Math in Motion, and we would love to get your feedback. :+1: You can follow the link below to try the editor for yourselves, and yo…

---

## [Sending Values Between Functions](https://discourse.processing.org/t/sending-values-between-functions/12927)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 8:13pm UTC](https://discourse.processing.org/t/sending-values-between-functions/12927 "2019-07-23T20:13:19Z")

</div>

I am trying to use the p5js.gui library to collect a simple text input and then just output that input to the screen. I have tried a number of different approaches but keep running into errors. This is what I have so far…

---

## [Class not defined error](https://discourse.processing.org/t/class-not-defined-error/12862)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 4:57pm UTC](https://discourse.processing.org/t/class-not-defined-error/12862 "2019-07-23T16:57:54Z")

</div>

import ddf.minim.; import ddf.minim.ugens.; Minim minim; AudioInput in; AudioRecorder recorder; AudioOutput out; FilePlayer player; int name = 1; int r = 200; int r2 = 80; boolean recording; void setup() { textSize(2…

---

## [CLOSED How to get current colorMode](https://discourse.processing.org/t/closed-how-to-get-current-colormode/12812)

<div class="topic-metadata">

**Author:** [@monotone](https://discourse.processing.org/u/monotone)\
**Replies:** 5\
**Last updated:** [July 23, 2019, 3:13pm UTC](https://discourse.processing.org/t/closed-how-to-get-current-colormode/12812 "2019-07-23T15:13:48Z")

</div>

Hi, I try to get the current colorMode to adapt my code behaviour. But I didn’t found anyway to get it ? I try colorMode() without params but nedd at list one. Any idea ? Thanks & regards, Constant

---

## [Alpha not working in fill()](https://discourse.processing.org/t/alpha-not-working-in-fill/12916)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 3\
**Last updated:** [July 23, 2019, 2:31pm UTC](https://discourse.processing.org/t/alpha-not-working-in-fill/12916 "2019-07-23T14:31:28Z")

</div>

Hello, I’m taking a number of Processing sketches and converting them to p5.js. I have converted this sketch from Processing to p5 but I can’t quite figure out why the alpha isn’t working here. Any insights? // Arrays …

---

## [What is declaring ...... how to declare.... Where can I read these basic things](https://discourse.processing.org/t/what-is-declaring-how-to-declare-where-can-i-read-these-basic-things/12863)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 6\
**Last updated:** [July 23, 2019, 1:17pm UTC](https://discourse.processing.org/t/what-is-declaring-how-to-declare-where-can-i-read-these-basic-things/12863 "2019-07-23T13:17:52Z")

</div>

What is declaring … how to declare… Where can I read these basic things …

---

## [Need help for a Battleships game in Processing](https://discourse.processing.org/t/need-help-for-a-battleships-game-in-processing/12818)

<div class="topic-metadata">

**Author:** [@chinzi](https://discourse.processing.org/u/chinzi)\
**Replies:** 17\
**Last updated:** [July 23, 2019, 12:45pm UTC](https://discourse.processing.org/t/need-help-for-a-battleships-game-in-processing/12818 "2019-07-23T12:45:53Z")

</div>

Hey everybody, Im new here, Im new to programming with Java and new to Processing. I want to code a Battleships game. It should look something like this in the end. I apologize for my bad english, but I hope you can und…

---

## [Radio code (sound and Arduino)](https://discourse.processing.org/t/radio-code-sound-and-arduino/9175)

<div class="topic-metadata">

**Author:** [@Mimal](https://discourse.processing.org/u/Mimal)\
**Replies:** 12\
**Last updated:** [July 23, 2019, 11:33am UTC](https://discourse.processing.org/t/radio-code-sound-and-arduino/9175 "2019-07-23T11:33:30Z")

</div>

Hello, I need to code a program that retrieves a value from the Arduino card and plays a sound based on that value. The value varies according to the position of a potentiometer: an Arduino program transforms the voltag…

---

## [How to replace audio input from mp3 to microphone](https://discourse.processing.org/t/how-to-replace-audio-input-from-mp3-to-microphone/12912)

<div class="topic-metadata">

**Author:** [@bacillus](https://discourse.processing.org/u/bacillus)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 9:25am UTC](https://discourse.processing.org/t/how-to-replace-audio-input-from-mp3-to-microphone/12912 "2019-07-23T09:25:33Z")

</div>

Hello everyone! I am new in Processing and I could use some help. I have this code that makes use of the Minim library and visualizes a given sound file: import ddf.minim.\*; import ddf.minim.analysis.\*; Minim minim; Au…

---

## [Add more Gravity Balls & Link a button to restart a screen... Beginner Coder](https://discourse.processing.org/t/add-more-gravity-balls-link-a-button-to-restart-a-screen-beginner-coder/12903)

<div class="topic-metadata">

**Author:** [@mclingerman](https://discourse.processing.org/u/mclingerman)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 2:01am UTC](https://discourse.processing.org/t/add-more-gravity-balls-link-a-button-to-restart-a-screen-beginner-coder/12903 "2019-07-23T02:01:43Z")

</div>

Hey guys! I’ve just started learning to code in processing… Please forgive my “simple” approach. I have 2 things I need help with. I have looked for answers to these issues but have not been successful. Connecting my…

---

## [Trying to convert hex into a bin file, but, get a NumberFormat Exception](https://discourse.processing.org/t/trying-to-convert-hex-into-a-bin-file-but-get-a-numberformat-exception/12869)

<div class="topic-metadata">

**Author:** [@RookieProgrammer](https://discourse.processing.org/u/RookieProgrammer)\
**Replies:** 19\
**Last updated:** [July 23, 2019, 12:14am UTC](https://discourse.processing.org/t/trying-to-convert-hex-into-a-bin-file-but-get-a-numberformat-exception/12869 "2019-07-23T00:14:12Z")

</div>

Hi, dear gentlemen and ladies. I’m developing a program that reads a file contained in an SD card via Arduino and prints the data of this file in hexadecimal format. At the same time, I am trying to create a program in …

---

## [What are the enclosed numbers on the left hand side in the console when I "print"?](https://discourse.processing.org/t/what-are-the-enclosed-numbers-on-the-left-hand-side-in-the-console-when-i-print/12874)

<div class="topic-metadata">

**Author:** [@femke.blanco](https://discourse.processing.org/u/femke.blanco)\
**Replies:** 1\
**Last updated:** [July 22, 2019, 10:22pm UTC](https://discourse.processing.org/t/what-are-the-enclosed-numbers-on-the-left-hand-side-in-the-console-when-i-print/12874 "2019-07-22T22:22:27Z")

</div>

What are the enclosed numbers on the left hand side in the console when I “print”? https://editor.p5js.org/femkeblanco/sketches/GFcm8qZgP Thanks in advance.

---

## [Can't get audio to play when loading](https://discourse.processing.org/t/cant-get-audio-to-play-when-loading/10567)

<div class="topic-metadata">

**Author:** [@Indieminor](https://discourse.processing.org/u/Indieminor)\
**Replies:** 4\
**Last updated:** [July 22, 2019, 7:27pm UTC](https://discourse.processing.org/t/cant-get-audio-to-play-when-loading/10567 "2019-07-22T19:27:21Z")

</div>

Hey all, I would love to use p5.js for my audio/visual project, but I am having a hard time even getting a sound to load on setup. Here is my code: let song; function preload() { song = loadSound('sounds\\Changing i…

---

## [How do I create bubble writing in processing](https://discourse.processing.org/t/how-do-i-create-bubble-writing-in-processing/12878)

<div class="topic-metadata">

**Author:** [@abdulqureshi](https://discourse.processing.org/u/abdulqureshi)\
**Replies:** 3\
**Last updated:** [July 22, 2019, 5:08pm UTC](https://discourse.processing.org/t/how-do-i-create-bubble-writing-in-processing/12878 "2019-07-22T17:08:13Z")

</div>

I need urgent help. I’ve been told to complete some work for my uni place.The work is asking for me to create a sign that says MMU in bubble writing format. Please can someone help me

---

## [Why this code not working](https://discourse.processing.org/t/why-this-code-not-working/12886)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 4\
**Last updated:** [July 22, 2019, 3:27pm UTC](https://discourse.processing.org/t/why-this-code-not-working/12886 "2019-07-22T15:27:21Z")

</div>

PImage img; void setup() { size(200, 200); img = loadImage("sunflower.jpg"); } void draw() { loadPixels(); // Since we are going to access the image's pixels too img.loadPixels(); for (int y = 0; y \< he…

---

## [Need Help Connecting Points in 2D Array](https://discourse.processing.org/t/need-help-connecting-points-in-2d-array/12803)

<div class="topic-metadata">

**Author:** [@jmorri36](https://discourse.processing.org/u/jmorri36)\
**Replies:** 8\
**Last updated:** [July 22, 2019, 9:15am UTC](https://discourse.processing.org/t/need-help-connecting-points-in-2d-array/12803 "2019-07-22T09:15:45Z")

</div>

Hi, The sketch that I’m working on makes a random ripple on the screen, or when you click inside the ripple. Right now I have it with a bunch of points moving up and down on the Z axis along a grid. I’m having trouble…

---

## [\[Processing.net libraries\] Error Client got end of stream](https://discourse.processing.org/t/processing-net-libraries-error-client-got-end-of-stream/12882)

<div class="topic-metadata">

**Author:** [@Dupond](https://discourse.processing.org/u/Dupond)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 8:50am UTC](https://discourse.processing.org/t/processing-net-libraries-error-client-got-end-of-stream/12882 "2019-07-22T08:50:17Z")

</div>

Hello, I am trying to debug a program to do so I have test 2 programms from Processing.net librarie : https://www.processing.org/reference/libraries/net/Client\_write\_.html https://www.processing.org/reference/librarie…

---

## [Kinect V2 Point Cloud Example Errors](https://discourse.processing.org/t/kinect-v2-point-cloud-example-errors/12881)

<div class="topic-metadata">

**Author:** [@julian](https://discourse.processing.org/u/julian)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 4:25am UTC](https://discourse.processing.org/t/kinect-v2-point-cloud-example-errors/12881 "2019-07-22T04:25:09Z")

</div>

Hello, I recently made a sketch using the Open Kinect for Processing Library and a Kinect v1 Model 1414. Long story short, the 1414 broke, so I just got a V2 and have been going through the examples included with the li…

---

## [I cannot declare and create an object in one line](https://discourse.processing.org/t/i-cannot-declare-and-create-an-object-in-one-line/12879)

<div class="topic-metadata">

**Author:** [@femke.blanco](https://discourse.processing.org/u/femke.blanco)\
**Replies:** 1\
**Last updated:** [July 22, 2019, 12:25am UTC](https://discourse.processing.org/t/i-cannot-declare-and-create-an-object-in-one-line/12879 "2019-07-22T00:25:59Z")

</div>

I’ve come across two ways of defining classes in p5.js. The first: https://editor.p5js.org/femkeblanco/sketches/Vycw0YkNr The second: https://editor.p5js.org/femkeblanco/sketches/YXi8pCrRQ I presume the second way, …

---

## [Help with playing a sound](https://discourse.processing.org/t/help-with-playing-a-sound/12866)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 2\
**Last updated:** [July 21, 2019, 9:40pm UTC](https://discourse.processing.org/t/help-with-playing-a-sound/12866 "2019-07-21T21:40:54Z")

</div>

Hi, I created an ‘oscillator’ using the sound library but it is not working. Please help, thanks. Here’s the code: add\_library('sound') def setup(): size(200,200) v\_osc=SinOsc(this) v\_osc.play(440,0.5) …

---

## [Pls critique my code!](https://discourse.processing.org/t/pls-critique-my-code/12855)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 4\
**Last updated:** [July 21, 2019, 8:06pm UTC](https://discourse.processing.org/t/pls-critique-my-code/12855 "2019-07-21T20:06:21Z")

</div>

Hi. I’m having a lot of problems with things not working the way they should, and things not working the way other people say they should. Can you please critique my code? I’m new to coding and just hacking things togeth…

---

## [When I Retrieve The Amplitudes From An Audio Source - The Data Often Comes Back Different. Whats The Best Way To Regulate The Data So I Get The Same Numbers Consistently?](https://discourse.processing.org/t/when-i-retrieve-the-amplitudes-from-an-audio-source-the-data-often-comes-back-different-whats-the-best-way-to-regulate-the-data-so-i-get-the-same-numbers-consistently/12865)

<div class="topic-metadata">

**Author:** [@JacksonEnnis](https://discourse.processing.org/u/JacksonEnnis)\
**Replies:** 2\
**Last updated:** [July 21, 2019, 7:17pm UTC](https://discourse.processing.org/t/when-i-retrieve-the-amplitudes-from-an-audio-source-the-data-often-comes-back-different-whats-the-best-way-to-regulate-the-data-so-i-get-the-same-numbers-consistently/12865 "2019-07-21T19:17:09Z")

</div>

Hello friendos! I have just finished my first hackathon project and… it was grueling. The official end is tonight. Pretty much, the project takes an audio file, and allows the user to select a “cut” from it. This cut h…

---

## [Exporting Barnsley fern to SVG](https://discourse.processing.org/t/exporting-barnsley-fern-to-svg/12857)

<div class="topic-metadata">

**Author:** [@dr\_vblschrf](https://discourse.processing.org/u/dr_vblschrf)\
**Replies:** 5\
**Last updated:** [July 21, 2019, 4:49pm UTC](https://discourse.processing.org/t/exporting-barnsley-fern-to-svg/12857 "2019-07-21T16:49:24Z")

</div>

Hello. I’m going to start by saying that I’m very new to coding. Sorry for my inexperience! I’m trying to export a Barnsley fern code I found from Rosetta Code to an SVG. It needs to be SVG as it is for a vector art pro…

---

## [Canvas is not updated as expected](https://discourse.processing.org/t/canvas-is-not-updated-as-expected/12791)

<div class="topic-metadata">

**Author:** [@MaWi](https://discourse.processing.org/u/MaWi)\
**Replies:** 3\
**Last updated:** [July 21, 2019, 2:47pm UTC](https://discourse.processing.org/t/canvas-is-not-updated-as-expected/12791 "2019-07-21T14:47:15Z")

</div>

Hi, I´m trying to create a new object each time i press a key, but the previous drawn object doesn´t disappear completly. There is a polyline I draw inside my objects Display() method that disappears and several Points,…

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

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