# Processing

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

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

**Page:** 43

---

## [OpenBCI GUI works in 3.3.7 but doesn't work in 4](https://discourse.processing.org/t/openbci-gui-works-in-3-3-7-but-doesnt-work-in-4/41146)

<div class="topic-metadata">

**Author:** [@hcdebey](https://discourse.processing.org/u/hcdebey)\
**Replies:** 5\
**Last updated:** [March 5, 2023, 4:31pm UTC](https://discourse.processing.org/t/openbci-gui-works-in-3-3-7-but-doesnt-work-in-4/41146 "2023-03-05T16:31:33Z")

</div>

I have an application that works in Processing 3.3.7 but not in 4. This line gets an error. Serial port; The error message is: “The type Serial is ambiguous” Can someone help me with this?

---

## [Would it be possible to create a triangular application?](https://discourse.processing.org/t/would-it-be-possible-to-create-a-triangular-application/41564)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 3\
**Last updated:** [April 2, 2023, 2:44pm UTC](https://discourse.processing.org/t/would-it-be-possible-to-create-a-triangular-application/41564 "2023-04-02T14:44:06Z")

</div>

So I thought of trying to create some cellular automata or simulation, whatever, and I thought of making one triangular. I guess it would be pretty cool to make a triangular 2D array somehow…? I might find a way to do th…

---

## [With G4P Click Checkbox also triggers mouseClicked](https://discourse.processing.org/t/with-g4p-click-checkbox-also-triggers-mouseclicked/41559)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 2\
**Last updated:** [April 1, 2023, 7:45pm UTC](https://discourse.processing.org/t/with-g4p-click-checkbox-also-triggers-mouseclicked/41559 "2023-04-01T19:45:38Z")

</div>

With a G4P Checkbox when I click on it, the Processing mouseClicked() runs as well. In other environments where I’ve coded, the front-most window gets the click and doesn’t arrive on the ones behind. I’m finding myself…

---

## [Gamecontrolplus Slider Value](https://discourse.processing.org/t/gamecontrolplus-slider-value/41545)

<div class="topic-metadata">

**Author:** [@pacolux](https://discourse.processing.org/u/pacolux)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 6:25pm UTC](https://discourse.processing.org/t/gamecontrolplus-slider-value/41545 "2023-03-31T18:25:46Z")

</div>

Working with XBox controller and noticed the slider output maxes at about a third of the movement range of the stick no matter what I put in the multiplier/tolerance. Is this the incompatibility with newer devices that …

---

## [Weird ArrayOutOfBound issue, using PShape](https://discourse.processing.org/t/weird-arrayoutofbound-issue-using-pshape/41529)

<div class="topic-metadata">

**Author:** [@jokoko](https://discourse.processing.org/u/jokoko)\
**Replies:** 4\
**Last updated:** [March 31, 2023, 2:58pm UTC](https://discourse.processing.org/t/weird-arrayoutofbound-issue-using-pshape/41529 "2023-03-31T14:58:02Z")

</div>

Hi there, I’m working on a project, involving video, svg and createdShape, displayed in 3 “sub-window” (actually 3 “rectangles” drawn in the main window canva) -the aim is to map it on 3 screen surfaces. I’d like to us…

---

## [Delta between two decibel signal](https://discourse.processing.org/t/delta-between-two-decibel-signal/41442)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [March 26, 2023, 3:17pm UTC](https://discourse.processing.org/t/delta-between-two-decibel-signal/41442 "2023-03-26T15:17:29Z")

</div>

Hi, I’m trying to return the difference between to signal. The difference is L1 I tried this but the problem is with pow Thanks for helping :wink: float splitTimeLfo, oldSplitTimeLfo; void setup() { int i = 12…

---

## [Numeric Recognition Program Project](https://discourse.processing.org/t/numeric-recognition-program-project/41542)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [March 31, 2023, 11:17am UTC](https://discourse.processing.org/t/numeric-recognition-program-project/41542 "2023-03-31T11:17:56Z")

</div>

Numeric Recognition Program Project Get camera data. Remove as much external background as possible through a filter. Recognize through OCR. This is what we are doing now. However, now it is a form that …

---

## [Do BW (alpha) values need to be int \[0..255\]?](https://discourse.processing.org/t/do-bw-alpha-values-need-to-be-int-0-255/41489)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 7\
**Last updated:** [March 31, 2023, 10:42am UTC](https://discourse.processing.org/t/do-bw-alpha-values-need-to-be-int-0-255/41489 "2023-03-31T10:42:02Z")

</div>

How many levels of Black&White are allowed in the pixel alpha values? I’m trying to work this out by trial and error, and confusing myself. The reference says the value needs to be between 0…255, but not as far as I ca…

---

## [Get functions / variables / classes from Processing and user](https://discourse.processing.org/t/get-functions-variables-classes-from-processing-and-user/30100)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 11\
**Last updated:** [March 28, 2023, 12:43pm UTC](https://discourse.processing.org/t/get-functions-variables-classes-from-processing-and-user/30100 "2023-03-28T12:43:22Z")

</div>

Hey, I want to write a visual scripting tool (with eclipse) and for that I need a function with which I can find all functions in the sketch and get the parameters. Processing does the same, if you press CTRL and space …

---

## [Processing won't start. An unexpected, unknown, and unrecoverable error ocurred](https://discourse.processing.org/t/processing-wont-start-an-unexpected-unknown-and-unrecoverable-error-ocurred/41517)

<div class="topic-metadata">

**Author:** [@Abraham](https://discourse.processing.org/u/Abraham)\
**Replies:** 6\
**Last updated:** [March 30, 2023, 4:37pm UTC](https://discourse.processing.org/t/processing-wont-start-an-unexpected-unknown-and-unrecoverable-error-ocurred/41517 "2023-03-30T16:37:55Z")

</div>

Hello, I’m having a weird problem. I’ve used Processing on many computers now, but this is the first time I encountered this. When trying to run the .exe on this computer it just won’t start. I get this window with the…

---

## [Is possible Encapsulate a Function in Processing?](https://discourse.processing.org/t/is-possible-encapsulate-a-function-in-processing/41524)

<div class="topic-metadata">

**Author:** [@Tibiscenas](https://discourse.processing.org/u/Tibiscenas)\
**Replies:** 1\
**Last updated:** [March 30, 2023, 9:28am UTC](https://discourse.processing.org/t/is-possible-encapsulate-a-function-in-processing/41524 "2023-03-30T09:28:56Z")

</div>

hi, can be convert a Simple Function in by a example a “Jar” that can be imported at compilation time ?? like a some found in Apache Org commons → math3, exec, io, etc. example of function : void adding(int x){ int …

---

## [Does Processing have something that is similar to Unity FixedUpdate](https://discourse.processing.org/t/does-processing-have-something-that-is-similar-to-unity-fixedupdate/41302)

<div class="topic-metadata">

**Author:** [@psamead](https://discourse.processing.org/u/psamead)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 6:08pm UTC](https://discourse.processing.org/t/does-processing-have-something-that-is-similar-to-unity-fixedupdate/41302 "2023-03-29T18:08:33Z")

</div>

Hi my friends, I am trying to follow Daniel’s Chaos Game and adding a P5 control to control values on runtime. But it seems I have to move some setups to the draw part, because codes in setup part only update once befor…

---

## [Image not loading in draw method](https://discourse.processing.org/t/image-not-loading-in-draw-method/41511)

<div class="topic-metadata">

**Author:** [@Random\_Ghost](https://discourse.processing.org/u/Random_Ghost)\
**Replies:** 3\
**Last updated:** [March 29, 2023, 12:39pm UTC](https://discourse.processing.org/t/image-not-loading-in-draw-method/41511 "2023-03-29T12:39:42Z")

</div>

I tried creating an image array in the setup method, but no matter what I do, the images won’t show up if I try to draw it in the draw method. It works fine in setup but I need to use it in draw. Any suggestions. void s…

---

## [Blank SVG export](https://discourse.processing.org/t/blank-svg-export/41460)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 6:42pm UTC](https://discourse.processing.org/t/blank-svg-export/41460 "2023-03-28T18:42:18Z")

</div>

Hi, I’m trying to export the following code output vis processing.js, but the .SVG file is blank white whenever I do so. What am I doing wrong?

---

## [How to fix Memory Leaks?](https://discourse.processing.org/t/how-to-fix-memory-leaks/41455)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 2:02pm UTC](https://discourse.processing.org/t/how-to-fix-memory-leaks/41455 "2023-03-28T14:02:33Z")

</div>

I noticed my drawing software starts to very slowly fill up the ram. How can i detect unused objects and where does it come from? Can it be when increating variables? I mean if i let the software just chill and not even …

---

## [Access array using composite symbol name](https://discourse.processing.org/t/access-array-using-composite-symbol-name/41462)

<div class="topic-metadata">

**Author:** [@jmmmp](https://discourse.processing.org/u/jmmmp)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 9:51am UTC](https://discourse.processing.org/t/access-array-using-composite-symbol-name/41462 "2023-03-28T09:51:29Z")

</div>

Hello, I have several arrays which are loaded from text files, e.g. array1 = loadStrings(“marker-energy-sc2.txt”); , then array2, array3, etc. I would need to access values in those arrays based on another value coming…

---

## [What is padding offset and roundness? What do you use it for?](https://discourse.processing.org/t/what-is-padding-offset-and-roundness-what-do-you-use-it-for/41465)

<div class="topic-metadata">

**Author:** [@Rvy](https://discourse.processing.org/u/Rvy)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 8:00am UTC](https://discourse.processing.org/t/what-is-padding-offset-and-roundness-what-do-you-use-it-for/41465 "2023-03-28T08:00:25Z")

</div>

I don’t quite understand about padding offset and roundness in java What does we use it for? Can anyone please kindly explain it to me?

---

## [Optimising many PImages](https://discourse.processing.org/t/optimising-many-pimages/41456)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 7:49am UTC](https://discourse.processing.org/t/optimising-many-pimages/41456 "2023-03-28T07:49:32Z")

</div>

Possible to optimise mabye 32 PImages that are all 2000px x 2000px? they are only drawn on screen and nothing more! If someone wants a gigant piece of code and is willing to fix it i would be really happy otherwise i wil…

---

## [Change sketch window color?](https://discourse.processing.org/t/change-sketch-window-color/41481)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 11:56pm UTC](https://discourse.processing.org/t/change-sketch-window-color/41481 "2023-03-27T23:56:44Z")

</div>

Is it possible to change the windowcolor from the sketch to black? probably is but i dont know anything about java awt. please if anyone knows give me the smallest code possible! ty :smiley:

---

## [Can't figure out why reading G4P combo text value in IF statement doesn't work](https://discourse.processing.org/t/cant-figure-out-why-reading-g4p-combo-text-value-in-if-statement-doesnt-work/41480)

<div class="topic-metadata">

**Author:** [@hondaman900](https://discourse.processing.org/u/hondaman900)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 9:13pm UTC](https://discourse.processing.org/t/cant-figure-out-why-reading-g4p-combo-text-value-in-if-statement-doesnt-work/41480 "2023-03-27T21:13:38Z")

</div>

I’m maintaining a legacy P1.5 app. It works fine, and this question relates to code logic and why code that looks correct isn’t functioning as excepted. My user selects a font from a drop-down list, and the font on-scre…

---

## [Sort PVector array by distance](https://discourse.processing.org/t/sort-pvector-array-by-distance/4737)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 9\
**Last updated:** [October 24, 2018, 4:51pm UTC](https://discourse.processing.org/t/sort-pvector-array-by-distance/4737 "2018-10-24T16:51:57Z")

</div>

I want to sort PVector\[\] array by distance between points…but idk how to do that correctly…i tried to make that by myself but stuck a tsorting…i can calculate distance but sort…idk how…help pls… UPD:solution: void sort…

---

## [Custom Taskmanager Process?](https://discourse.processing.org/t/custom-taskmanager-process/41478)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 6:09pm UTC](https://discourse.processing.org/t/custom-taskmanager-process/41478 "2023-03-27T18:09:07Z")

</div>

Is it possible to create a custom Taskmanager Process, that when terminated, the sketch closes?

---

## [Creating and disposing of PApplet windows](https://discourse.processing.org/t/creating-and-disposing-of-papplet-windows/41476)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 3:06pm UTC](https://discourse.processing.org/t/creating-and-disposing-of-papplet-windows/41476 "2023-03-27T15:06:02Z")

</div>

In Processing 4 the sample code shows how to create multiple windows, but not how to destroy them. All help threads are old and the code I found does not function in version 4. I do not merely wish to hide a window, but …

---

## [Surface documentation](https://discourse.processing.org/t/surface-documentation/41471)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 1:13pm UTC](https://discourse.processing.org/t/surface-documentation/41471 "2023-03-27T13:13:30Z")

</div>

It would be nice to have surface documented. Something more comprehensible for newcomers than this. (I am posting related questions about surface but this is a documentation issue so I thought it deserved a thread.)

---

## [SoundFile the wrong sampleRate](https://discourse.processing.org/t/soundfile-the-wrong-samplerate/26660)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 5:38pm UTC](https://discourse.processing.org/t/soundfile-the-wrong-samplerate/26660 "2023-03-26T17:38:53Z")

</div>

Does Processing only load audio files at 44.1KHz? I have an mp3 at 48KHz loaded to my sketch. I set the Sound object to 48KHz. My sound card is at 48KHz. But the file is loading at 44.1 and the slow playback confirms. i…

---

## [Unable to download ControlP5: Processing 3.5.4](https://discourse.processing.org/t/unable-to-download-controlp5-processing-3-5-4/41446)

<div class="topic-metadata">

**Author:** [@BilalAteeq](https://discourse.processing.org/u/BilalAteeq)\
**Replies:** 2\
**Last updated:** [March 26, 2023, 7:14am UTC](https://discourse.processing.org/t/unable-to-download-controlp5-processing-3-5-4/41446 "2023-03-26T07:14:36Z")

</div>

I am a newcomer to processing, and I need to download a library, the library is controlp5, when I click install on the library, it says “error downloading and installing controlp5”, but when I try to install other librar…

---

## [Read and edit a text file (Editor)](https://discourse.processing.org/t/read-and-edit-a-text-file-editor/38301)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 10\
**Last updated:** [March 26, 2023, 4:15am UTC](https://discourse.processing.org/t/read-and-edit-a-text-file-editor/38301 "2023-03-26T04:15:48Z")

</div>

Hi everyone, I was wondering if anyone has a simple program that can read each line of a txt-file and edit a specific line if you want to. Thank you to everyone who can help!

---

## [Render PImage using P2D?](https://discourse.processing.org/t/render-pimage-using-p2d/41429)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 4\
**Last updated:** [March 25, 2023, 12:19pm UTC](https://discourse.processing.org/t/render-pimage-using-p2d/41429 "2023-03-25T12:19:05Z")

</div>

Is it possible to render a PImage as with P2D like it is possible to render PGraphics with P2D too.

---

## [Help: Loop/While with millis](https://discourse.processing.org/t/help-loop-while-with-millis/41433)

<div class="topic-metadata">

**Author:** [@xnainie](https://discourse.processing.org/u/xnainie)\
**Replies:** 2\
**Last updated:** [March 24, 2023, 5:52pm UTC](https://discourse.processing.org/t/help-loop-while-with-millis/41433 "2023-03-24T17:52:38Z")

</div>

Hi, i want to make an disco room and it has too keep chaning in the meanwhile you are there. i have it with millis but then i have to make a lot of codes

---

## [Having many PGraphics loaded lags](https://discourse.processing.org/t/having-many-pgraphics-loaded-lags/41396)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 9\
**Last updated:** [March 24, 2023, 2:38pm UTC](https://discourse.processing.org/t/having-many-pgraphics-loaded-lags/41396 "2023-03-24T14:38:47Z")

</div>

Is it possible to prevent high gui usage with like 128 pgraphics?

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

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