# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?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

---

## [Processing equivalent to P5.js "repeat()"](https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247)

<div class="topic-metadata">

**Author:** [@Taxicletter](https://discourse.processing.org/u/Taxicletter)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 9:56am UTC](https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247 "2022-04-10T09:56:58Z")

</div>

Hi, On the openprocessing website I see in the p5.js programs “repeat()” where you can call a function and set beginning and end-values for variables and the step with which to increase. I know you can use a for-loop o…

---

## [How do I find the last time a specific string is said in a column of a table?](https://discourse.processing.org/t/how-do-i-find-the-last-time-a-specific-string-is-said-in-a-column-of-a-table/36240)

<div class="topic-metadata">

**Author:** [@oZeppy](https://discourse.processing.org/u/oZeppy)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 9:39pm UTC](https://discourse.processing.org/t/how-do-i-find-the-last-time-a-specific-string-is-said-in-a-column-of-a-table/36240 "2022-04-09T21:39:40Z")

</div>

Hi! I’m working on a large project and have gotten to a stage where I need to find the last time a specific string is stated in a column and get a value in a different cell on the same row. I have some ideas on how to do…

---

## [P5 COLOR GRIDS but how?](https://discourse.processing.org/t/p5-color-grids-but-how/36185)

<div class="topic-metadata">

**Author:** [@FrankyWes](https://discourse.processing.org/u/FrankyWes)\
**Replies:** 3\
**Last updated:** [April 9, 2022, 7:35am UTC](https://discourse.processing.org/t/p5-color-grids-but-how/36185 "2022-04-09T07:35:25Z")

</div>

Hi hello! Recently I coded a grid system to create typography. My question, how can I change the color of individual tiles?? Here’s the code, feel free to play around!! int amount = 10; int\[\]\[\] state = new int\[amount…

---

## [PImage and Image switch](https://discourse.processing.org/t/pimage-and-image-switch/36222)

<div class="topic-metadata">

**Author:** [@Parinaz](https://discourse.processing.org/u/Parinaz)\
**Replies:** 2\
**Last updated:** [April 9, 2022, 5:06am UTC](https://discourse.processing.org/t/pimage-and-image-switch/36222 "2022-04-09T05:06:43Z")

</div>

Dear I want to create an atmosphere to generate an structure by switching colors, I wanted those layers to come in order and make that structure. However, when I press every key I designed In the keyPressed event for …

---

## [Need help making grid move with variable](https://discourse.processing.org/t/need-help-making-grid-move-with-variable/36225)

<div class="topic-metadata">

**Author:** [@Voleia](https://discourse.processing.org/u/Voleia)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 2:55am UTC](https://discourse.processing.org/t/need-help-making-grid-move-with-variable/36225 "2022-04-09T02:55:47Z")

</div>

Hello! First of all, I’m new to processing and haven’t done much coding of any sort in a while. I feel like this should be really easy, but I’m having trouble for some reason. I’m trying to create a small game. I have va…

---

## [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…

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

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