# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=78

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

**Page:** 79

---

## [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!

---

## [Simple textinput class](https://discourse.processing.org/t/simple-textinput-class/29754)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 4:09am UTC](https://discourse.processing.org/t/simple-textinput-class/29754 "2023-03-26T04:09:42Z")

</div>

class TextArea{ float x,y,w,h,bx,by,textSize = 12,spacing = 2,txoff,tyoff,lxpos; int last,lines,xpos,ypos; String \[\] textArea; String text = "",blankLine="",tempLine = "",label = ""; boolean update,blink,visibl…

---

## [Library Modbus rtu](https://discourse.processing.org/t/library-modbus-rtu/41401)

<div class="topic-metadata">

**Author:** [@Sylvain80](https://discourse.processing.org/u/Sylvain80)\
**Replies:** 1\
**Last updated:** [March 25, 2023, 11:13pm UTC](https://discourse.processing.org/t/library-modbus-rtu/41401 "2023-03-25T23:13:06Z")

</div>

Hello, is there a library to manage the Modbus RTU with Processing?. I found this link but the download is no longer possible. Do you have another solution? Thanks in advance Sylvain

---

## [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.

---

## [Request to review my proposal](https://discourse.processing.org/t/request-to-review-my-proposal/41432)

<div class="topic-metadata">

**Author:** [@Frozen](https://discourse.processing.org/u/Frozen)\
**Replies:** 2\
**Last updated:** [March 25, 2023, 5:20am UTC](https://discourse.processing.org/t/request-to-review-my-proposal/41432 "2023-03-25T05:20:42Z")

</div>

Hi, I would be grateful if someone could review my proposal for this project. Here’s the link to my proposal. Tagging the potential mentors: @hx2A , @villares. Thanks

---

## [Export signed package NOT WORKING!](https://discourse.processing.org/t/export-signed-package-not-working/41435)

<div class="topic-metadata">

**Author:** [@LVU](https://discourse.processing.org/u/LVU)\
**Replies:** 2\
**Last updated:** [March 24, 2023, 9:21pm UTC](https://discourse.processing.org/t/export-signed-package-not-working/41435 "2023-03-24T21:21:31Z")

</div>

Export signed package NOT WORKING !!! “Install Android SDK Platform 33 (revision: 2)” failed. FAILURE: Build failed with an exception. What went wrong: Could not determine the dependencies of task ‘:app:compileRele…

---

## [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

---

## [New version of Rock-Paper-Scissors game](https://discourse.processing.org/t/new-version-of-rock-paper-scissors-game/41421)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [March 23, 2023, 11:25pm UTC](https://discourse.processing.org/t/new-version-of-rock-paper-scissors-game/41421 "2023-03-23T23:25:21Z")

</div>

die neue Version von Stein Schere Papier. Rock-Paper-Scissors game. MIT License. http://jan-buehring.de/ or play online with other People: http://jan-buehring.de/ssp3.zip Well this is my very first multi user onli…

---

## [Processing for Android on Samsung Foldables](https://discourse.processing.org/t/processing-for-android-on-samsung-foldables/41430)

<div class="topic-metadata">

**Author:** [@Brahvim](https://discourse.processing.org/u/Brahvim)\
**Replies:** 0\
**Last updated:** [March 24, 2023, 3:41pm UTC](https://discourse.processing.org/t/processing-for-android-on-samsung-foldables/41430 "2023-03-24T15:41:32Z")

</div>

I was wondering whether or not Processing would work as expected on Samsung foldable phones. I don’t think JOGL has any options for this on Android! Thoughts and opinions?

---

## [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?

---

## [Scrolling shape not closing](https://discourse.processing.org/t/scrolling-shape-not-closing/41407)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 3\
**Last updated:** [March 24, 2023, 8:55am UTC](https://discourse.processing.org/t/scrolling-shape-not-closing/41407 "2023-03-24T08:55:21Z")

</div>

Hi everyone! I’m fighting with a problem with shapes that i can’t solve. I want to draw scrolling shapes based on external data i receive through OSC (imagine this like some kind of data oscilloscope). I’m simulating t…

---

## [Code being displayed in Browser instead of sketch](https://discourse.processing.org/t/code-being-displayed-in-browser-instead-of-sketch/41405)

<div class="topic-metadata">

**Author:** [@Alesk1969](https://discourse.processing.org/u/Alesk1969)\
**Replies:** 7\
**Last updated:** [March 24, 2023, 8:50am UTC](https://discourse.processing.org/t/code-being-displayed-in-browser-instead-of-sketch/41405 "2023-03-24T08:50:44Z")

</div>

Hi there! I have a very newbie question. I recently installed the P5.js library within Sublime and installed as well the Browser Sync add-on. I’ve created a subfolder called Sketches which contains the index.html file …

---

## [Pixel get() buggy in Processing 4.1?](https://discourse.processing.org/t/pixel-get-buggy-in-processing-4-1/41422)

<div class="topic-metadata">

**Author:** [@Jaz](https://discourse.processing.org/u/Jaz)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 12:38am UTC](https://discourse.processing.org/t/pixel-get-buggy-in-processing-4-1/41422 "2023-03-24T00:38:15Z")

</div>

I am attempting to get the color of each pixel in an image. Using the get() function with coordinates yield garbage values or strange results (only a single color from the image rather than the color at a particular x,y …

---

## [Crop multiple images to any (quad) shape and place them side by side filling the canvas (comic strip)](https://discourse.processing.org/t/crop-multiple-images-to-any-quad-shape-and-place-them-side-by-side-filling-the-canvas-comic-strip/41326)

<div class="topic-metadata">

**Author:** [@Twooze](https://discourse.processing.org/u/Twooze)\
**Replies:** 17\
**Last updated:** [March 23, 2023, 3:22pm UTC](https://discourse.processing.org/t/crop-multiple-images-to-any-quad-shape-and-place-them-side-by-side-filling-the-canvas-comic-strip/41326 "2023-03-23T15:22:17Z")

</div>

Hi all, I have been struggling with this for days and I can’t find an answer anywhere. Perhaps I am overlooking something obvious or perhaps its just not possible. I am trying to write a code that takes images from my d…

---

## [My Mac said Processing can not access the sketch book. What should I do to fix it?](https://discourse.processing.org/t/my-mac-said-processing-can-not-access-the-sketch-book-what-should-i-do-to-fix-it/41412)

<div class="topic-metadata">

**Author:** [@Rvy](https://discourse.processing.org/u/Rvy)\
**Replies:** 5\
**Last updated:** [March 23, 2023, 1:58pm UTC](https://discourse.processing.org/t/my-mac-said-processing-can-not-access-the-sketch-book-what-should-i-do-to-fix-it/41412 "2023-03-23T13:58:45Z")

</div>

I try to use my Mac to open processing. However, it said that it can not access the sketch book. I follow the procedure that it said for many times. Still, I can not open it. I really need help with it. What should I do? …

---

## [TGA files randomly flips?](https://discourse.processing.org/t/tga-files-randomly-flips/41339)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [March 23, 2023, 12:22pm UTC](https://discourse.processing.org/t/tga-files-randomly-flips/41339 "2023-03-23T12:22:27Z")

</div>

Im saving some tga files, but it sadly when loading sometimes flips the image… layers\[currentlayer\].save(directory\[0\]+"/undo/frame\_"+currentlayer+"\_"+undoimgids\[currentlayer\]+".tga"); this is used to save the file! un…

---

## [Fatal error When running npm test on fresh github clone](https://discourse.processing.org/t/fatal-error-when-running-npm-test-on-fresh-github-clone/41413)

<div class="topic-metadata">

**Author:** [@AdityaShrivastav](https://discourse.processing.org/u/AdityaShrivastav)\
**Replies:** 0\
**Last updated:** [March 23, 2023, 10:54am UTC](https://discourse.processing.org/t/fatal-error-when-running-npm-test-on-fresh-github-clone/41413 "2023-03-23T10:54:20Z")

</div>

I am not able to run test locally, I’ve discribed my problem in the given issue.

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=77)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=79)
