# Processing

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

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

**Page:** 20

---

## [Client connection refused](https://discourse.processing.org/t/client-connection-refused/44679)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 8:38am UTC](https://discourse.processing.org/t/client-connection-refused/44679 "2024-07-02T08:38:38Z")

</div>

hello guys, hope you doing all well, so i i have a bunch of arduinos connected to local network via ethernet, a user can than interact with them via GUI done by processing, after testing with three arduinos everything wo…

---

## [G4P - Setting custom colors for knob?](https://discourse.processing.org/t/g4p-setting-custom-colors-for-knob/44666)

<div class="topic-metadata">

**Author:** [@shlain](https://discourse.processing.org/u/shlain)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 12:40pm UTC](https://discourse.processing.org/t/g4p-setting-custom-colors-for-knob/44666 "2024-07-01T12:40:09Z")

</div>

Hey folks, I have a quick question I couldn’t solve about G4P library. I am using GKnob, and have succeeded to change its colors using the pre-added color schemes: knob.setLocalColorScheme(4); But in order to align wi…

---

## [Please Help: Image Creation](https://discourse.processing.org/t/please-help-image-creation/44668)

<div class="topic-metadata">

**Author:** [@chipadelic](https://discourse.processing.org/u/chipadelic)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 12:02am UTC](https://discourse.processing.org/t/please-help-image-creation/44668 "2024-07-01T00:02:54Z")

</div>

\< Hello Everyone! I am struggling to figure out a way to recreate this posterized image in processing using shapes for my processing class. the assignment is to create a portrait using shapes and I created this SVG in …

---

## [SVG from Audio Amplitude?](https://discourse.processing.org/t/svg-from-audio-amplitude/44633)

<div class="topic-metadata">

**Author:** [@bdon](https://discourse.processing.org/u/bdon)\
**Replies:** 14\
**Last updated:** [June 30, 2024, 11:18am UTC](https://discourse.processing.org/t/svg-from-audio-amplitude/44633 "2024-06-30T11:18:17Z")

</div>

Hi - I’d like to render a small audio file (.wav) into an SVG represention of its amplitude. Is this possible? Is Processing the best tool for the job or is there something else that would be better for this purpose? …

---

## [Troubleshooting Data Handling Issues in a Multithreaded Server Class for Multiple Client Connections](https://discourse.processing.org/t/troubleshooting-data-handling-issues-in-a-multithreaded-server-class-for-multiple-client-connections/44653)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 6:32pm UTC](https://discourse.processing.org/t/troubleshooting-data-handling-issues-in-a-multithreaded-server-class-for-multiple-client-connections/44653 "2024-06-28T18:32:05Z")

</div>

Hello, I hope you’re doing well. I did a server class to handle multiple client connections simultaneously. Each client sends a fixed amount of data that I want to store and then process into a CSV file. Here is the comp…

---

## [Scramble/Unscramble Audio File](https://discourse.processing.org/t/scramble-unscramble-audio-file/44637)

<div class="topic-metadata">

**Author:** [@dheld](https://discourse.processing.org/u/dheld)\
**Replies:** 2\
**Last updated:** [June 26, 2024, 8:34pm UTC](https://discourse.processing.org/t/scramble-unscramble-audio-file/44637 "2024-06-26T20:34:21Z")

</div>

I’m creating a sound installation and I’m a novice Processing programmer. There will be 2 audio files. I’d like to scramble the 2 files to create a mashup of the 2 sounds, then I’d like to reverse the process and unscram…

---

## [Logical AND with keys](https://discourse.processing.org/t/logical-and-with-keys/44631)

<div class="topic-metadata">

**Author:** [@Karrajo](https://discourse.processing.org/u/Karrajo)\
**Replies:** 2\
**Last updated:** [June 23, 2024, 3:54pm UTC](https://discourse.processing.org/t/logical-and-with-keys/44631 "2024-06-23T15:54:01Z")

</div>

Hi, Hello, I can’t find this question in the forum, let’s see if you can help me. I’m trying to create a condition when I press two keys at the same time, but it doesn’t work for me. Does anyone know if it’s a syntax is…

---

## [G4P window returning null](https://discourse.processing.org/t/g4p-window-returning-null/44632)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 2\
**Last updated:** [June 23, 2024, 3:24pm UTC](https://discourse.processing.org/t/g4p-window-returning-null/44632 "2024-06-23T15:24:13Z")

</div>

Hello, hope you doing all well , so i was adding a loading window to wait for configuration, first of all, this screen is trigerred upon a button click in another window, here s the code of the loading window : public v…

---

## [Processing 4.3 Library list is empty](https://discourse.processing.org/t/processing-4-3-library-list-is-empty/44629)

<div class="topic-metadata">

**Author:** [@RaiDerSpb](https://discourse.processing.org/u/RaiDerSpb)\
**Replies:** 1\
**Last updated:** [June 22, 2024, 10:07pm UTC](https://discourse.processing.org/t/processing-4-3-library-list-is-empty/44629 "2024-06-22T22:07:59Z")

</div>

Hello! In Processing 4.3 Library list is empty at my home computer. What problem is it? The Processing 4.3 works well on my work computer on another local network. Maybe it’s the provider or the firewall?

---

## [Start bash from sketch (Linux)](https://discourse.processing.org/t/start-bash-from-sketch-linux/44615)

<div class="topic-metadata">

**Author:** [@leclerke](https://discourse.processing.org/u/leclerke)\
**Replies:** 11\
**Last updated:** [June 22, 2024, 1:38pm UTC](https://discourse.processing.org/t/start-bash-from-sketch-linux/44615 "2024-06-22T13:38:53Z")

</div>

Hello, I would like to execute a bash file (compress.sh) from within a processing sketch. The bash file is stored in the same folder as the sketch. I tried exec("compress.sh");, but it did not work. Can you help me?

---

## [How to specify the IP when multi networkcard](https://discourse.processing.org/t/how-to-specify-the-ip-when-multi-networkcard/44438)

<div class="topic-metadata">

**Author:** [@techno](https://discourse.processing.org/u/techno)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 12:52am UTC](https://discourse.processing.org/t/how-to-specify-the-ip-when-multi-networkcard/44438 "2024-06-19T00:52:34Z")

</div>

i’m teacher and use processing in teaching i ve 2 networks cards in the computer of the student. so i have 2 ipadresse. (ethernet and wlan) how to specify the second adresse ip in : s = new Server(this, 8080); i can…

---

## [Video library rtsp lags too much](https://discourse.processing.org/t/video-library-rtsp-lags-too-much/9306)

<div class="topic-metadata">

**Author:** [@spiderdab](https://discourse.processing.org/u/spiderdab)\
**Replies:** 3\
**Last updated:** [June 17, 2024, 1:01pm UTC](https://discourse.processing.org/t/video-library-rtsp-lags-too-much/9306 "2024-06-17T13:01:29Z")

</div>

Hi, I’m reading a rtsp camera streaming, but I have 3 seconds of delay, which I have to reduce to a maximum of half a second. This is the code I’m using: import processing.video.\*; Movie movie; void setup() { size(1…

---

## [PImage displays well but exports as empty file](https://discourse.processing.org/t/pimage-displays-well-but-exports-as-empty-file/44605)

<div class="topic-metadata">

**Author:** [@TellAJoke](https://discourse.processing.org/u/TellAJoke)\
**Replies:** 6\
**Last updated:** [June 17, 2024, 11:06am UTC](https://discourse.processing.org/t/pimage-displays-well-but-exports-as-empty-file/44605 "2024-06-17T11:06:36Z")

</div>

Hello. In this code snippet I create a canvas and draw on it using a shader. The created image displays nicely, but when exported the PNG file is empty. Exporting the canvas directly wont work either. When I do loadPixel…

---

## [Drawing shader consistently regardless of size and position in canvas](https://discourse.processing.org/t/drawing-shader-consistently-regardless-of-size-and-position-in-canvas/44601)

<div class="topic-metadata">

**Author:** [@TellAJoke](https://discourse.processing.org/u/TellAJoke)\
**Replies:** 2\
**Last updated:** [June 16, 2024, 11:23pm UTC](https://discourse.processing.org/t/drawing-shader-consistently-regardless-of-size-and-position-in-canvas/44601 "2024-06-16T23:23:30Z")

</div>

Hello. I have custom glsl fragment shader files and am drawing them using rect(). I want the shader to be drawn as if it was an image, which means all the information should be present when drawn, and it should stretch d…

---

## [Difficulties with Map Thing and Unfolding (show GPX)](https://discourse.processing.org/t/difficulties-with-map-thing-and-unfolding-show-gpx/44188)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [June 15, 2024, 3:12pm UTC](https://discourse.processing.org/t/difficulties-with-map-thing-and-unfolding-show-gpx/44188 "2024-06-15T15:12:30Z")

</div>

Hello all, can someone please recommend a library to show many gpx tracks in a map and calc the middle position of one track? Thank you all!

---

## [Give some examples (Unfolding library)](https://discourse.processing.org/t/give-some-examples-unfolding-library/44362)

<div class="topic-metadata">

**Author:** [@Ciosiek](https://discourse.processing.org/u/Ciosiek)\
**Replies:** 7\
**Last updated:** [June 15, 2024, 3:11pm UTC](https://discourse.processing.org/t/give-some-examples-unfolding-library/44362 "2024-06-15T15:11:42Z")

</div>

Hello, i’m trying to use processing 4 because it’s needed for Unfolding 0.9.6 library for javafx. Can you provide me with simple example how to make working processing 4 with javafx? I’m doing an application and I cannot…

---

## [Out of Memory when creating image using canvas](https://discourse.processing.org/t/out-of-memory-when-creating-image-using-canvas/44296)

<div class="topic-metadata">

**Author:** [@TellAJoke](https://discourse.processing.org/u/TellAJoke)\
**Replies:** 4\
**Last updated:** [June 14, 2024, 10:43pm UTC](https://discourse.processing.org/t/out-of-memory-when-creating-image-using-canvas/44296 "2024-06-14T22:43:57Z")

</div>

Project runs out of memory eventually after running for a while. (RuntimeException: java.lang.OutOfMemoryError: Java heap space) I have narrowed down the issue to a particular snippet. Created a sketch with it that also…

---

## [Wacom Intuos drawing + pressure](https://discourse.processing.org/t/wacom-intuos-drawing-pressure/44590)

<div class="topic-metadata">

**Author:** [@lucnijs](https://discourse.processing.org/u/lucnijs)\
**Replies:** 7\
**Last updated:** [June 14, 2024, 10:36am UTC](https://discourse.processing.org/t/wacom-intuos-drawing-pressure/44590 "2024-06-14T10:36:47Z")

</div>

Hi everybody, I’m totally new to processing. I would like to use a wacom tablet, to have people draw to music. It is important that, while drawing, strake changes according to pressure. I have tried chatgpt to get som…

---

## [OnReceive event for Ethernet connection?](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 10:47pm UTC](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591 "2024-06-13T22:47:44Z")

</div>

hi, hope you doing all well, when i was using serial port for my arduino project, there was a function that automatically trigerred upon receiving data via serial port ( serial event) , now i m using ethernet connection,…

---

## [Hello, how to calculate a slider value](https://discourse.processing.org/t/hello-how-to-calculate-a-slider-value/44554)

<div class="topic-metadata">

**Author:** [@zlfp](https://discourse.processing.org/u/zlfp)\
**Replies:** 18\
**Last updated:** [June 12, 2024, 8:02pm UTC](https://discourse.processing.org/t/hello-how-to-calculate-a-slider-value/44554 "2024-06-12T20:02:40Z")

</div>

so, umm i have code class slide { PImage ball, line; int px, py, ipp, bpx; slide(PImage sb, PImage sl, int spx, int spy, int sipp) { ball = sb; line = sl; px = spx; py = spy; ipp = sipp; …

---

## [\[Java\] 'Network' library related - server issue](https://discourse.processing.org/t/java-network-library-related-server-issue/44579)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [June 12, 2024, 8:08pm UTC](https://discourse.processing.org/t/java-network-library-related-server-issue/44579 "2024-06-12T20:08:58Z")

</div>

\[JAVA\] ‘Network’ library related - server issue hello. Reference link: available() / Libraries / Processing.org Client thisClient = myServer.available(); if (thisClient !=null) { // 1) T1 : Initial connection…

---

## [rotateZ() not working as expected](https://discourse.processing.org/t/rotatez-not-working-as-expected/843)

<div class="topic-metadata">

**Author:** [@CosminPerRam](https://discourse.processing.org/u/CosminPerRam)\
**Replies:** 12\
**Last updated:** [June 9, 2024, 4:18pm UTC](https://discourse.processing.org/t/rotatez-not-working-as-expected/843 "2024-06-09T16:18:52Z")

</div>

Hello everybody, i have some trouble rotating a 3D box in processing with data from a arduino with a BNO055 module (sensor module, gyro), and the thing is that if i run my window, the first ~5 seconds are perfect, after …

---

## [Resume Sketch after Null Pointer Exception?](https://discourse.processing.org/t/resume-sketch-after-null-pointer-exception/44572)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 16\
**Last updated:** [June 12, 2024, 3:57am UTC](https://discourse.processing.org/t/resume-sketch-after-null-pointer-exception/44572 "2024-06-12T03:57:53Z")

</div>

Hi, I’ve got a sketch that is supposed to load a file using loadStrings. If for some reason that file is missing, then the sketch throws a null pointer exception and stops running. I want to handle the case of the file…

---

## [Problem playing multiple movie files in a sequence](https://discourse.processing.org/t/problem-playing-multiple-movie-files-in-a-sequence/43762)

<div class="topic-metadata">

**Author:** [@dswayne92](https://discourse.processing.org/u/dswayne92)\
**Replies:** 4\
**Last updated:** [June 11, 2024, 12:21pm UTC](https://discourse.processing.org/t/problem-playing-multiple-movie-files-in-a-sequence/43762 "2024-06-11T12:21:44Z")

</div>

Dear everyone, I’m working on a project where I have several video files I want to play back in a sequence, and have the sequence itself repeat indefinitely. Every other video clip, Processing writes to the serial port …

---

## [Problem with OSC message from Processing to Max/MSP](https://discourse.processing.org/t/problem-with-osc-message-from-processing-to-max-msp/44214)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [April 2, 2024, 2:09pm UTC](https://discourse.processing.org/t/problem-with-osc-message-from-processing-to-max-msp/44214 "2024-04-02T14:09:54Z")

</div>

Good morning, I manage to send at the same time 9 integers from 0 to 127 from Pocessing to max/msp But when I start processing, my image streams in max/msp become inconsistent, with lag Is it possible to send less dat…

---

## [The function "red(int)" does not exist?](https://discourse.processing.org/t/the-function-red-int-does-not-exist/44567)

<div class="topic-metadata">

**Author:** [@flice](https://discourse.processing.org/u/flice)\
**Replies:** 5\
**Last updated:** [June 10, 2024, 6:47am UTC](https://discourse.processing.org/t/the-function-red-int-does-not-exist/44567 "2024-06-10T06:47:52Z")

</div>

hello! i have the code below to keep sum the rbg values every 16 pixels. However, i’m getting an error saying that red(int), green(int), and blue(int) does not exist?? the argument i passed into the function is a color,…

---

## [G4P Key Event Fires Twice](https://discourse.processing.org/t/g4p-key-event-fires-twice/44571)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 4\
**Last updated:** [June 10, 2024, 5:24pm UTC](https://discourse.processing.org/t/g4p-key-event-fires-twice/44571 "2024-06-10T17:24:06Z")

</div>

Some reason when I use a key event on a second window, the event is fired twice. Issue is there for image buttons and normal buttons. Have also tried the new update to the library but no joy. Here’s repeatable code: im…

---

## [How to disable text area in G4P](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 5\
**Last updated:** [June 10, 2024, 1:38pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543 "2024-06-10T13:38:39Z")

</div>

Hi, hope you doing all well, is there a way to disable text area in G4P ? i mean i want to add a help interface with small instructions on it and the user can’t of course modify the content of the help page, but i did n …

---

## [Why is my line not smoother?](https://discourse.processing.org/t/why-is-my-line-not-smoother/44414)

<div class="topic-metadata">

**Author:** [@SamDavePollard](https://discourse.processing.org/u/SamDavePollard)\
**Replies:** 5\
**Last updated:** [June 9, 2024, 5:57pm UTC](https://discourse.processing.org/t/why-is-my-line-not-smoother/44414 "2024-06-09T17:57:21Z")

</div>

Apologies for the noob question, but … when I run the following sketch in the Processing IDE I get a smooth line but when I attempt the same thing using Java and IntellijIDEA I get something a lot more pixellated as show…

---

## [Showing x y z axis acceleration data](https://discourse.processing.org/t/showing-x-y-z-axis-acceleration-data/44551)

<div class="topic-metadata">

**Author:** [@Ken\_000](https://discourse.processing.org/u/Ken_000)\
**Replies:** 2\
**Last updated:** [June 9, 2024, 4:00pm UTC](https://discourse.processing.org/t/showing-x-y-z-axis-acceleration-data/44551 "2024-06-09T16:00:23Z")

</div>

New to processing. On windows PC, how to setup processing (with processing code) to display an aeroplane showing roll, pitch and yaw with accelerometer x,y,z axis data coming from serial port? Arduino is used to read a…

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

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