# Latest

**URL:** https://discourse.processing.org/latest.md?page=69

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

**Page:** 70

---

## [Change default name for right-click "Save image as..."](https://discourse.processing.org/t/change-default-name-for-right-click-save-image-as/42245)

<div class="topic-metadata">

**Author:** [@guille](https://discourse.processing.org/u/guille)\
**Replies:** 2\
**Last updated:** [June 20, 2023, 10:08am UTC](https://discourse.processing.org/t/change-default-name-for-right-click-save-image-as/42245 "2023-06-20T10:08:07Z")

</div>

In Firefox, a p5 canvas can be saved with right click and “Save image as…”. The default name it gives is canvas.png. I know I could use saveCanvas(), but I’d like to use the native browser menu. Is there any way to set t…

---

## [Changing Text of Label in ControlP5](https://discourse.processing.org/t/changing-text-of-label-in-controlp5/42254)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 4\
**Last updated:** [June 20, 2023, 8:36am UTC](https://discourse.processing.org/t/changing-text-of-label-in-controlp5/42254 "2023-06-20T08:36:22Z")

</div>

I am using the ControlP5 GUI library. I want to change the text displayed in TextLabel when triggered by some other event. For example in the following case when I press the button. So I tried two methods marked by OPT…

---

## [Pixel array manipulation in HSB color mode](https://discourse.processing.org/t/pixel-array-manipulation-in-hsb-color-mode/42227)

<div class="topic-metadata">

**Author:** [@LuisGranados](https://discourse.processing.org/u/LuisGranados)\
**Replies:** 3\
**Last updated:** [June 19, 2023, 5:48pm UTC](https://discourse.processing.org/t/pixel-array-manipulation-in-hsb-color-mode/42227 "2023-06-19T17:48:17Z")

</div>

I’ve made a sketch that gradually reveals a picture by starting with all black, then gradually increasing the red value of each pixel up to the desired level, then doing the same for green, then blue (or any other order …

---

## [Data structure: table vs. \<class\>ArrayList](https://discourse.processing.org/t/data-structure-table-vs-class-arraylist/42239)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [June 18, 2023, 9:26am UTC](https://discourse.processing.org/t/data-structure-table-vs-class-arraylist/42239 "2023-06-18T09:26:12Z")

</div>

Hello all, I am working on a vocabulary test Sketch and I load a csv file with word pairs. I work with the table then when presenting the words in the test. But the table feels clumsy here. Would it be easier to pars…

---

## [ASCII visualization issue](https://discourse.processing.org/t/ascii-visualization-issue/42041)

<div class="topic-metadata">

**Author:** [@rrnn](https://discourse.processing.org/u/rrnn)\
**Replies:** 10\
**Last updated:** [May 27, 2023, 12:33am UTC](https://discourse.processing.org/t/ascii-visualization-issue/42041 "2023-05-27T00:33:00Z")

</div>

Hello! I’m trying to draw with some ASCII characters (like ░▒▓) on a Mac with Processing.py but unfortunately when I hit play they are not displaying correctly as you can see from the screenshot here What am I miss…

---

## [P5.js web editor vs gitpages - same code, different behavior](https://discourse.processing.org/t/p5-js-web-editor-vs-gitpages-same-code-different-behavior/42236)

<div class="topic-metadata">

**Author:** [@nsegal](https://discourse.processing.org/u/nsegal)\
**Replies:** 1\
**Last updated:** [June 17, 2023, 11:39pm UTC](https://discourse.processing.org/t/p5-js-web-editor-vs-gitpages-same-code-different-behavior/42236 "2023-06-17T23:39:40Z")

</div>

Using the p5 web editor I made a web app to run on the browser of a smart phone. I think made a git repo and copied all the code to the repo and hosted it on gitpages. The html, css, and sketch.js are the same, but when …

---

## [Approximate equality for Rosetta](https://discourse.processing.org/t/approximate-equality-for-rosetta/42196)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 15\
**Last updated:** [June 17, 2023, 7:54pm UTC](https://discourse.processing.org/t/approximate-equality-for-rosetta/42196 "2023-06-17T19:54:47Z")

</div>

I noticed that Processing is missing from https://rosettacode.org/wiki/Approximate\_equality. Sure this can be improved, but here is a start… I have used ‘big’ not in a vain attempt to avoid floating point errors, but t…

---

## [Moving a object with the createGraphics function without leaving a trail](https://discourse.processing.org/t/moving-a-object-with-the-creategraphics-function-without-leaving-a-trail/42230)

<div class="topic-metadata">

**Author:** [@Delain](https://discourse.processing.org/u/Delain)\
**Replies:** 4\
**Last updated:** [June 17, 2023, 12:18pm UTC](https://discourse.processing.org/t/moving-a-object-with-the-creategraphics-function-without-leaving-a-trail/42230 "2023-06-17T12:18:27Z")

</div>

My idea is making a background with the watercolor effect used by steve maker’s space on youtube. I succeeded making it into a function and put it in the setup function. Now I have a background with a nice texture I woul…

---

## [Nature of code - Autonomous agents exercise 6.2](https://discourse.processing.org/t/nature-of-code-autonomous-agents-exercise-6-2/42233)

<div class="topic-metadata">

**Author:** [@alex119](https://discourse.processing.org/u/alex119)\
**Replies:** 0\
**Last updated:** [June 17, 2023, 9:43am UTC](https://discourse.processing.org/t/nature-of-code-autonomous-agents-exercise-6-2/42233 "2023-06-17T09:43:49Z")

</div>

Hello, I am trying to do the exercise 6.2 from The Nature of Code Autonomous Agents chapter. I did something like this but is not working: I looked on the github repository for this exercise, but it doesn’t seem…

---

## [GLException: No shared device for requested: null; createNewDevice true](https://discourse.processing.org/t/glexception-no-shared-device-for-requested-null-createnewdevice-true/42225)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 4:24pm UTC](https://discourse.processing.org/t/glexception-no-shared-device-for-requested-null-createnewdevice-true/42225 "2023-06-16T16:24:32Z")

</div>

None of my code is runable. I dont know why. libEGL warning: DRI3: Screen seems not DRI3 capable libEGL warning: DRI2: failed to authenticate Caught handled GLException: X11GLXDrawableFactory - Could not initialize shar…

---

## [Cannot build empty sketch Android Processing 4](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [June 16, 2023, 10:05am UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948 "2023-06-16T10:05:32Z")

</div>

following error occurs, no idea how to fix ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 131430 \> 65536) com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: …

---

## [Objekte ausschneiden (transparent PShape)](https://discourse.processing.org/t/objekte-ausschneiden-transparent-pshape/41968)

<div class="topic-metadata">

**Author:** [@boolan\_youport](https://discourse.processing.org/u/boolan_youport)\
**Replies:** 6\
**Last updated:** [June 15, 2023, 1:37pm UTC](https://discourse.processing.org/t/objekte-ausschneiden-transparent-pshape/41968 "2023-06-15T13:37:50Z")

</div>

Hallo meine sehr geehrten Herren/innen! Ich hoffe Sie hatten einen angenehmen Tag… doch wie wir alle wissen soll man den Tag nicht vor dem Abend loben. Deswegen wollte ich fragen, ob jemand weiß, wie man Objekte voneinan…

---

## [Processing 4.2 cannot find a class or type named "JASONArray"](https://discourse.processing.org/t/processing-4-2-cannot-find-a-class-or-type-named-jasonarray/42180)

<div class="topic-metadata">

**Author:** [@Grumpy\_Mike](https://discourse.processing.org/u/Grumpy_Mike)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 9:07pm UTC](https://discourse.processing.org/t/processing-4-2-cannot-find-a-class-or-type-named-jasonarray/42180 "2023-06-14T21:07:40Z")

</div>

I am trying to write a JASON file in Processing 4.2. I am trying to follow the examples in the documentation. But when I include the command JASONArray values I get the error message cannot find a class or type named …

---

## [Input window appears behind sketch](https://discourse.processing.org/t/input-window-appears-behind-sketch/24432)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 6:07pm UTC](https://discourse.processing.org/t/input-window-appears-behind-sketch/24432 "2023-06-14T18:07:18Z")

</div>

When I use selectInput() the window always appears behind the screen. Is there any way to fix this, I’ve seen that this has been flagged before on the github and supposedly was fixed but I still have the problem. Is ther…

---

## [Program "crashes" when I setResizable(true) and resize the Window](https://discourse.processing.org/t/program-crashes-when-i-setresizable-true-and-resize-the-window/42208)

<div class="topic-metadata">

**Author:** [@Joseph](https://discourse.processing.org/u/Joseph)\
**Replies:** 27\
**Last updated:** [June 14, 2023, 4:56pm UTC](https://discourse.processing.org/t/program-crashes-when-i-setresizable-true-and-resize-the-window/42208 "2023-06-14T16:56:43Z")

</div>

This is my code void setup() { size(1920, 1080); surface.setResizable(true); } void draw(){ background(0); fill(255); rect(0,0,width,height); } When I change my window size to be as small as possible then res…

---

## [Help Improve Processing's Error Messages: A Survey for Teachers and Students](https://discourse.processing.org/t/help-improve-processings-error-messages-a-survey-for-teachers-and-students/42215)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 1:39pm UTC](https://discourse.processing.org/t/help-improve-processings-error-messages-a-survey-for-teachers-and-students/42215 "2023-06-14T13:39:48Z")

</div>

Hello Processing Community, We’re working on an exciting project aimed at refining the error messages in Processing to make them more beginner-friendly. This initiative is part of Will Rabalais’ Google Summer of Code pr…

---

## [Why does my code splice to many rectangles from the array?](https://discourse.processing.org/t/why-does-my-code-splice-to-many-rectangles-from-the-array/42202)

<div class="topic-metadata">

**Author:** [@Delain](https://discourse.processing.org/u/Delain)\
**Replies:** 2\
**Last updated:** [June 13, 2023, 6:27am UTC](https://discourse.processing.org/t/why-does-my-code-splice-to-many-rectangles-from-the-array/42202 "2023-06-13T06:27:48Z")

</div>

I am trying to make the piet mondrian in p5js, kinda following this site https://generativeartistry.com/tutorials/piet-mondrian/ I keep on running into same problem over and over again and have tried different ways to …

---

## [Color mixing shader produces different results in p5.js editor versus local environment](https://discourse.processing.org/t/color-mixing-shader-produces-different-results-in-p5-js-editor-versus-local-environment/42133)

<div class="topic-metadata">

**Author:** [@Misha.studio](https://discourse.processing.org/u/Misha.studio)\
**Replies:** 5\
**Last updated:** [June 12, 2023, 7:37am UTC](https://discourse.processing.org/t/color-mixing-shader-produces-different-results-in-p5-js-editor-versus-local-environment/42133 "2023-06-12T07:37:27Z")

</div>

Hi there! I’m working on a project where I’m exploring pigment color mixing using spectral.js. To improve my code I created a sketch with a color mix shader using the p5.js editor. When I got the shader working it was ti…

---

## [Accessing the contextual PGraphics explicitly when using beginRecord()](https://discourse.processing.org/t/accessing-the-contextual-pgraphics-explicitly-when-using-beginrecord/42189)

<div class="topic-metadata">

**Author:** [@andrewcooke](https://discourse.processing.org/u/andrewcooke)\
**Replies:** 3\
**Last updated:** [June 11, 2023, 7:34pm UTC](https://discourse.processing.org/t/accessing-the-contextual-pgraphics-explicitly-when-using-beginrecord/42189 "2023-06-11T19:34:07Z")

</div>

I am passing this.g to some separate Java code, and things are working just fine with the data displayed to the screen, but when I try to copy to PDF using beginRecord() and endRecord() I don’t see any of the output that…

---

## [How do I make the background transparent](https://discourse.processing.org/t/how-do-i-make-the-background-transparent/42187)

<div class="topic-metadata">

**Author:** [@Worm](https://discourse.processing.org/u/Worm)\
**Replies:** 3\
**Last updated:** [June 11, 2023, 7:30pm UTC](https://discourse.processing.org/t/how-do-i-make-the-background-transparent/42187 "2023-06-11T19:30:18Z")

</div>

I’m very new so maybe this is super obvious So I’m trying to set the background to transparent so I can export my images and use them as sprites in unity. When I’m using SaveFrame() it saves the frames as .PNG and I kno…

---

## [Processing : Why transform coordinate system, not individual elements?](https://discourse.processing.org/t/processing-why-transform-coordinate-system-not-individual-elements/42167)

<div class="topic-metadata">

**Author:** [@skraboutcha](https://discourse.processing.org/u/skraboutcha)\
**Replies:** 11\
**Last updated:** [June 11, 2023, 6:21pm UTC](https://discourse.processing.org/t/processing-why-transform-coordinate-system-not-individual-elements/42167 "2023-06-11T18:21:12Z")

</div>

Hello dear Processing Community, I’m trying to understand the advantage of the transformation mode (position, scale, rotation) offered by Processing (and p5) I’m having trouble getting to grips with the fact that I hav…

---

## [PC to Bluetooth (with Arduino) does not work when USB is unplugged](https://discourse.processing.org/t/pc-to-bluetooth-with-arduino-does-not-work-when-usb-is-unplugged/42156)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 30\
**Last updated:** [June 11, 2023, 2:21pm UTC](https://discourse.processing.org/t/pc-to-bluetooth-with-arduino-does-not-work-when-usb-is-unplugged/42156 "2023-06-11T14:21:52Z")

</div>

I am currently working on a project connecting and controlling Arduino Uno via Bluetooth, using Processing via PC, but the problem is, it works when the USB port with Arduino is connected, but when I disconnect it and ju…

---

## [Hanging by a thread](https://discourse.processing.org/t/hanging-by-a-thread/42135)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 3\
**Last updated:** [June 5, 2023, 7:28pm UTC](https://discourse.processing.org/t/hanging-by-a-thread/42135 "2023-06-05T19:28:03Z")

</div>

I want to click an object, then a thread appears and the object starts to fall until the thread reaches it’s maximum length, then it just hangs in place, like if you were holding an unraveled yoyo then released it. Thank…

---

## [Text on a free line (SVG)](https://discourse.processing.org/t/text-on-a-free-line-svg/40718)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 14\
**Last updated:** [June 11, 2023, 1:51am UTC](https://discourse.processing.org/t/text-on-a-free-line-svg/40718 "2023-06-11T01:51:20Z")

</div>

Hi, I am almost a newbie on Processing. I found this tutorial where it is also explained how to draw a text over a circle: Strings and Drawing Text / Processing.org . My questions are: is it possible to draw a text …

---

## [Class for colours](https://discourse.processing.org/t/class-for-colours/42169)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 18\
**Last updated:** [June 10, 2023, 3:35pm UTC](https://discourse.processing.org/t/class-for-colours/42169 "2023-06-10T15:35:07Z")

</div>

Good day I’m trying to create a class that contains the colours for my application. E.g. class Colours { color background = color (0xB0, 0xB0, 0xB0); color text = color( 0x00, 0x00, 0x00); } And I would like to us…

---

## [Can someone help to check why the circles are not random color?](https://discourse.processing.org/t/can-someone-help-to-check-why-the-circles-are-not-random-color/42176)

<div class="topic-metadata">

**Author:** [@Jiuyi91](https://discourse.processing.org/u/Jiuyi91)\
**Replies:** 2\
**Last updated:** [June 10, 2023, 3:21pm UTC](https://discourse.processing.org/t/can-someone-help-to-check-why-the-circles-are-not-random-color/42176 "2023-06-10T15:21:56Z")

</div>

let r,g,b,colorFill,R; let col,canvas2; function setup() { createCanvas(windowWidth, windowHeight); canvas2=createGraphics(windowWidth, windowHeight); canvas2.clear(); } function draw() { background(col,0,160); …

---

## [Recursive function for generating permutations of \[0, ..., n\]](https://discourse.processing.org/t/recursive-function-for-generating-permutations-of-0-n/42163)

<div class="topic-metadata">

**Author:** [@jackeddielove](https://discourse.processing.org/u/jackeddielove)\
**Replies:** 9\
**Last updated:** [June 10, 2023, 1:55am UTC](https://discourse.processing.org/t/recursive-function-for-generating-permutations-of-0-n/42163 "2023-06-10T01:55:57Z")

</div>

// trying to write a recursive function that returns all the permutations of \[0, ..., n\], for example: // perms(0) = \[\[0\]\] // perms(1) = \[\[0, 1\], \[1, 0\]\] // perms(2) = \[\[0, 1, 2\], \[0, 2, 1\], \[2, 0, 1\], \[1, 0, 2\], \[1, 2, …

---

## [Why can't I create my class after I declare a variable with it?](https://discourse.processing.org/t/why-cant-i-create-my-class-after-i-declare-a-variable-with-it/41884)

<div class="topic-metadata">

**Author:** [@Hha2011](https://discourse.processing.org/u/Hha2011)\
**Replies:** 12\
**Last updated:** [June 9, 2023, 5:43pm UTC](https://discourse.processing.org/t/why-cant-i-create-my-class-after-i-declare-a-variable-with-it/41884 "2023-06-09T17:43:10Z")

</div>

\< Ball ball; class Ball { } I swear this code worked in processing 4.1.1 or maybe 4.0b7 cause that was how the tutorial worked(well the class is in a different file but processing reads it like tht so it does not …

---

## [Please Introduce Yourself](https://discourse.processing.org/t/please-introduce-yourself/15)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 260\
**Last updated:** [June 9, 2023, 11:07am UTC](https://discourse.processing.org/t/please-introduce-yourself/15 "2023-06-09T11:07:25Z")

</div>

Hello and welcome! Please share something about yourself. Who are you and why are you here? This is a tradition going back to the first Processing forum in 2002.

---

## [BlobDetection library: Can it find light-colored blobs instead of only dark ones?](https://discourse.processing.org/t/blobdetection-library-can-it-find-light-colored-blobs-instead-of-only-dark-ones/36755)

<div class="topic-metadata">

**Author:** [@jamshark70](https://discourse.processing.org/u/jamshark70)\
**Replies:** 2\
**Last updated:** [June 8, 2023, 3:52pm UTC](https://discourse.processing.org/t/blobdetection-library-can-it-find-light-colored-blobs-instead-of-only-dark-ones/36755 "2023-06-08T15:52:28Z")

</div>

Hi. A bit puzzled with something in the blobDetection library (Julien ‘v3ga’ Gachadoat, BlobDetection library / v3ga). I adapted the webcam script to display the blobs and also send blob coordinates over OSC. It ident…

[Previous page](https://discourse.processing.org/latest.md?page=68)

[Next page](https://discourse.processing.org/latest.md?page=70)
