# Latest

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

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

**Page:** 161

---

## [Fractal program](https://discourse.processing.org/t/fractal-program/34944)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [February 2, 2022, 8:57pm UTC](https://discourse.processing.org/t/fractal-program/34944 "2022-02-02T20:57:24Z")

</div>

An extension of the work Ive been doing with shaders, this will hopefully be a visualizer for music. And will be available for android. sorry about the poor quality it was recorded using windows game bar, …

---

## [Incorrect .loop() behavior in p5.SoundFile](https://discourse.processing.org/t/incorrect-loop-behavior-in-p5-soundfile/34947)

<div class="topic-metadata">

**Author:** [@jaschanarveson](https://discourse.processing.org/u/jaschanarveson)\
**Replies:** 0\
**Last updated:** [February 3, 2022, 12:59am UTC](https://discourse.processing.org/t/incorrect-loop-behavior-in-p5-soundfile/34947 "2022-02-03T00:59:52Z")

</div>

The .loop() function in p5.SoundFile isn’t working correctly for me. Behavior: I set loop start and end points: it will start at the start point, but then loop back to 0 upon hitting the end point, instead of looping b…

---

## [Check if a point is inside of a triangle](https://discourse.processing.org/t/check-if-a-point-is-inside-of-a-triangle/34941)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 4\
**Last updated:** [February 2, 2022, 3:27pm UTC](https://discourse.processing.org/t/check-if-a-point-is-inside-of-a-triangle/34941 "2022-02-02T15:27:33Z")

</div>

Hi, how can I check if a point is inside of a triangle? Is there a mathematical formula for it? And what about any N sided shape? And assuming this is true: Thank you!

---

## [Using filter() inside of a PGraphics canvas?](https://discourse.processing.org/t/using-filter-inside-of-a-pgraphics-canvas/34878)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 3\
**Last updated:** [February 2, 2022, 3:26pm UTC](https://discourse.processing.org/t/using-filter-inside-of-a-pgraphics-canvas/34878 "2022-02-02T15:26:18Z")

</div>

Learning about using the PGraphics to crate and edit images and graphics before drawing them. Or, in this case, in order to be sent out via Syphon. Syphon is essentially an invisible video cable between different apps on…

---

## [screenX screenY equivalent in p5.js](https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [February 2, 2022, 1:03pm UTC](https://discourse.processing.org/t/screenx-screeny-equivalent-in-p5-js/10581 "2022-02-02T13:03:36Z")

</div>

Wow, p5.js is awesome I just look for a screenX screenY equivalent together with orbitControl() Thanks for a great language! Chrisir

---

## [Code is not executed in Processing, but in p5.js Web Editor](https://discourse.processing.org/t/code-is-not-executed-in-processing-but-in-p5-js-web-editor/34867)

<div class="topic-metadata">

**Author:** [@Master\_Kneater](https://discourse.processing.org/u/Master_Kneater)\
**Replies:** 21\
**Last updated:** [February 2, 2022, 10:08am UTC](https://discourse.processing.org/t/code-is-not-executed-in-processing-but-in-p5-js-web-editor/34867 "2022-02-02T10:08:44Z")

</div>

Hello everyone, as the title suggests I am having a problem running my javascript code in Processing. However, if I copy this code into the p5.js web editor (https://editor.p5js.org/) the code works without problems. I u…

---

## [Which Raspberry Pi should I buy?](https://discourse.processing.org/t/which-raspberry-pi-should-i-buy/34787)

<div class="topic-metadata">

**Author:** [@SuyashN](https://discourse.processing.org/u/SuyashN)\
**Replies:** 14\
**Last updated:** [February 1, 2022, 9:08pm UTC](https://discourse.processing.org/t/which-raspberry-pi-should-i-buy/34787 "2022-02-01T21:08:19Z")

</div>

Hey everyone… I want to dive into making kinetic sculptures with processing running on Raspberry Pi at backend (so that it can be permanently dedicated and fixed to the sculpture) Which Raspberry Pi should I get and wh…

---

## [How to select the right computer specs for a full time digital art installation using Processing?](https://discourse.processing.org/t/how-to-select-the-right-computer-specs-for-a-full-time-digital-art-installation-using-processing/34632)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 12\
**Last updated:** [February 1, 2022, 9:02pm UTC](https://discourse.processing.org/t/how-to-select-the-right-computer-specs-for-a-full-time-digital-art-installation-using-processing/34632 "2022-02-01T21:02:47Z")

</div>

I like to make permanent art installations that use Processing. Think museums or even a few weeks at an art gallery. A lot of the time they are fairly graphical and involve cameras, projectors, and other screens. My qu…

---

## [Position loop with specific colors](https://discourse.processing.org/t/position-loop-with-specific-colors/34935)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 5\
**Last updated:** [February 1, 2022, 8:39pm UTC](https://discourse.processing.org/t/position-loop-with-specific-colors/34935 "2022-02-01T20:39:41Z")

</div>

Hi there! I have a loop with 5 quads on random positions and I want to assign a specific color to every quad. How could I control that? Thanks! void setup() { size(1000, 1000); background(255); for(int j=0; j\<5…

---

## [Having problem with the capturing video with Processing 4](https://discourse.processing.org/t/having-problem-with-the-capturing-video-with-processing-4/34862)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 6\
**Last updated:** [February 1, 2022, 3:23pm UTC](https://discourse.processing.org/t/having-problem-with-the-capturing-video-with-processing-4/34862 "2022-02-01T15:23:49Z")

</div>

Having problem with the capturing video with Processing 4 \< (java.exe:21916): GStreamer-WARNING \*\*: Failed to load plugin 'E:\\gstreamer\\1.0\\x86\_64\\lib\\gstreamer-1.0\\libgstlibvisual.dll': 'E:\\gstreamer\\1.0\\x86\_64\\lib\\g…

---

## [Lag, fullScreen and anything you can think of](https://discourse.processing.org/t/lag-fullscreen-and-anything-you-can-think-of/34741)

<div class="topic-metadata">

**Author:** [@Slien](https://discourse.processing.org/u/Slien)\
**Replies:** 2\
**Last updated:** [February 1, 2022, 11:42am UTC](https://discourse.processing.org/t/lag-fullscreen-and-anything-you-can-think-of/34741 "2022-02-01T11:42:17Z")

</div>

Hello There, I’m new to processing and this forum, this is actually my first post. I’ve been using processing for a small project, a simple platformer with 4 levels. I’m aware that processing doesn’t specialize in game …

---

## [I need a program to create sample banks for a old sampler. Is it possible?](https://discourse.processing.org/t/i-need-a-program-to-create-sample-banks-for-a-old-sampler-is-it-possible/34790)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 8\
**Last updated:** [February 1, 2022, 1:46am UTC](https://discourse.processing.org/t/i-need-a-program-to-create-sample-banks-for-a-old-sampler-is-it-possible/34790 "2022-02-01T01:46:53Z")

</div>

Hi! I recently got a vintage sampler. (Korg electribe es-1) Its a machine that you can build music on by adding samples and laying it out in patterns. However… To make it easy changeing between different sets of sampl…

---

## [Flow fields code](https://discourse.processing.org/t/flow-fields-code/34592)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 14\
**Last updated:** [February 1, 2022, 12:19am UTC](https://discourse.processing.org/t/flow-fields-code/34592 "2022-02-01T00:19:35Z")

</div>

Hi there! I am trying to learn about flow fields a with a nature of code tutorial. https://natureofcode.com/book/chapter-6-autonomous-agents/ This is really difficult to me, but I would like to play with code looking f…

---

## [Date from Arduino in Processing](https://discourse.processing.org/t/date-from-arduino-in-processing/34909)

<div class="topic-metadata">

**Author:** [@musa](https://discourse.processing.org/u/musa)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 7:38pm UTC](https://discourse.processing.org/t/date-from-arduino-in-processing/34909 "2022-01-31T19:38:02Z")

</div>

Hi guys, I want to sent my data ( PPG-ECG wavs) from Arduino uno in Processing and then plot it I tried to write a code for it. that partially worked and now I want to extend it. So instead of plotting the data as poi…

---

## [\[SimplePBR\] Physically based rendering library](https://discourse.processing.org/t/simplepbr-physically-based-rendering-library/23077)

<div class="topic-metadata">

**Author:** [@kosowski](https://discourse.processing.org/u/kosowski)\
**Replies:** 6\
**Last updated:** [January 31, 2022, 4:21pm UTC](https://discourse.processing.org/t/simplepbr-physically-based-rendering-library/23077 "2022-01-31T16:21:58Z")

</div>

I have created a library for physically based rendering (PBR) in Processing. PBR is a rendering method for more accurate (and nicer) lighting of surfaces, here’s a demo video . At the core, is just a replacement of t…

---

## [LoadPixels() on SVG with P5.js](https://discourse.processing.org/t/loadpixels-on-svg-with-p5-js/34874)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 3:16pm UTC](https://discourse.processing.org/t/loadpixels-on-svg-with-p5-js/34874 "2022-01-31T15:16:21Z")

</div>

Hello, I’m working with \[OMSD\](https://opensheetmusicdisplay.github.io/) and the music score is rendered on a div element. How Can I get the image’s pixels. I only need this for counting the black ones. Some example co…

---

## [Stop while (myPort.available() \> 0)](https://discourse.processing.org/t/stop-while-myport-available-0/34825)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 4\
**Last updated:** [January 31, 2022, 1:17pm UTC](https://discourse.processing.org/t/stop-while-myport-available-0/34825 "2022-01-31T13:17:16Z")

</div>

Hi, beginner here, so please be gentle :slight\_smile: I am trying to stop a while look if a timer runs out (millis(). But I just cannot find a way of doing it. What I am trying to do is if a certain string is not recei…

---

## [Serial.write(int) only sends the first byte](https://discourse.processing.org/t/serial-write-int-only-sends-the-first-byte/34888)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 7\
**Last updated:** [January 31, 2022, 11:35am UTC](https://discourse.processing.org/t/serial-write-int-only-sends-the-first-byte/34888 "2022-01-31T11:35:01Z")

</div>

Hi, Following this topic, I made a simple Sketch to write an integer from Processing to Arduino. The help for Serial.write in Processing 3 and 4 are different. P3 (on disk) has “src int: data to write” so it should ac…

---

## [I am a n00b and trying to run processing on a pi 400 xubuntu/arm64](https://discourse.processing.org/t/i-am-a-n00b-and-trying-to-run-processing-on-a-pi-400-xubuntu-arm64/25586)

<div class="topic-metadata">

**Author:** [@porphiron](https://discourse.processing.org/u/porphiron)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 6:11am UTC](https://discourse.processing.org/t/i-am-a-n00b-and-trying-to-run-processing-on-a-pi-400-xubuntu-arm64/25586 "2022-01-31T06:11:09Z")

</div>

Hi all, I am having a devil of a job getting processing to run on the pi 400, it ran fine on my pi 4 (4GB) which i no longer have, both run arm64/xubuntu Ive tried both install options for pi (curl and tarball). the c…

---

## [Help extending the editor - add a move line up/down edit function?](https://discourse.processing.org/t/help-extending-the-editor-add-a-move-line-up-down-edit-function/34899)

<div class="topic-metadata">

**Author:** [@jpagliaccio](https://discourse.processing.org/u/jpagliaccio)\
**Replies:** 3\
**Last updated:** [January 31, 2022, 1:09am UTC](https://discourse.processing.org/t/help-extending-the-editor-add-a-move-line-up-down-edit-function/34899 "2022-01-31T01:09:32Z")

</div>

For the native Processing editor, I am looking for a little direction on making editor enhancements like move current line up/down that is in VS Code. This would be for the native editor on Linux for example.

---

## [p5Gui and noLoop()](https://discourse.processing.org/t/p5gui-and-noloop/34903)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 12:32am UTC](https://discourse.processing.org/t/p5gui-and-noloop/34903 "2022-01-31T00:32:29Z")

</div>

Hello, I’m experimenting with p5Gui library. I’m trying to understand this example: p5.gui/sketch.js at master · bitcraftlab/p5.gui · GitHub I would like to create a drop down menu for experimenting with blend modes a…

---

## [How do i make an images sequence run between multiple windows?](https://discourse.processing.org/t/how-do-i-make-an-images-sequence-run-between-multiple-windows/34901)

<div class="topic-metadata">

**Author:** [@green](https://discourse.processing.org/u/green)\
**Replies:** 0\
**Last updated:** [January 30, 2022, 3:53pm UTC](https://discourse.processing.org/t/how-do-i-make-an-images-sequence-run-between-multiple-windows/34901 "2022-01-30T15:53:41Z")

</div>

Hi guys, i’m having troubles understanding how to make a sequence of images (stored in a class object) run between multiple sketcehs made with the PApplet class. Here’s the code: int sec = 5; int fr = 30; int fn = sec\*f…

---

## [Slit each individual the time grid that slits from canvas](https://discourse.processing.org/t/slit-each-individual-the-time-grid-that-slits-from-canvas/34789)

<div class="topic-metadata">

**Author:** [@psamead](https://discourse.processing.org/u/psamead)\
**Replies:** 6\
**Last updated:** [January 30, 2022, 3:42pm UTC](https://discourse.processing.org/t/slit-each-individual-the-time-grid-that-slits-from-canvas/34789 "2022-01-30T15:42:17Z")

</div>

Hi my friends, I am a newbie. Could anybody give me some idea on this topic? There is a primary slit, which divides into grids, then each grid is divided into horizontal pieces. I try to follow the tutorial on slit …

---

## [Running a processing java app on a raspberry pi changes everything over the Y axis](https://discourse.processing.org/t/running-a-processing-java-app-on-a-raspberry-pi-changes-everything-over-the-y-axis/34861)

<div class="topic-metadata">

**Author:** [@LucaP](https://discourse.processing.org/u/LucaP)\
**Replies:** 9\
**Last updated:** [January 30, 2022, 11:29am UTC](https://discourse.processing.org/t/running-a-processing-java-app-on-a-raspberry-pi-changes-everything-over-the-y-axis/34861 "2022-01-30T11:29:04Z")

</div>

Hi, I am putting some text inside of a box by using the text() function and passing in the coordinates of the center of the box. I am also centering the text with textAlign(CENTER, CENTER) On windows, this produces the …

---

## [Patterns while zooming using PeasyCam](https://discourse.processing.org/t/patterns-while-zooming-using-peasycam/34818)

<div class="topic-metadata">

**Author:** [@yahavsh](https://discourse.processing.org/u/yahavsh)\
**Replies:** 2\
**Last updated:** [January 30, 2022, 7:29am UTC](https://discourse.processing.org/t/patterns-while-zooming-using-peasycam/34818 "2022-01-30T07:29:26Z")

</div>

Hello I’m kinda new to the community so i hope this is the right place to ask. I played a little with 3D Chaos game to create fractals, while doing so i tried to make a 2d shape in 3d space made of dots. I was surpris…

---

## [G4P multiline message in selectOption control](https://discourse.processing.org/t/g4p-multiline-message-in-selectoption-control/34893)

<div class="topic-metadata">

**Author:** [@aksaks](https://discourse.processing.org/u/aksaks)\
**Replies:** 0\
**Last updated:** [January 30, 2022, 3:37am UTC](https://discourse.processing.org/t/g4p-multiline-message-in-selectoption-control/34893 "2022-01-30T03:37:46Z")

</div>

Regarding the G4P selectOption control. I wanted multiple lines for the String message in a g4p\_controls.G4P.selectOption message dialog window. I used the following: int resp = g4p\_controls.G4P.selectOption (this, …

---

## [Set gradient background in a 3d sketch](https://discourse.processing.org/t/set-gradient-background-in-a-3d-sketch/34889)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 1\
**Last updated:** [January 29, 2022, 11:53pm UTC](https://discourse.processing.org/t/set-gradient-background-in-a-3d-sketch/34889 "2022-01-29T23:53:45Z")

</div>

Hello everyone, I am trying to make a 3d game in processing, but I want to set a gradient as a background. In order to do this, I made a function that creates a linear gradient and just draws it onto the screen in 2d be…

---

## [Create and objects in ArrayList when mouse is pressed](https://discourse.processing.org/t/create-and-objects-in-arraylist-when-mouse-is-pressed/34887)

<div class="topic-metadata">

**Author:** [@alex119](https://discourse.processing.org/u/alex119)\
**Replies:** 3\
**Last updated:** [January 29, 2022, 6:46pm UTC](https://discourse.processing.org/t/create-and-objects-in-arraylist-when-mouse-is-pressed/34887 "2022-01-29T18:46:19Z")

</div>

Hello, I’m following natureofcode book and I’m trying to make an exercise where some objects are shot out of a cannon. The main issue I’m facing is that when I verify for mousePressed, I add to an ArrayList a new bulle…

---

## [For Java libraries, what bytecode version do we need to release it as?](https://discourse.processing.org/t/for-java-libraries-what-bytecode-version-do-we-need-to-release-it-as/34744)

<div class="topic-metadata">

**Author:** [@lessthanoptimal](https://discourse.processing.org/u/lessthanoptimal)\
**Replies:** 5\
**Last updated:** [January 28, 2022, 1:16am UTC](https://discourse.processing.org/t/for-java-libraries-what-bytecode-version-do-we-need-to-release-it-as/34744 "2022-01-28T01:16:00Z")

</div>

I’m updating the BoofCV wrapper for Processing. It recently dropped Java 8 byte code in favor of java 11 byte code. Can I release a Processing library using Java 11 bytecode?

---

## [Duplicate field sketch](https://discourse.processing.org/t/duplicate-field-sketch/34865)

<div class="topic-metadata">

**Author:** [@PARINAZ129](https://discourse.processing.org/u/PARINAZ129)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 10:31pm UTC](https://discourse.processing.org/t/duplicate-field-sketch/34865 "2022-01-27T22:31:45Z")

</div>

Dear I added png file to my project to do some interactive project however do to PImage koofi I faced an error on this line which is duplicate field sketch .May I ask you helping me? PImage koofi; import java.util.Cal…

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

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