# Processing

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

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

**Page:** 94

---

## [Where to start contributing to Processing Foundation open source project?](https://discourse.processing.org/t/where-to-start-contributing-to-processing-foundation-open-source-project/34985)

<div class="topic-metadata">

**Author:** [@Utsav](https://discourse.processing.org/u/Utsav)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 6:38am UTC](https://discourse.processing.org/t/where-to-start-contributing-to-processing-foundation-open-source-project/34985 "2022-02-05T06:38:21Z")

</div>

Hello, I am Utsav Jha, first-year undergraduate studying Information Technology at MIT. I was hoping to start contributing 4 months ago but I knew basic school level coding. So I took the time of 4 months and fine-tuned…

---

## [How to change the color of a png image to different colors](https://discourse.processing.org/t/how-to-change-the-color-of-a-png-image-to-different-colors/34963)

<div class="topic-metadata">

**Author:** [@joey1](https://discourse.processing.org/u/joey1)\
**Replies:** 2\
**Last updated:** [February 5, 2022, 4:59am UTC](https://discourse.processing.org/t/how-to-change-the-color-of-a-png-image-to-different-colors/34963 "2022-02-05T04:59:13Z")

</div>

I am hoping to know how to write a program that changes the pixels of an image to different colors (ideally it would loop through r,g,b for a variety of colors) tint is not giving the desired effect I want. say if the …

---

## [Why are sketches larger with the Default Renderer than with P2D? Should I be concerned?](https://discourse.processing.org/t/why-are-sketches-larger-with-the-default-renderer-than-with-p2d-should-i-be-concerned/34949)

<div class="topic-metadata">

**Author:** [@leatherbird](https://discourse.processing.org/u/leatherbird)\
**Replies:** 4\
**Last updated:** [February 5, 2022, 2:19am UTC](https://discourse.processing.org/t/why-are-sketches-larger-with-the-default-renderer-than-with-p2d-should-i-be-concerned/34949 "2022-02-05T02:19:35Z")

</div>

Hello, Beginner question, not sure what is happening. Or which size is correct. If I don’t include P2D, the sketch appears much larger. Is this normal? Or is there a setting somewhere I need to address? Processing 4.…

---

## [I need help with my project (IMAGES;Y-AXIS;RANDOM)](https://discourse.processing.org/t/i-need-help-with-my-project-images-y-axis-random/34980)

<div class="topic-metadata">

**Author:** [@studentinneed](https://discourse.processing.org/u/studentinneed)\
**Replies:** 1\
**Last updated:** [February 4, 2022, 10:55pm UTC](https://discourse.processing.org/t/i-need-help-with-my-project-images-y-axis-random/34980 "2022-02-04T22:55:23Z")

</div>

Hi, i am struggeling with an project i have to do for university. I am a beginner and havn’t worked with this program nor was i working on any other coding programs. I study design and have a visual in my head but not t…

---

## [Code to compare pixels by color](https://discourse.processing.org/t/code-to-compare-pixels-by-color/34764)

<div class="topic-metadata">

**Author:** [@Marn](https://discourse.processing.org/u/Marn)\
**Replies:** 20\
**Last updated:** [February 3, 2022, 9:48pm UTC](https://discourse.processing.org/t/code-to-compare-pixels-by-color/34764 "2022-02-03T21:48:36Z")

</div>

I need a script that does the following: The script should look at an image pixels by pixels. For each pixel, the script has to look for an other pixel with the same rgb value in a different image. (Possibly with a sma…

---

## [G4P GUI builder library help request](https://discourse.processing.org/t/g4p-gui-builder-library-help-request/34957)

<div class="topic-metadata">

**Author:** [@thoegersen](https://discourse.processing.org/u/thoegersen)\
**Replies:** 2\
**Last updated:** [February 3, 2022, 9:36pm UTC](https://discourse.processing.org/t/g4p-gui-builder-library-help-request/34957 "2022-02-03T21:36:07Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Is there a way to hide the buttons created by the G4P GUI builder tool so that they do not ubstruct the background of the window, I would like …

---

## [Any one interesting in creating projects with scene recognition and 3D reconstruction?](https://discourse.processing.org/t/any-one-interesting-in-creating-projects-with-scene-recognition-and-3d-reconstruction/34745)

<div class="topic-metadata">

**Author:** [@lessthanoptimal](https://discourse.processing.org/u/lessthanoptimal)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 5:02am UTC](https://discourse.processing.org/t/any-one-interesting-in-creating-projects-with-scene-recognition-and-3d-reconstruction/34745 "2022-01-20T05:02:09Z")

</div>

So I development BoofCV, which is a computer vision libraries. Every once in a while I update the processing plugin. There are a lot of cool features which have yet to be integrated into the simplified interface for proc…

---

## [How to zoom on to center of the screen](https://discourse.processing.org/t/how-to-zoom-on-to-center-of-the-screen/14090)

<div class="topic-metadata">

**Author:** [@TheZipCreator](https://discourse.processing.org/u/TheZipCreator)\
**Replies:** 7\
**Last updated:** [February 3, 2022, 5:50pm UTC](https://discourse.processing.org/t/how-to-zoom-on-to-center-of-the-screen/14090 "2022-02-03T17:50:52Z")

</div>

So I made a zoom (and pan) function for a program I am creating, and currently it zooms on the topleft corner of the screen. I want it to zoom on the center. NOTE: I can’t use imageMode(center), without refactoring a lo…

---

## [Cp5 GUI; function runs before new window shows up](https://discourse.processing.org/t/cp5-gui-function-runs-before-new-window-shows-up/34911)

<div class="topic-metadata">

**Author:** [@pas](https://discourse.processing.org/u/pas)\
**Replies:** 0\
**Last updated:** [January 31, 2022, 10:38am UTC](https://discourse.processing.org/t/cp5-gui-function-runs-before-new-window-shows-up/34911 "2022-01-31T10:38:15Z")

</div>

Hi everyone, I am new to processing and coding in general. I’m trying to make Software for an automatic liquid handling station and the most of it is working. But: I have a GUI with a “Start” Button. When you click on i…

---

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

---

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

---

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

---

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

---

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

---

## [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/c/processing/6.md?no_subcategories=false&page=92)

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