# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=85

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

**Page:** 86

---

## [Serial.available does not return correct value](https://discourse.processing.org/t/serial-available-does-not-return-correct-value/36186)

<div class="topic-metadata">

**Author:** [@Smajdalf](https://discourse.processing.org/u/Smajdalf)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 7:36pm UTC](https://discourse.processing.org/t/serial-available-does-not-return-correct-value/36186 "2022-04-08T19:36:01Z")

</div>

The Serial.available() function (on computer side) sometimes returns 0 even if there is something in the buffer. For testing Arduino runs a simple “echo” sketch: void setup() { Serial.begin(115200); } void loop() { …

---

## [How do I make my delay come after my prompt?](https://discourse.processing.org/t/how-do-i-make-my-delay-come-after-my-prompt/36173)

<div class="topic-metadata">

**Author:** [@mikeymike](https://discourse.processing.org/u/mikeymike)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 6:51pm UTC](https://discourse.processing.org/t/how-do-i-make-my-delay-come-after-my-prompt/36173 "2022-04-08T18:51:26Z")

</div>

Hello, I am working on a project for school. I am working with Processing 3 with Arduino uno (both program and board). I am writing a GUI on Processing 3, so I can control Arduino. On my GUI, I have a box for inputs and …

---

## [Dividing a grid into sections using noise](https://discourse.processing.org/t/dividing-a-grid-into-sections-using-noise/36127)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 7:15am UTC](https://discourse.processing.org/t/dividing-a-grid-into-sections-using-noise/36127 "2022-04-08T07:15:56Z")

</div>

Hello, I keep coming back to an idea which I don’t know how to implement correctly or approach effectively. I want to use noise to organically/dynamically subdivide a grid into smaller sections, whilst always remaining…

---

## [BMP image to Gcode for plotter : sharing and asking for idea](https://discourse.processing.org/t/bmp-image-to-gcode-for-plotter-sharing-and-asking-for-idea/36162)

<div class="topic-metadata">

**Author:** [@MadSam](https://discourse.processing.org/u/MadSam)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 5:55am UTC](https://discourse.processing.org/t/bmp-image-to-gcode-for-plotter-sharing-and-asking-for-idea/36162 "2022-04-08T05:55:32Z")

</div>

Hi every one, first sorry for my english. Those last days I wrote a code for export a usable Gcode file for pen plotter or laser, from a bitmap black and white image. The point is to find path along black pixel and don’…

---

## [How to add a texture using GLSL shader](https://discourse.processing.org/t/how-to-add-a-texture-using-glsl-shader/36177)

<div class="topic-metadata">

**Author:** [@mxbr632](https://discourse.processing.org/u/mxbr632)\
**Replies:** 0\
**Last updated:** [April 6, 2022, 7:57pm UTC](https://discourse.processing.org/t/how-to-add-a-texture-using-glsl-shader/36177 "2022-04-06T19:57:38Z")

</div>

Hi everyone, Currently I’m trying to realize a pyramid using Ulam spiral (https://youtu.be/a35KWEjRvc0?list=PLRqwX-V7Uu6ZCtELDdShWS5oZSA3z3HsO , adapted in a P3d figure) for the pattern. The pyramid is composed of cubes…

---

## [How to remove a sketch in p5.js IDE](https://discourse.processing.org/t/how-to-remove-a-sketch-in-p5-js-ide/36165)

<div class="topic-metadata">

**Author:** [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Replies:** 0\
**Last updated:** [April 6, 2022, 3:49pm UTC](https://discourse.processing.org/t/how-to-remove-a-sketch-in-p5-js-ide/36165 "2022-04-06T15:49:27Z")

</div>

I am new in using p5.js environment. I wrote a few sketches and I need to remove part of them. How do I remove a sketch? Thanks A few hours later, I found the following solution: On the sketch page, top left, if we …

---

## [I need to make a Cool T-shirt](https://discourse.processing.org/t/i-need-to-make-a-cool-t-shirt/36168)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 0\
**Last updated:** [April 6, 2022, 5:12pm UTC](https://discourse.processing.org/t/i-need-to-make-a-cool-t-shirt/36168 "2022-04-06T17:12:50Z")

</div>

Can anyone help with this, it would be amazing.

---

## [How can I fill the screen with a given square?](https://discourse.processing.org/t/how-can-i-fill-the-screen-with-a-given-square/19737)

<div class="topic-metadata">

**Author:** [@Tauter](https://discourse.processing.org/u/Tauter)\
**Replies:** 1\
**Last updated:** [April 6, 2022, 1:03pm UTC](https://discourse.processing.org/t/how-can-i-fill-the-screen-with-a-given-square/19737 "2022-04-06T13:03:42Z")

</div>

So at first click nothing happens than, at the second click a square appears from the line of the te two click coordinates, After this i have to fill this square, this is ok I did this. Now how can I fill the screen lik…

---

## [Using Large Screen TV As A Display](https://discourse.processing.org/t/using-large-screen-tv-as-a-display/15013)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 3\
**Last updated:** [April 6, 2022, 1:03pm UTC](https://discourse.processing.org/t/using-large-screen-tv-as-a-display/15013 "2022-04-06T13:03:17Z")

</div>

How do I use a large flat screen TV as a display device for my Bingo sketch?

---

## [Screen Recording Lags](https://discourse.processing.org/t/screen-recording-lags/22648)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 3\
**Last updated:** [April 6, 2022, 1:00pm UTC](https://discourse.processing.org/t/screen-recording-lags/22648 "2022-04-06T13:00:01Z")

</div>

I’ve been using Processing for a couple of years now, and I’ve really enjoyed all the things I’ve learned along the way. Every now and then, I’ll want to show one of my projects to a friend or post about it online. I’ll …

---

## [Small Run screen issue](https://discourse.processing.org/t/small-run-screen-issue/7886)

<div class="topic-metadata">

**Author:** [@Chukolucky](https://discourse.processing.org/u/Chukolucky)\
**Replies:** 4\
**Last updated:** [April 6, 2022, 12:53pm UTC](https://discourse.processing.org/t/small-run-screen-issue/7886 "2022-04-06T12:53:11Z")

</div>

Hello, I have a problem with my Run Screen size, it is very small. I am using Processing 3.5.2 I tried to run processing examples and my previous pde files that worked normally, however currently when I press Run, I hav…

---

## [How to stop program immediately?](https://discourse.processing.org/t/how-to-stop-program-immediately/36156)

<div class="topic-metadata">

**Author:** [@Smajdalf](https://discourse.processing.org/u/Smajdalf)\
**Replies:** 3\
**Last updated:** [April 6, 2022, 12:06pm UTC](https://discourse.processing.org/t/how-to-stop-program-immediately/36156 "2022-04-06T12:06:53Z")

</div>

I want to write a simple program that check number of conditions and stop if some of them is wrong. I have everything in setup() and tried to use exit() for this but it does not work. I cannot return() either because set…

---

## [Force draw between mouse/keyboard events](https://discourse.processing.org/t/force-draw-between-mouse-keyboard-events/36130)

<div class="topic-metadata">

**Author:** [@f.damien12](https://discourse.processing.org/u/f.damien12)\
**Replies:** 4\
**Last updated:** [April 6, 2022, 8:45am UTC](https://discourse.processing.org/t/force-draw-between-mouse-keyboard-events/36130 "2022-04-06T08:45:29Z")

</div>

Hello, In my sketch, I do some quite heavy computations on keyboard or mouse events. These computations can take 1s or so to be processed. If I type on the keyboard while the last computation has not ended, immediately…

---

## [Video capture in MacOS Monterey (12.0.1) not working](https://discourse.processing.org/t/video-capture-in-macos-monterey-12-0-1-not-working/33837)

<div class="topic-metadata">

**Author:** [@nodavid](https://discourse.processing.org/u/nodavid)\
**Replies:** 3\
**Last updated:** [April 6, 2022, 1:52am UTC](https://discourse.processing.org/t/video-capture-in-macos-monterey-12-0-1-not-working/33837 "2022-04-06T01:52:51Z")

</div>

Help! Video capture is not working again. This time in MacOS Monterey (12.0.1). Processing (4.0b1) seems to be finding the camera in my laptop (the camera name prints out in the console ok). Looking at system preferences…

---

## [\[JAVA\] UDP Library - Regarding the 'multicast address' setting](https://discourse.processing.org/t/java-udp-library-regarding-the-multicast-address-setting/36144)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [April 5, 2022, 9:12pm UTC](https://discourse.processing.org/t/java-udp-library-regarding-the-multicast-address-setting/36144 "2022-04-05T21:12:30Z")

</div>

\[JAVA\] UDP Library - Regarding the ‘multicast address’ setting Hello. It is related to the ‘UDP’ library. link : hypermedia.net : : UDP If you do not use ‘multicast address’, 1:N communication is not working? f…

---

## [Graphs and framerate?](https://discourse.processing.org/t/graphs-and-framerate/36141)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [April 5, 2022, 8:00pm UTC](https://discourse.processing.org/t/graphs-and-framerate/36141 "2022-04-05T20:00:08Z")

</div>

How can I make a graph that plots my frame rate? I have the code to make it print on screen but I want to make it into a graph.

---

## [NullPointerException when loading an image](https://discourse.processing.org/t/nullpointerexception-when-loading-an-image/36125)

<div class="topic-metadata">

**Author:** [@Jokpau](https://discourse.processing.org/u/Jokpau)\
**Replies:** 2\
**Last updated:** [April 5, 2022, 11:29am UTC](https://discourse.processing.org/t/nullpointerexception-when-loading-an-image/36125 "2022-04-05T11:29:36Z")

</div>

Hello, I am trying to make a program for which I want to load images with an array. I tried a few variants, but they return a null pointer exception when ran. This is the main code of the program: AllBlocks allBlocks; …

---

## [Java.lang errors on running a sketch – new installs on Windows](https://discourse.processing.org/t/java-lang-errors-on-running-a-sketch-new-installs-on-windows/36112)

<div class="topic-metadata">

**Author:** [@kevinschlei](https://discourse.processing.org/u/kevinschlei)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 11:42pm UTC](https://discourse.processing.org/t/java-lang-errors-on-running-a-sketch-new-installs-on-windows/36112 "2022-04-04T23:42:13Z")

</div>

I have a few students with fresh installs of Processing 4b7, 4b6, and even 3.5.4 that are getting the following error when trying to run a new blank sketch: java.lang.RuntimeException: java.lang.ClassNotFoundException: …

---

## [Send variable from arduino to processing: Error while disabling serialEvent () for COM4 null](https://discourse.processing.org/t/send-variable-from-arduino-to-processing-error-while-disabling-serialevent-for-com4-null/13046)

<div class="topic-metadata">

**Author:** [@waffi](https://discourse.processing.org/u/waffi)\
**Replies:** 6\
**Last updated:** [April 4, 2022, 10:12pm UTC](https://discourse.processing.org/t/send-variable-from-arduino-to-processing-error-while-disabling-serialevent-for-com4-null/13046 "2022-04-04T22:12:26Z")

</div>

Hello everybody I try to send variables from the arduino to processing. From time to time processing brings me this error: Error, disabling serialEvent () for COM4 zero I invite scetch again because then arduino, then…

---

## [Speed of ball in this code](https://discourse.processing.org/t/speed-of-ball-in-this-code/36111)

<div class="topic-metadata">

**Author:** [@bonjaminbanjer](https://discourse.processing.org/u/bonjaminbanjer)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 8:18am UTC](https://discourse.processing.org/t/speed-of-ball-in-this-code/36111 "2022-04-04T08:18:41Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \< Ball b; color labcol = color(200, 0, 0); void setup() { size(600, 600); b = new Ball(width /120, height/500, 15); } void draw() { back…

---

## [Irregular shapes collision detection](https://discourse.processing.org/t/irregular-shapes-collision-detection/10743)

<div class="topic-metadata">

**Author:** [@Hiram-Belgium](https://discourse.processing.org/u/Hiram-Belgium)\
**Replies:** 8\
**Last updated:** [April 4, 2022, 7:56pm UTC](https://discourse.processing.org/t/irregular-shapes-collision-detection/10743 "2022-04-04T19:56:03Z")

</div>

Hello… sorry for my very bad english! I am looking for a method to determine if there are collision between 2 irregular shapes . In the idea of the circle packing but with random shapes ! Thank you for directing my resea…

---

## [Making a labyrinth](https://discourse.processing.org/t/making-a-labyrinth/6869)

<div class="topic-metadata">

**Author:** [@singenya](https://discourse.processing.org/u/singenya)\
**Replies:** 6\
**Last updated:** [April 4, 2022, 8:20am UTC](https://discourse.processing.org/t/making-a-labyrinth/6869 "2022-04-04T08:20:52Z")

</div>

hello i need help in order to make a labyrinth I have already done all the part to make the ellipse move, now I want to create the labyrinth itself and i have 2 ideas : making a labyrinth with some lines or rect Or addi…

---

## [Permissions problem on Monterrey](https://discourse.processing.org/t/permissions-problem-on-monterrey/36044)

<div class="topic-metadata">

**Author:** [@patofoto](https://discourse.processing.org/u/patofoto)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 7:02am UTC](https://discourse.processing.org/t/permissions-problem-on-monterrey/36044 "2022-04-04T07:02:40Z")

</div>

Just getting my feet wet. Want to use video feed from M1Max MacBook Pro. Using the GettingStartedCapture example. Getting a permissions error message on console. Cannot seem to find a previous post relating to this. Any …

---

## [The Nature of Code solutions to exercises?](https://discourse.processing.org/t/the-nature-of-code-solutions-to-exercises/36085)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 2\
**Last updated:** [April 3, 2022, 9:45pm UTC](https://discourse.processing.org/t/the-nature-of-code-solutions-to-exercises/36085 "2022-04-03T21:45:41Z")

</div>

I’m trying to find the solutions of the book to compare them to mine. Are they available somewhere?

---

## [Having a hard time rotating image about a point](https://discourse.processing.org/t/having-a-hard-time-rotating-image-about-a-point/36083)

<div class="topic-metadata">

**Author:** [@Xwalt](https://discourse.processing.org/u/Xwalt)\
**Replies:** 5\
**Last updated:** [April 3, 2022, 11:05am UTC](https://discourse.processing.org/t/having-a-hard-time-rotating-image-about-a-point/36083 "2022-04-03T11:05:05Z")

</div>

PImage base; PImage midarm; PImage secondarm; int baserotation; int midarmrotation; int secondarmrotation; int baseX ; int baseY ; int midarmX ; int midarmY; int secondarmX ; int secondarmY ; import controlP5.\*; Control…

---

## [RGB values of screen pixels (not from a loaded image)](https://discourse.processing.org/t/rgb-values-of-screen-pixels-not-from-a-loaded-image/36078)

<div class="topic-metadata">

**Author:** [@ChrisR](https://discourse.processing.org/u/ChrisR)\
**Replies:** 3\
**Last updated:** [April 2, 2022, 8:36pm UTC](https://discourse.processing.org/t/rgb-values-of-screen-pixels-not-from-a-loaded-image/36078 "2022-04-02T20:36:12Z")

</div>

Hi, I want to capture and store the RGB values from an area of pixels anywhere on the screen (- not from a preloaded image - but of the screen) and that’s where I’m stumbling. As all the examples I’ve seen, first load an…

---

## [Pure Java random string code to Processing random string code](https://discourse.processing.org/t/pure-java-random-string-code-to-processing-random-string-code/36072)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [April 2, 2022, 1:56pm UTC](https://discourse.processing.org/t/pure-java-random-string-code-to-processing-random-string-code/36072 "2022-04-02T13:56:10Z")

</div>

how do I make this program in processing rather than pure java? // Java program generate a random AlphaNumeric String // using Math.random() method public class RandomString { // function to generate a ran…

---

## [Creating a Gauge Bar with percentage](https://discourse.processing.org/t/creating-a-gauge-bar-with-percentage/36032)

<div class="topic-metadata">

**Author:** [@KingKvn](https://discourse.processing.org/u/KingKvn)\
**Replies:** 6\
**Last updated:** [April 2, 2022, 9:59am UTC](https://discourse.processing.org/t/creating-a-gauge-bar-with-percentage/36032 "2022-04-02T09:59:04Z")

</div>

Good day, I’ve been given an assignment to code a program that requires me to create 4 Leds that change to 2 different colors depending on which mouse button is pressed. If the right mouse button is pressed, the gauge ba…

---

## [Remove all items from ControlP5 dropdownlist](https://discourse.processing.org/t/remove-all-items-from-controlp5-dropdownlist/36060)

<div class="topic-metadata">

**Author:** [@ybr](https://discourse.processing.org/u/ybr)\
**Replies:** 1\
**Last updated:** [April 1, 2022, 8:22pm UTC](https://discourse.processing.org/t/remove-all-items-from-controlp5-dropdownlist/36060 "2022-04-01T20:22:33Z")

</div>

Hi, I’m filling a controlp5 dropddownlist with columns from a CSV file. for (int i=0; i\<columns.length; i++) { time.addItem(columns\[i\], i); } But when I load a different file, the controlp5 dropdownlist should sh…

---

## [Accessing pixel array of PGraphics buffer is very slow if P3D render used](https://discourse.processing.org/t/accessing-pixel-array-of-pgraphics-buffer-is-very-slow-if-p3d-render-used/36034)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [April 1, 2022, 8:43am UTC](https://discourse.processing.org/t/accessing-pixel-array-of-pgraphics-buffer-is-very-slow-if-p3d-render-used/36034 "2022-04-01T08:43:02Z")

</div>

Hi Trying to display PGraphics buffer as ascii characters. The method is to render things to a PGraphics buffer, then iterate through the pixels manually and map them to ascii characters. It works fine when the PGraphi…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=84)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=86)
