# Processing

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

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

**Page:** 10

---

## [Legacy video player code built out to 8 clips, plays only first pressed](https://discourse.processing.org/t/legacy-video-player-code-built-out-to-8-clips-plays-only-first-pressed/41715)

<div class="topic-metadata">

**Author:** [@patlichty1](https://discourse.processing.org/u/patlichty1)\
**Replies:** 1\
**Last updated:** [April 16, 2023, 10:19pm UTC](https://discourse.processing.org/t/legacy-video-player-code-built-out-to-8-clips-plays-only-first-pressed/41715 "2023-04-16T22:19:49Z")

</div>

Hi, everyone, I apologize if this has been solved, but this is the legacy video-on-keypress code that the user discussed that another video would not play after selecting the first one. The thing is that the logic seems…

---

## [Sound library Env causes clicks](https://discourse.processing.org/t/sound-library-env-causes-clicks/46183)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 2\
**Last updated:** [May 28, 2025, 3:25pm UTC](https://discourse.processing.org/t/sound-library-env-causes-clicks/46183 "2025-05-28T15:25:54Z")

</div>

Playing a steady-state oscillator using the Sound library works just fine. But attempting to add an envelope (Env) results in distorted clicks as the sound starts and stops. This can be demonstrated using the Libraries \>…

---

## [Processing + GLSL + Video](https://discourse.processing.org/t/processing-glsl-video/45113)

<div class="topic-metadata">

**Author:** [@Morais](https://discourse.processing.org/u/Morais)\
**Replies:** 4\
**Last updated:** [May 27, 2025, 10:15pm UTC](https://discourse.processing.org/t/processing-glsl-video/45113 "2025-05-27T22:15:08Z")

</div>

Hello everyone, Does anyone know where I can find information on applying shaders to video using Processing? I’ve had success using many Shadertoy examples before, except for those that involve video or webcam inputs. W…

---

## [fullScreen(SPAN) in apple silicon Processing version 4.4.1](https://discourse.processing.org/t/fullscreen-span-in-apple-silicon-processing-version-4-4-1/46261)

<div class="topic-metadata">

**Author:** [@hbarragan](https://discourse.processing.org/u/hbarragan)\
**Replies:** 2\
**Last updated:** [May 20, 2025, 4:10pm UTC](https://discourse.processing.org/t/fullscreen-span-in-apple-silicon-processing-version-4-4-1/46261 "2025-05-20T16:10:55Z")

</div>

Hi guys, it seems there is an issue on version 4.4.1 with the fullScreen(SPAN) command, I get the following error, thank you. java.lang.RuntimeException: Exception while attempting defaults read com.apple.spaces spans-d…

---

## [Snap install on Chromebook can't connect to X11 window server](https://discourse.processing.org/t/snap-install-on-chromebook-cant-connect-to-x11-window-server/46468)

<div class="topic-metadata">

**Author:** [@mb668](https://discourse.processing.org/u/mb668)\
**Replies:** 4\
**Last updated:** [May 27, 2025, 6:09pm UTC](https://discourse.processing.org/t/snap-install-on-chromebook-cant-connect-to-x11-window-server/46468 "2025-05-27T18:09:22Z")

</div>

Since the installation process moved over to snap, I cannot run Processing 4.4.4. Installation via snap works fine with a few prior steps (below) but execution generates multiple X11 window server and other errors. This …

---

## [This is about Java 'network' library](https://discourse.processing.org/t/this-is-about-java-network-library/46291)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 14\
**Last updated:** [May 7, 2025, 2:47pm UTC](https://discourse.processing.org/t/this-is-about-java-network-library/46291 "2025-05-07T14:47:59Z")

</div>

It’s about JAVA ‘network’ library. Hello. Nice to meet you. import processing.net.\*; int port = 10002; Server myServer; void setup() { size(400, 400); background(0); myServer = new Server(this, port); // Starts…

---

## [Array of PImages](https://discourse.processing.org/t/array-of-pimages/46444)

<div class="topic-metadata">

**Author:** [@nikapm](https://discourse.processing.org/u/nikapm)\
**Replies:** 4\
**Last updated:** [May 27, 2025, 12:10am UTC](https://discourse.processing.org/t/array-of-pimages/46444 "2025-05-27T00:10:03Z")

</div>

Hello, i am trying to build an array of images to be displayed i looping, but I receive the error message that image cannot be solve as variable. Here’s code: int maxImages = 10; int imageIndex = 0; PImage\[\] images = …

---

## [Drawing a flower of life with 6 Vesica Piscis](https://discourse.processing.org/t/drawing-a-flower-of-life-with-6-vesica-piscis/46341)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 12\
**Last updated:** [May 24, 2025, 1:30am UTC](https://discourse.processing.org/t/drawing-a-flower-of-life-with-6-vesica-piscis/46341 "2025-05-24T01:30:25Z")

</div>

I’m having trouble getting this to draw the shape nicely. I have one function that evenly draws six petals, rotating them around, and one function to draw a single petal. The issue is not apparent when there is noStroke,…

---

## [Portable linux build is not happy](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412)

<div class="topic-metadata">

**Author:** [@joshg](https://discourse.processing.org/u/joshg)\
**Replies:** 8\
**Last updated:** [May 25, 2025, 6:05am UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412 "2025-05-25T06:05:09Z")

</div>

The new Gradle build of Processing 4.4+ is generating a portable Linux build (yay! some of us get annoyed with snaps!) that doesn’t want to start (boo! what!). On running ./Processing in the bin folder, I get: Error: c…

---

## [The processing-java.exe cannot handle a sketch path containing spaces](https://discourse.processing.org/t/the-processing-java-exe-cannot-handle-a-sketch-path-containing-spaces/46451)

<div class="topic-metadata">

**Author:** [@Philip\_Sharman](https://discourse.processing.org/u/Philip_Sharman)\
**Replies:** 4\
**Last updated:** [May 26, 2025, 12:09am UTC](https://discourse.processing.org/t/the-processing-java-exe-cannot-handle-a-sketch-path-containing-spaces/46451 "2025-05-26T00:09:41Z")

</div>

According to my notes, this used to work: processing-java --sketch='/Users/philip/Test B' But now it gives the error Error: got unexpected extra argument (B). I’ve tried escaping the spaces, like this processing-java…

---

## [The processing-java.exe now gives a "java.lang.NoSuchMethodError" error](https://discourse.processing.org/t/the-processing-java-exe-now-gives-a-java-lang-nosuchmethoderror-error/46407)

<div class="topic-metadata">

**Author:** [@Philip\_Sharman](https://discourse.processing.org/u/Philip_Sharman)\
**Replies:** 2\
**Last updated:** [May 25, 2025, 3:26pm UTC](https://discourse.processing.org/t/the-processing-java-exe-now-gives-a-java-lang-nosuchmethoderror-error/46407 "2025-05-25T15:26:21Z")

</div>

The processing-java tool used to work for me, but now it gives me this error: Exception in thread "main" java.lang.NoSuchMethodError: 'void processing.app.Base.setCommandLine()' at processing.mode.java.Commander.main(C…

---

## ["Brightness pixels" example too small](https://discourse.processing.org/t/brightness-pixels-example-too-small/46438)

<div class="topic-metadata">

**Author:** [@nikapm](https://discourse.processing.org/u/nikapm)\
**Replies:** 4\
**Last updated:** [May 25, 2025, 2:51am UTC](https://discourse.processing.org/t/brightness-pixels-example-too-small/46438 "2025-05-25T02:51:26Z")

</div>

I am new to processing and I am testing a code from the processing examples about brightness pixels. It works, but the image is much smaller than the window and I don’t know how to fix it. It cover the whole width with t…

---

## [Device connection failed](https://discourse.processing.org/t/device-connection-failed/46408)

<div class="topic-metadata">

**Author:** [@UZEW8](https://discourse.processing.org/u/UZEW8)\
**Replies:** 14\
**Last updated:** [May 24, 2025, 3:00am UTC](https://discourse.processing.org/t/device-connection-failed/46408 "2025-05-24T03:00:46Z")

</div>

I cannot run the very first board example. “Oscilloscope”. Processing sees 2 COM ports, tries to connect to one and then the other, but then announces “failed to connect”. Please help (board is blinking BLU at 2 Hz) Con…

---

## [Image exports at wrong dimensions in 4.4.4](https://discourse.processing.org/t/image-exports-at-wrong-dimensions-in-4-4-4/46414)

<div class="topic-metadata">

**Author:** [@sonofhop](https://discourse.processing.org/u/sonofhop)\
**Replies:** 2\
**Last updated:** [May 20, 2025, 2:07pm UTC](https://discourse.processing.org/t/image-exports-at-wrong-dimensions-in-4-4-4/46414 "2025-05-20T14:07:56Z")

</div>

Exporting images seems broken in Processing 4.4.4 Here’s a sketch that demonstrates the issue. The canvas size is set to 500x500, but the .png file exports at 1000x1000. Exporting as .pdf or .svg results in the correct …

---

## [JavaFX Controls in Default Window](https://discourse.processing.org/t/javafx-controls-in-default-window/46404)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 6\
**Last updated:** [May 20, 2025, 1:33pm UTC](https://discourse.processing.org/t/javafx-controls-in-default-window/46404 "2025-05-20T13:33:06Z")

</div>

Is there anyone in this forum who can retrieve the root pane of a PSurfaceFX window? Currently it is not possible to place javafx controls in a default Processing window using JavaMode. It has recently been shown by @h…

---

## [How to count the number of digits of a floating number?](https://discourse.processing.org/t/how-to-count-the-number-of-digits-of-a-floating-number/36980)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 17\
**Last updated:** [May 19, 2025, 8:46pm UTC](https://discourse.processing.org/t/how-to-count-the-number-of-digits-of-a-floating-number/36980 "2025-05-19T20:46:39Z")

</div>

Hello guys, I am a little confused about the following. I need to get the number of floating digits of a float number. So I have for example the number: 12.345678 And I know that the number of int digits are 2 with …

---

## [Processing Does Not Appear To Start](https://discourse.processing.org/t/processing-does-not-appear-to-start/46400)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 6\
**Last updated:** [May 19, 2025, 7:54pm UTC](https://discourse.processing.org/t/processing-does-not-appear-to-start/46400 "2025-05-19T19:54:55Z")

</div>

I have a Dell Inspiron 16 running Windows 11. The sketch, in question, has been running for months.When I try to start it, the results are a blank screen with a red dot and the system is locked up. I must do a Ctl, Alt, …

---

## [Processing 4 Java Bug bad printing of a number](https://discourse.processing.org/t/processing-4-java-bug-bad-printing-of-a-number/46398)

<div class="topic-metadata">

**Author:** [@mvq](https://discourse.processing.org/u/mvq)\
**Replies:** 15\
**Last updated:** [May 18, 2025, 10:53am UTC](https://discourse.processing.org/t/processing-4-java-bug-bad-printing-of-a-number/46398 "2025-05-18T10:53:57Z")

</div>

Have got a bug - look like its JAVA that freaking. float \[\]\[\] vDATA = {{45576469, 84.847, 45, 57, 64, 69, 73, 76, 79, 81, 83, 85, 86, 87, 88, 89, 91, 92, 93, 94, 95, }, // tous 253 {45576469, 84.861, 45, 57, 64, 6…

---

## [PSurfaceFX Current Development](https://discourse.processing.org/t/psurfacefx-current-development/46401)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 4\
**Last updated:** [May 17, 2025, 12:43pm UTC](https://discourse.processing.org/t/psurfacefx-current-development/46401 "2025-05-17T12:43:58Z")

</div>

I’m unable to find the current repository for PSurfaceFX; I can find the original github location, but there is a message stating that it has been moved and I can’t find the new one.

---

## [Border between two colours](https://discourse.processing.org/t/border-between-two-colours/46399)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 4\
**Last updated:** [May 17, 2025, 5:43am UTC](https://discourse.processing.org/t/border-between-two-colours/46399 "2025-05-17T05:43:14Z")

</div>

I have loaded an image into Processing. loadImage("setup.png"); Here (below) is a greatly magnified screenshot. I want an easy way to make the pixels along the border either red or blue. The choice could be change to t…

---

## [Open Call for Processing Project Lead – Apply Now!](https://discourse.processing.org/t/open-call-for-processing-project-lead-apply-now/46296)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 2\
**Last updated:** [May 15, 2025, 3:48pm UTC](https://discourse.processing.org/t/open-call-for-processing-project-lead-apply-now/46296 "2025-05-15T15:48:43Z")

</div>

The open call for the Processing Project Lead position is now closed. Thank you to everyone who applied! We are looking for an experienced software developer with a passion for open-source software, technical leadership…

---

## [Processing doesn't work now](https://discourse.processing.org/t/processing-doesnt-work-now/18034)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 11\
**Last updated:** [May 15, 2025, 1:14am UTC](https://discourse.processing.org/t/processing-doesnt-work-now/18034 "2025-05-15T01:14:03Z")

</div>

I’m using a chromebook that runs linux in a container. I downloaded processsing 3.5.3 a month ago and things worked great. I got a message today when I went to start the chromebook that an important update was being in…

---

## [Trying to check string against name of array](https://discourse.processing.org/t/trying-to-check-string-against-name-of-array/46382)

<div class="topic-metadata">

**Author:** [@ember314](https://discourse.processing.org/u/ember314)\
**Replies:** 4\
**Last updated:** [May 14, 2025, 2:59pm UTC](https://discourse.processing.org/t/trying-to-check-string-against-name-of-array/46382 "2025-05-14T14:59:48Z")

</div>

Hi all! I’m brand new to the forums, and to processing in general, so my apologies if anything is wrong with my post! I’m trying to make a game in a similar format to games like Pokedle (https://pokedle.net/), but with …

---

## [Generating a table of audio wave tables for sample-based music programs](https://discourse.processing.org/t/generating-a-table-of-audio-wave-tables-for-sample-based-music-programs/46389)

<div class="topic-metadata">

**Author:** [@scudly](https://discourse.processing.org/u/scudly)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 1:56am UTC](https://discourse.processing.org/t/generating-a-table-of-audio-wave-tables-for-sample-based-music-programs/46389 "2025-05-13T01:56:10Z")

</div>

For music, you might want to create a periodic (repeating) noise signal. And for speed you might like to create the signal on the GPU writing the values to a texture or SSBO. If so, https://jcgt.org/published/0011/01/0…

---

## [Help please: exec() fails with posix\_spawn error](https://discourse.processing.org/t/help-please-exec-fails-with-posix-spawn-error/46374)

<div class="topic-metadata">

**Author:** [@AndrewS](https://discourse.processing.org/u/AndrewS)\
**Replies:** 8\
**Last updated:** [May 13, 2025, 5:54am UTC](https://discourse.processing.org/t/help-please-exec-fails-with-posix-spawn-error/46374 "2025-05-13T05:54:54Z")

</div>

Modernising some code that currently runs slowly on a 2014 mac mini (Yosemite, Processing 3.5.4) to run on a 2017 iMac (Ventura, Processing 4.4.1). Calls to ‘exec()’ work on the 2014 machine and a 2017 Macbook Pro (Ventu…

---

## [Can I reuse some Processing core code?](https://discourse.processing.org/t/can-i-reuse-some-processing-core-code/46321)

<div class="topic-metadata">

**Author:** [@damaru](https://discourse.processing.org/u/damaru)\
**Replies:** 4\
**Last updated:** [May 6, 2025, 2:34pm UTC](https://discourse.processing.org/t/can-i-reuse-some-processing-core-code/46321 "2025-05-06T14:34:08Z")

</div>

I’ve been studing the Nature of Code book and reached the section on Perlin Noise. I got an idea - I can use Perlin noise to generate a table of audio wave tables that I can load into sample-based music programs. I want…

---

## [SVG Export Issue transform="scale(2,2)"](https://discourse.processing.org/t/svg-export-issue-transform-scale-2-2/46350)

<div class="topic-metadata">

**Author:** [@helaine.b](https://discourse.processing.org/u/helaine.b)\
**Replies:** 3\
**Last updated:** [May 8, 2025, 5:35pm UTC](https://discourse.processing.org/t/svg-export-issue-transform-scale-2-2/46350 "2025-05-08T17:35:17Z")

</div>

After updating to Processing 4.4.3 yesterday (necessary to be able to run via command line on a mac) I’m finding that SVG exports have a tag transform="scale(2,2)" that results in the SVG contents scaling up and the boun…

---

## [(Question) Processing 3 Minim Audio Visual](https://discourse.processing.org/t/question-processing-3-minim-audio-visual/46344)

<div class="topic-metadata">

**Author:** [@nuclearns](https://discourse.processing.org/u/nuclearns)\
**Replies:** 0\
**Last updated:** [May 7, 2025, 8:00pm UTC](https://discourse.processing.org/t/question-processing-3-minim-audio-visual/46344 "2025-05-07T20:00:09Z")

</div>

Hello, In the work below, the text sometimes speeds up and then slows down. It didn’t work for me. How is it done, friends? The visibility of the letters changes according to the sound heard from the microphone. I want…

---

## [Canvas Scaling with different renderers](https://discourse.processing.org/t/canvas-scaling-with-different-renderers/46337)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 2\
**Last updated:** [May 7, 2025, 1:54pm UTC](https://discourse.processing.org/t/canvas-scaling-with-different-renderers/46337 "2025-05-07T13:54:25Z")

</div>

Hello folks, I noticed different scaling for sketch windows on W10 with the following for my Display settings and using different renderers: Test code: import processing.javafx.\*; void setup() { size(400, 200…

---

## [Help with video code: distortion input videos](https://discourse.processing.org/t/help-with-video-code-distortion-input-videos/45918)

<div class="topic-metadata">

**Author:** [@serra.magi](https://discourse.processing.org/u/serra.magi)\
**Replies:** 4\
**Last updated:** [May 6, 2025, 9:03am UTC](https://discourse.processing.org/t/help-with-video-code-distortion-input-videos/45918 "2025-05-06T09:03:15Z")

</div>

Help me by suggesting initial code to play with the concept: distortion input videos

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

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