# Processing

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

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

**Page:** 73

---

## [What is your basic stack?](https://discourse.processing.org/t/what-is-your-basic-stack/38064)

<div class="topic-metadata">

**Author:** [@NikhilPundir](https://discourse.processing.org/u/NikhilPundir)\
**Replies:** 1\
**Last updated:** [July 24, 2022, 12:18am UTC](https://discourse.processing.org/t/what-is-your-basic-stack/38064 "2022-07-24T00:18:50Z")

</div>

I am new to processing. Getting used to it and trying to find new ways to make my life easy. I am using the default processing IDE currently. Trying to make it run on VS code. I wanted to know which IDE does the communi…

---

## [How to enforce a minimum distance between curves?](https://discourse.processing.org/t/how-to-enforce-a-minimum-distance-between-curves/30875)

<div class="topic-metadata">

**Author:** [@oli](https://discourse.processing.org/u/oli)\
**Replies:** 10\
**Last updated:** [July 23, 2022, 5:51pm UTC](https://discourse.processing.org/t/how-to-enforce-a-minimum-distance-between-curves/30875 "2022-07-23T17:51:16Z")

</div>

I want to learn to draw non-overlapping random curves. I’ve written code that generates random curves on the screen but they currently overlap. In the example above, each curve is drawn by Choosing a random start …

---

## [Disable Blue Console Warnings](https://discourse.processing.org/t/disable-blue-console-warnings/38056)

<div class="topic-metadata">

**Author:** [@megrimm](https://discourse.processing.org/u/megrimm)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 9:12pm UTC](https://discourse.processing.org/t/disable-blue-console-warnings/38056 "2022-07-22T21:12:33Z")

</div>

Hello, How can I disable the blue console warning that show up when I am missing a file? For example I do a check to see if an image/file exists before loading like so: if ((img = loadImage("file.jpg")) != null)…

---

## [Help not opening until PDE exits](https://discourse.processing.org/t/help-not-opening-until-pde-exits/38061)

<div class="topic-metadata">

**Author:** [@Tuxomx](https://discourse.processing.org/u/Tuxomx)\
**Replies:** 0\
**Last updated:** [July 23, 2022, 3:32am UTC](https://discourse.processing.org/t/help-not-opening-until-pde-exits/38061 "2022-07-23T03:32:23Z")

</div>

Hi all. I just updated to processing 4.0b8 some weeks ago. If I use /help/find\_in\_reference or /help/reference menu entries nothing happens. Nor firefox opens, nor window or tab in firefox opens. But if I exit PDE then …

---

## [Getting a NullPointerException when trying to simply display an image in draw()](https://discourse.processing.org/t/getting-a-nullpointerexception-when-trying-to-simply-display-an-image-in-draw/38015)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 5:15pm UTC](https://discourse.processing.org/t/getting-a-nullpointerexception-when-trying-to-simply-display-an-image-in-draw/38015 "2022-07-22T17:15:18Z")

</div>

Hello, I have this issue with Processing 4.0b6/Windows. This ultrasimple sketch triggers a NullPointerException when trying to display the image within draw(). Otherwise when displaying it within setup() it works fine.…

---

## [Extracting pixels values from an alpha/greyscale PImage?](https://discourse.processing.org/t/extracting-pixels-values-from-an-alpha-greyscale-pimage/38038)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 5\
**Last updated:** [July 21, 2022, 9:13am UTC](https://discourse.processing.org/t/extracting-pixels-values-from-an-alpha-greyscale-pimage/38038 "2022-07-21T09:13:39Z")

</div>

Hello. When using a PImage in alpha/greyscale format, how can I extract individual values from pixels? Should I use alpha(myImage.pixels\[pos\])? Or red(myImage.pixels\[pos\])? Thank you in advance.

---

## [Pulsating PGraphics used as mask only updated in one direction](https://discourse.processing.org/t/pulsating-pgraphics-used-as-mask-only-updated-in-one-direction/38030)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 5\
**Last updated:** [July 20, 2022, 9:56pm UTC](https://discourse.processing.org/t/pulsating-pgraphics-used-as-mask-only-updated-in-one-direction/38030 "2022-07-20T21:56:18Z")

</div>

Hello, I have a PGraphics with random rectangles appearing and disappearing progressively using changing value of fill(). It functions as expected. However, when used as a mask, the rectangles appear progressively but …

---

## [Serial.list() not updating correctly](https://discourse.processing.org/t/serial-list-not-updating-correctly/38036)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 9:16pm UTC](https://discourse.processing.org/t/serial-list-not-updating-correctly/38036 "2022-07-20T21:16:30Z")

</div>

I have 2 original arduino nano every boards. If I run following code (CODE1): import processing.serial.\*; Serial myPort; void setup(){ } void draw(){ println(frameCount); // just to see that code is running pri…

---

## [Listening to events while Processing window is inactive](https://discourse.processing.org/t/listening-to-events-while-processing-window-is-inactive/38022)

<div class="topic-metadata">

**Author:** [@BetaHunter](https://discourse.processing.org/u/BetaHunter)\
**Replies:** 4\
**Last updated:** [July 19, 2022, 8:07pm UTC](https://discourse.processing.org/t/listening-to-events-while-processing-window-is-inactive/38022 "2022-07-19T20:07:27Z")

</div>

Hey guys, new here and relatively new to programming. I have been asked to create a small program for a friends. A program that monitors activities on the keyboard and mouse. I have however run into a problem with proces…

---

## [I Can't export pdf](https://discourse.processing.org/t/i-cant-export-pdf/38013)

<div class="topic-metadata">

**Author:** [@airobit](https://discourse.processing.org/u/airobit)\
**Replies:** 14\
**Last updated:** [July 19, 2022, 7:57pm UTC](https://discourse.processing.org/t/i-cant-export-pdf/38013 "2022-07-19T19:57:09Z")

</div>

Hi, i would like export in pdf the mycelium project “https://github.com/rspt/processing-mycelium.git” by many frames into one file, but the pde don’t start for this error in the last line of code ( } ) : Bad identifier? …

---

## [Processing Arduino communication](https://discourse.processing.org/t/processing-arduino-communication/38026)

<div class="topic-metadata">

**Author:** [@chrisBon8](https://discourse.processing.org/u/chrisBon8)\
**Replies:** 1\
**Last updated:** [July 19, 2022, 11:04am UTC](https://discourse.processing.org/t/processing-arduino-communication/38026 "2022-07-19T11:04:50Z")

</div>

Hi everyone, i am working with processing and arduino. I am trying to pass via serial method a String “x;y” where x and y are integers from arduino to Processing. Then i want to plot on processing the x and y separately,…

---

## [Issues with defining a frustum/perspective](https://discourse.processing.org/t/issues-with-defining-a-frustum-perspective/38019)

<div class="topic-metadata">

**Author:** [@graph100](https://discourse.processing.org/u/graph100)\
**Replies:** 3\
**Last updated:** [July 19, 2022, 5:54am UTC](https://discourse.processing.org/t/issues-with-defining-a-frustum-perspective/38019 "2022-07-19T05:54:19Z")

</div>

I’m working on a game and I’m currently trying to extend the render distance of the camera. I tried using the frustum() and perspective() functions, but they didn’t work. I tried again, this time using the default values…

---

## [How to minimize Processing Sketch window?](https://discourse.processing.org/t/how-to-minimize-processing-sketch-window/35061)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 3\
**Last updated:** [July 18, 2022, 2:22am UTC](https://discourse.processing.org/t/how-to-minimize-processing-sketch-window/35061 "2022-07-18T02:22:55Z")

</div>

Is there a way to run a line of code similar to exit(); that will minimize the window instead of closing it like exit(); does? I need the window to go away so another can take its place. It just still needs to exist to …

---

## [Painting/revealing a layer](https://discourse.processing.org/t/painting-revealing-a-layer/38000)

<div class="topic-metadata">

**Author:** [@bringmeflowers](https://discourse.processing.org/u/bringmeflowers)\
**Replies:** 1\
**Last updated:** [July 17, 2022, 11:32am UTC](https://discourse.processing.org/t/painting-revealing-a-layer/38000 "2022-07-17T11:32:46Z")

</div>

I want to create this effect in processing - where the mouse goes, the bottom painting layer is revealed. I try to loop through the pixels to the right of the mouseX to get the pixels for an area, but it does not wor…

---

## [2D surface growth: how to make my code run faster?](https://discourse.processing.org/t/2d-surface-growth-how-to-make-my-code-run-faster/37992)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 3\
**Last updated:** [July 17, 2022, 7:25am UTC](https://discourse.processing.org/t/2d-surface-growth-how-to-make-my-code-run-faster/37992 "2022-07-17T07:25:23Z")

</div>

Hello, I am programming some pixel-based 2d growth on a PImage from a random point. However I would like the code to run faster, especially the addNeighbour() function. On an i7-7820HQ/2.90GHz I need something like 5s …

---

## [java.lang.NoSuchMethodException from a Class.forName instantiation](https://discourse.processing.org/t/java-lang-nosuchmethodexception-from-a-class-forname-instantiation/37961)

<div class="topic-metadata">

**Author:** [@rowanmcnitt](https://discourse.processing.org/u/rowanmcnitt)\
**Replies:** 5\
**Last updated:** [July 16, 2022, 11:42pm UTC](https://discourse.processing.org/t/java-lang-nosuchmethodexception-from-a-class-forname-instantiation/37961 "2022-07-16T23:42:58Z")

</div>

Hello all, have been trying to debug this issue for hours with no luck, I’m trying to instantiate classes using a csv file: (I’ve also tried using getDeclaredConstructor) \*for this example, gun\_name = "m4"\* Object n…

---

## [Kinect v2 library and find Users](https://discourse.processing.org/t/kinect-v2-library-and-find-users/37994)

<div class="topic-metadata">

**Author:** [@potter3366](https://discourse.processing.org/u/potter3366)\
**Replies:** 0\
**Last updated:** [July 16, 2022, 9:50pm UTC](https://discourse.processing.org/t/kinect-v2-library-and-find-users/37994 "2022-07-16T21:50:00Z")

</div>

When I run the app, the user is immediately detected. When he leaves the Kinect sensor field, the app still shows foundUsers = true and kinect.getNumOfUsers()=1. The number of users entering the Kinect field of view doe…

---

## [Save and recall variable in a file](https://discourse.processing.org/t/save-and-recall-variable-in-a-file/37968)

<div class="topic-metadata">

**Author:** [@leuwenn](https://discourse.processing.org/u/leuwenn)\
**Replies:** 4\
**Last updated:** [July 16, 2022, 5:50pm UTC](https://discourse.processing.org/t/save-and-recall-variable-in-a-file/37968 "2022-07-16T17:50:08Z")

</div>

Hi, I’m trying to save several variables to a file so I can reload them when the program opens. I manage to create a JSON file but I have to manually add the code, I would like to automate this by adding in an Array, th…

---

## [RuntimeException: Expected a ',' or '}'](https://discourse.processing.org/t/runtimeexception-expected-a-or/37990)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 2\
**Last updated:** [July 16, 2022, 5:30pm UTC](https://discourse.processing.org/t/runtimeexception-expected-a-or/37990 "2022-07-16T17:30:56Z")

</div>

Hi, i was working on a game, it worked when i last tested it, then i went watch video on youtube, and the sketch doesn’t work anymore, and i really do not understand at all where is the error. it just says in the console…

---

## [Change Background Color on Key Press](https://discourse.processing.org/t/change-background-color-on-key-press/37970)

<div class="topic-metadata">

**Author:** [@roaringcrex](https://discourse.processing.org/u/roaringcrex)\
**Replies:** 3\
**Last updated:** [July 16, 2022, 1:55pm UTC](https://discourse.processing.org/t/change-background-color-on-key-press/37970 "2022-07-16T13:55:00Z")

</div>

Hey, I’d like to change the background Color and it should stay the same after choosing one, but I can’t wrap my head around how that should be possible… Can someone please help me out on this? I’ve tried to google my w…

---

## [Tint() in for loop doesn't work](https://discourse.processing.org/t/tint-in-for-loop-doesnt-work/37976)

<div class="topic-metadata">

**Author:** [@Andry](https://discourse.processing.org/u/Andry)\
**Replies:** 10\
**Last updated:** [July 16, 2022, 1:47pm UTC](https://discourse.processing.org/t/tint-in-for-loop-doesnt-work/37976 "2022-07-16T13:47:58Z")

</div>

Hi, I have this code that doesn’t work, why? PImage img; void setup() { size(400, 300); img= loadImage("myimage.jpg"); image(img,0,0,width, height); } void draw() { } float transparency = 255; void keyPres…

---

## [myMovie.speed() is not working](https://discourse.processing.org/t/mymovie-speed-is-not-working/11956)

<div class="topic-metadata">

**Author:** [@anty](https://discourse.processing.org/u/anty)\
**Replies:** 7\
**Last updated:** [July 16, 2022, 12:52pm UTC](https://discourse.processing.org/t/mymovie-speed-is-not-working/11956 "2022-07-16T12:52:37Z")

</div>

Hi friends, I am Anty and I want to control the movie’s speed by .speed() but it seems not working in my code. Whatever the number I wrote to “.speed(0.5)” “.speed(5)” all of them are the same speed. This is my code: …

---

## [Playing different videos from Serial](https://discourse.processing.org/t/playing-different-videos-from-serial/37705)

<div class="topic-metadata">

**Author:** [@ccheee](https://discourse.processing.org/u/ccheee)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 2:56am UTC](https://discourse.processing.org/t/playing-different-videos-from-serial/37705 "2022-07-16T02:56:55Z")

</div>

I’m very new to Processing, so please forgive me if I’m missing something very basic! I’m trying to use an Arduino/Serial input that will trigger different videos to play in a Processing sketch. The code below is based …

---

## [Pros & Cons (GUI Builder): Java Swing vs ControlP5](https://discourse.processing.org/t/pros-cons-gui-builder-java-swing-vs-controlp5/37958)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 10:03pm UTC](https://discourse.processing.org/t/pros-cons-gui-builder-java-swing-vs-controlp5/37958 "2022-07-15T22:03:38Z")

</div>

I am new to Java and Processing. I want ot build GUI using processing. I found that there are two ways to build GUI, using Java Swing & ControlP5 library. Can someone experienced explain me the pros and cons of using…

---

## [DALLE 2 - Transparent background and load image](https://discourse.processing.org/t/dalle-2-transparent-background-and-load-image/37973)

<div class="topic-metadata">

**Author:** [@Scaprendering](https://discourse.processing.org/u/Scaprendering)\
**Replies:** 4\
**Last updated:** [July 15, 2022, 9:03pm UTC](https://discourse.processing.org/t/dalle-2-transparent-background-and-load-image/37973 "2022-07-15T21:03:04Z")

</div>

Hi brains ! I’ll be honest, first day into processing today. I’ve done what I needed, basically crop and reposition images but I still have an issue about how to set the gray background to transparent. Here’s the c…

---

## [How to check if com Port is already being used by another application?](https://discourse.processing.org/t/how-to-check-if-com-port-is-already-being-used-by-another-application/37946)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 10:37am UTC](https://discourse.processing.org/t/how-to-check-if-com-port-is-already-being-used-by-another-application/37946 "2022-07-15T10:37:02Z")

</div>

How do I check if com Port is already being used by another application or if it is free to be used ? import processing.serial.\*; Serial myPort; void setup(){ myPort = new Serial(this, Serial.list()\[0\], 9600); // H…

---

## [Moving 'backwards through time' of animation frame by frame?](https://discourse.processing.org/t/moving-backwards-through-time-of-animation-frame-by-frame/37657)

<div class="topic-metadata">

**Author:** [@CamSos](https://discourse.processing.org/u/CamSos)\
**Replies:** 11\
**Last updated:** [July 15, 2022, 5:03pm UTC](https://discourse.processing.org/t/moving-backwards-through-time-of-animation-frame-by-frame/37657 "2022-07-15T17:03:21Z")

</div>

I’m trying to tab through the ‘frames’ of my animation, as it is useful for troubleshooting. Stepping forward in time, one frame at a time, is easy enough: void keyPressed() { if (key == CODED) { if (keyCode == R…

---

## [Color detect with Kinect v2](https://discourse.processing.org/t/color-detect-with-kinect-v2/37971)

<div class="topic-metadata">

**Author:** [@potter3366](https://discourse.processing.org/u/potter3366)\
**Replies:** 0\
**Last updated:** [July 15, 2022, 3:34pm UTC](https://discourse.processing.org/t/color-detect-with-kinect-v2/37971 "2022-07-15T15:34:09Z")

</div>

I detect the color of the glove and check if it is one of the three colors (RGB). Every frame I get integer values: NColor = 0 for RED NColor = 1 for GREEN NColor = 2 for BLUE NColor = -1 for unknown color As the li…

---

## [Cannot play the video after exporting the application](https://discourse.processing.org/t/cannot-play-the-video-after-exporting-the-application/25889)

<div class="topic-metadata">

**Author:** [@caseywang777](https://discourse.processing.org/u/caseywang777)\
**Replies:** 1\
**Last updated:** [December 2, 2020, 4:21pm UTC](https://discourse.processing.org/t/cannot-play-the-video-after-exporting-the-application/25889 "2020-12-02T16:21:23Z")

</div>

Hi, I use the Gstream based video library (import processing.video.\*) to play the video. When I use the IDE to run the application, it works well. (just a minor warning: after I close the window, processing give me a w…

---

## [Tinkercad+Arduino](https://discourse.processing.org/t/tinkercad-arduino/37962)

<div class="topic-metadata">

**Author:** [@Leonid](https://discourse.processing.org/u/Leonid)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 6:30am UTC](https://discourse.processing.org/t/tinkercad-arduino/37962 "2022-07-15T06:30:14Z")

</div>

Hi all ! I did not find a forum for Tinkercad. Maybe you can help me ? How to add a caption on the chart along the x-axis in it? Thanks

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

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