# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=47

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

**Page:** 48

---

## [Catching image failure is not working (try/catch)](https://discourse.processing.org/t/catching-image-failure-is-not-working-try-catch/40890)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 4\
**Last updated:** [February 11, 2023, 5:37pm UTC](https://discourse.processing.org/t/catching-image-failure-is-not-working-try-catch/40890 "2023-02-11T17:37:10Z")

</div>

This doesnt work! void setup() { try { image = loadImage("image.png"); } catch (Exception e) { image = loadImage("error.png"); } }

---

## [Can I change the layout of the IDE?](https://discourse.processing.org/t/can-i-change-the-layout-of-the-ide/40893)

<div class="topic-metadata">

**Author:** [@eddysims](https://discourse.processing.org/u/eddysims)\
**Replies:** 1\
**Last updated:** [February 11, 2023, 9:04am UTC](https://discourse.processing.org/t/can-i-change-the-layout-of-the-ide/40893 "2023-02-11T09:04:30Z")

</div>

I like the processing IDE, but i hate that my tabs are along the top. Is there any way to change the layout to have the tabs in a sidebar like a normal IDE?

---

## [endDraw() error - M2 mac](https://discourse.processing.org/t/enddraw-error-m2-mac/40895)

<div class="topic-metadata">

**Author:** [@mattleaf](https://discourse.processing.org/u/mattleaf)\
**Replies:** 1\
**Last updated:** [February 11, 2023, 3:33am UTC](https://discourse.processing.org/t/enddraw-error-m2-mac/40895 "2023-02-11T03:33:31Z")

</div>

Howdy folks, it’s been a while since I’ve used Processing and now I’ve upgraded to an M2 Air. I was just testing an old project on an Intel MBP first where everything is fine, now coming across to the M2 Air I seem to h…

---

## [How to do an array of IntLists?](https://discourse.processing.org/t/how-to-do-an-array-of-intlists/40894)

<div class="topic-metadata">

**Author:** [@Rektic](https://discourse.processing.org/u/Rektic)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 11:09pm UTC](https://discourse.processing.org/t/how-to-do-an-array-of-intlists/40894 "2023-02-10T23:09:13Z")

</div>

There seems to be a way to make an array of IntLists (I know it sounds weird but I need it) but it throws an error. \</\> IntList test = new IntList\[5\]; void setup(){ test\[3\].append(8); println(test\[3\].get(0)); } \</\>…

---

## [Processing-java hanging in headless VM](https://discourse.processing.org/t/processing-java-hanging-in-headless-vm/40835)

<div class="topic-metadata">

**Author:** [@dvbl](https://discourse.processing.org/u/dvbl)\
**Replies:** 5\
**Last updated:** [February 10, 2023, 12:19am UTC](https://discourse.processing.org/t/processing-java-hanging-in-headless-vm/40835 "2023-02-10T00:19:32Z")

</div>

Hello there! I’m running Processing in a fairly esoteric environment, and trying to figure out why it isn’t running. For context; I’ve got a simple Processing program (though this is reproducible even with a blank/mini…

---

## [Cannot import own library](https://discourse.processing.org/t/cannot-import-own-library/40879)

<div class="topic-metadata">

**Author:** [@5dcoded](https://discourse.processing.org/u/5dcoded)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 11:23pm UTC](https://discourse.processing.org/t/cannot-import-own-library/40879 "2023-02-09T23:23:07Z")

</div>

So I made a library and when i try to import it I get the following: The library “mylibary” cannot be used because it contains the processing.core libaries. I am completely lost… how can I fix this??

---

## [Access other objects in an object array](https://discourse.processing.org/t/access-other-objects-in-an-object-array/40716)

<div class="topic-metadata">

**Author:** [@geggslegs](https://discourse.processing.org/u/geggslegs)\
**Replies:** 4\
**Last updated:** [February 9, 2023, 10:48pm UTC](https://discourse.processing.org/t/access-other-objects-in-an-object-array/40716 "2023-02-09T22:48:01Z")

</div>

I’m trying to write a 2d ball pit simulation using verlet integration. But I’m having trouble accessing the other balls while looping through them. In the section commented “//collide the balls” I’m trying to access th…

---

## [P3 sketch isn't displaying on Mac OS13(Ventura), but p4 ok](https://discourse.processing.org/t/p3-sketch-isnt-displaying-on-mac-os13-ventura-but-p4-ok/40854)

<div class="topic-metadata">

**Author:** [@xxlinxx](https://discourse.processing.org/u/xxlinxx)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 10:36pm UTC](https://discourse.processing.org/t/p3-sketch-isnt-displaying-on-mac-os13-ventura-but-p4-ok/40854 "2023-02-09T22:36:42Z")

</div>

on before processing4.1.1 JDK17.0.4 add initSingleton method w/macOS 13 public void settings() { GLProfile.initSingleton(); size(1400, 800, P3D); } but, on processing3 JDK1.8.0.292 sketch window still does not work…

---

## [Memory leak from blank sketch](https://discourse.processing.org/t/memory-leak-from-blank-sketch/37963)

<div class="topic-metadata">

**Author:** [@ottestad](https://discourse.processing.org/u/ottestad)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 5:08pm UTC](https://discourse.processing.org/t/memory-leak-from-blank-sketch/37963 "2023-02-09T17:08:41Z")

</div>

I have a memory leak problem on a sketch running on a rPi, which will eventually make it crash since the program is running 24/7. Managed to recreate it on my Mac (MacBook Air M1, 2020 Monterey 12.3.1). Processing ver 4.…

---

## [Unable to get SVG to export](https://discourse.processing.org/t/unable-to-get-svg-to-export/40882)

<div class="topic-metadata">

**Author:** [@gummy12](https://discourse.processing.org/u/gummy12)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 11:06am UTC](https://discourse.processing.org/t/unable-to-get-svg-to-export/40882 "2023-02-09T11:06:20Z")

</div>

\< import processing.svg.\*; void setup(){ noLoop(); beginRecord(SVG,“asdfasdf2.svg”); size(1000, 1000,P3D); noFill(); strokeWeight(2); beginShape(); int squarenumber = 12; for (int i = 1; i\<squarenumber; i++){ …

---

## [Game Control Plus custom function fails to draw on screen](https://discourse.processing.org/t/game-control-plus-custom-function-fails-to-draw-on-screen/40883)

<div class="topic-metadata">

**Author:** [@stixan](https://discourse.processing.org/u/stixan)\
**Replies:** 3\
**Last updated:** [February 9, 2023, 10:23am UTC](https://discourse.processing.org/t/game-control-plus-custom-function-fails-to-draw-on-screen/40883 "2023-02-09T10:23:08Z")

</div>

I’m using the Game Control Plus library to capture inputs from a new NES USB controller. All buttons are mapped correctly and respond to my inputs. I have used .plug() to set up a custom function that is supposed to trig…

---

## [Is there a way to put the entire function signature with arguments into the thread call?](https://discourse.processing.org/t/is-there-a-way-to-put-the-entire-function-signature-with-arguments-into-the-thread-call/40880)

<div class="topic-metadata">

**Author:** [@advancecoder](https://discourse.processing.org/u/advancecoder)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 2:34am UTC](https://discourse.processing.org/t/is-there-a-way-to-put-the-entire-function-signature-with-arguments-into-the-thread-call/40880 "2023-02-09T02:34:58Z")

</div>

Hi, Is there a way to put the entire function signature with arguments into the thread call? What would you add to the “requestData” call? String time = ""; void setup() { size(100, 100); } void draw() { backg…

---

## [A more efficient room flooding algorithm](https://discourse.processing.org/t/a-more-efficient-room-flooding-algorithm/40872)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 7\
**Last updated:** [February 9, 2023, 1:14am UTC](https://discourse.processing.org/t/a-more-efficient-room-flooding-algorithm/40872 "2023-02-09T01:14:35Z")

</div>

I am attempting to program the visualizations from this video. Essentially, it is a problem of propagating a signal through a graph. In this case, the graph is the canvas, the vertices are the pixels, the links exist bet…

---

## [Manipulating text](https://discourse.processing.org/t/manipulating-text/40843)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 2\
**Last updated:** [February 8, 2023, 10:06pm UTC](https://discourse.processing.org/t/manipulating-text/40843 "2023-02-08T22:06:18Z")

</div>

Hi all, I would like to manipulate a text with Processing in this way: Enter a text from a file .doc or .odt; Run this rule: place the last letter of the text at the beginning of the text and, than, swipe toward right…

---

## [Lights and colours in 3D?](https://discourse.processing.org/t/lights-and-colours-in-3d/40862)

<div class="topic-metadata">

**Author:** [@Raul](https://discourse.processing.org/u/Raul)\
**Replies:** 3\
**Last updated:** [February 8, 2023, 5:27am UTC](https://discourse.processing.org/t/lights-and-colours-in-3d/40862 "2023-02-08T05:27:26Z")

</div>

Hi! This shouldn’t be complicated, but I can’t figure out how to solve it. I though it would be related to lights in 3D, but I don’t find the solution. When I draw a white line in a 3D space this line - sometimes, it d…

---

## [Can't run the first example in "Getting Started"](https://discourse.processing.org/t/cant-run-the-first-example-in-getting-started/40866)

<div class="topic-metadata">

**Author:** [@TimH02130](https://discourse.processing.org/u/TimH02130)\
**Replies:** 6\
**Last updated:** [February 7, 2023, 9:08pm UTC](https://discourse.processing.org/t/cant-run-the-first-example-in-getting-started/40866 "2023-02-07T21:08:52Z")

</div>

I started processing v4.1.2 for the first time and typed in the first example from the overview, i.e. ellipse(50, 50, 80, 80); and the message area immediately turns red and says \`the function “ellipse(int, int, int, i…

---

## [Help with making a counter](https://discourse.processing.org/t/help-with-making-a-counter/40859)

<div class="topic-metadata">

**Author:** [@andprocessing](https://discourse.processing.org/u/andprocessing)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 6:57pm UTC](https://discourse.processing.org/t/help-with-making-a-counter/40859 "2023-02-07T18:57:43Z")

</div>

Hi! I’m making a game where you have to find wolves in a pack of sheep. There are 5 wolves made with an array, and as the code is now, you advance to the next page when you click on one wolf. However, I want it to advanc…

---

## [How to increase the number of balls?](https://discourse.processing.org/t/how-to-increase-the-number-of-balls/40856)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 6:45pm UTC](https://discourse.processing.org/t/how-to-increase-the-number-of-balls/40856 "2023-02-07T18:45:33Z")

</div>

Good afternoon, there was still a problem to add at least 1 ball or many balls up to 99 and I don’t understand how to achieve this! example chart: import peasy.\*; PeasyCam camera; PImage img; boolean mpa, click; c…

---

## [Controlling a Projector with PJLink using Processing?](https://discourse.processing.org/t/controlling-a-projector-with-pjlink-using-processing/40867)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 5:43pm UTC](https://discourse.processing.org/t/controlling-a-projector-with-pjlink-using-processing/40867 "2023-02-07T17:43:48Z")

</div>

Is it possible to control a projector using the PJLink Protocol within Processing? I think it is and I would like to pose some ways to do this and solicit support along the way. For those unaware the PJLink protocol ca…

---

## [Slow PGraphics at high resolution!](https://discourse.processing.org/t/slow-pgraphics-at-high-resolution/40864)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 5:26pm UTC](https://discourse.processing.org/t/slow-pgraphics-at-high-resolution/40864 "2023-02-07T17:26:09Z")

</div>

Is it possible to make a 4000\*4000 pixel big pgraphics with 60 fps? or access only one part of a graphics object? edit: or could i run the code on the gpu & does it use all cores of the cpu by default?

---

## [Addition to video games code](https://discourse.processing.org/t/addition-to-video-games-code/40819)

<div class="topic-metadata">

**Author:** [@epicrafter](https://discourse.processing.org/u/epicrafter)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 2:35pm UTC](https://discourse.processing.org/t/addition-to-video-games-code/40819 "2023-02-07T14:35:26Z")

</div>

Hello again. I am trying to make a code that I can sent to Nintendo Switches for more in-game fun. Here is the code so far: // Useful stuff for the code: STROKES: (160,35,0) for bronze, (150,150,150) for silver, // (16…

---

## [How can I prevent the image background from being rotated?](https://discourse.processing.org/t/how-can-i-prevent-the-image-background-from-being-rotated/40855)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 10:17am UTC](https://discourse.processing.org/t/how-can-i-prevent-the-image-background-from-being-rotated/40855 "2023-02-07T10:17:56Z")

</div>

Good afternoon, I use lines with balls to build curves on images. How can I prevent image background from rotating and prevent scaling! import peasy.\*; PeasyCam camera; PImage img; boolean mpa, click; color mouseC,p…

---

## [keyReleased()+ saveFrame() functions not doing anything](https://discourse.processing.org/t/keyreleased-saveframe-functions-not-doing-anything/40832)

<div class="topic-metadata">

**Author:** [@liss](https://discourse.processing.org/u/liss)\
**Replies:** 4\
**Last updated:** [February 6, 2023, 1:15am UTC](https://discourse.processing.org/t/keyreleased-saveframe-functions-not-doing-anything/40832 "2023-02-06T01:15:53Z")

</div>

Hi all, I’m an extreme novice coder taking a generative art course. I am trying to save the image I created with a series of for loops and random functions (I included one in the script below) but it is not saving the i…

---

## [PGraphics and Image problem](https://discourse.processing.org/t/pgraphics-and-image-problem/38464)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 1\
**Last updated:** [February 5, 2023, 6:48pm UTC](https://discourse.processing.org/t/pgraphics-and-image-problem/38464 "2023-02-05T18:48:35Z")

</div>

Hi everyone! I’m struggling with a problem which i cant seem to solve. I’m using PGraphics to sequentially save “layers” of my drawing as pngs with alpha channel. Once i’ve drawn my elements and saved each of them as …

---

## [Live Web Text Input to be Moderated then Added to Live Video Carousel](https://discourse.processing.org/t/live-web-text-input-to-be-moderated-then-added-to-live-video-carousel/40828)

<div class="topic-metadata">

**Author:** [@Bria](https://discourse.processing.org/u/Bria)\
**Replies:** 0\
**Last updated:** [February 4, 2023, 5:58pm UTC](https://discourse.processing.org/t/live-web-text-input-to-be-moderated-then-added-to-live-video-carousel/40828 "2023-02-04T17:58:32Z")

</div>

Hello! I’m planning an event in which I am collecting live text input from an audience to answer a prompt. Here are the steps/functions… Input Webpage hosted on cargo collective, collect form inputs Moderate inputs t…

---

## [Strange mask behaviour - troubleshooting ideas?](https://discourse.processing.org/t/strange-mask-behaviour-troubleshooting-ideas/40821)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 1\
**Last updated:** [February 3, 2023, 5:42pm UTC](https://discourse.processing.org/t/strange-mask-behaviour-troubleshooting-ideas/40821 "2023-02-03T17:42:50Z")

</div>

I am experimenting with a series of little test cases for image compositing, and am puzzled by what I’m seeing as the behaviour of pimage.mask(). PImage LayerA, LayerM; int Col2 = width/2; int Row2 = height/2; size(600…

---

## [How can i make an empty graph without using csv?](https://discourse.processing.org/t/how-can-i-make-an-empty-graph-without-using-csv/40814)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 6\
**Last updated:** [February 3, 2023, 4:09pm UTC](https://discourse.processing.org/t/how-can-i-make-an-empty-graph-without-using-csv/40814 "2023-02-03T16:09:52Z")

</div>

Good afternoon, I found an example that I would like to edit to fit my values at the moment I can use the graph from the file csv, but how can you do the same with processing tools? import grafica.\*; GPlot plot1, p…

---

## [How to make a moving background in Processing](https://discourse.processing.org/t/how-to-make-a-moving-background-in-processing/39111)

<div class="topic-metadata">

**Author:** [@epicrafter](https://discourse.processing.org/u/epicrafter)\
**Replies:** 7\
**Last updated:** [February 3, 2023, 3:19pm UTC](https://discourse.processing.org/t/how-to-make-a-moving-background-in-processing/39111 "2023-02-03T15:19:59Z")

</div>

Hello, I am having trouble making a moving background. Here is my code: int frame; void setup() { size (400,400); fill(204,102,0); frameRate (5); frame = 1; stroke (255,125,0); } void draw() { switch (frame)…

---

## [Is there a way of warping images - like Adobe's Puppet tool](https://discourse.processing.org/t/is-there-a-way-of-warping-images-like-adobes-puppet-tool/1510)

<div class="topic-metadata">

**Author:** [@stib](https://discourse.processing.org/u/stib)\
**Replies:** 9\
**Last updated:** [February 3, 2023, 2:58pm UTC](https://discourse.processing.org/t/is-there-a-way-of-warping-images-like-adobes-puppet-tool/1510 "2023-02-03T14:58:38Z")

</div>

I have an image that I want to be able to animate using a method similar to the Puppet Tool in After Effects, where points affect a mesh which has an image mapped on it. If I want to do this am I going to have to reve…

---

## [Imaging an audio file](https://discourse.processing.org/t/imaging-an-audio-file/25006)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 2\
**Last updated:** [February 3, 2023, 2:46pm UTC](https://discourse.processing.org/t/imaging-an-audio-file/25006 "2023-02-03T14:46:08Z")

</div>

Hi, I would like to realise these things with Processing after importing an audio file of my voice registered (or in real time): Realise a video 1.1. display in a window the spectrogram with colors (for the amplitude…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=46)

[Next page](https://discourse.processing.org/c/processing/6.md?page=48)
