# Processing

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

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

**Page:** 44

---

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

---

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

---

## [Searching someone for a collaboration for a driver camera](https://discourse.processing.org/t/searching-someone-for-a-collaboration-for-a-driver-camera/41261)

<div class="topic-metadata">

**Author:** [@animalfrommars](https://discourse.processing.org/u/animalfrommars)\
**Replies:** 8\
**Last updated:** [March 22, 2023, 9:25pm UTC](https://discourse.processing.org/t/searching-someone-for-a-collaboration-for-a-driver-camera/41261 "2023-03-22T21:25:20Z")

</div>

Hello, First i apologize if i don’t post this message at the good place because i dont’ really know where to post it so i try here. I’am looking for a collaboration with someone who can help me for a driver for my came…

---

## [Interpolation between two radian angle. Circular movement and Perfect arabesque to reach ;)](https://discourse.processing.org/t/interpolation-between-two-radian-angle-circular-movement-and-perfect-arabesque-to-reach/41395)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 7:04pm UTC](https://discourse.processing.org/t/interpolation-between-two-radian-angle-circular-movement-and-perfect-arabesque-to-reach/41395 "2023-03-21T19:04:35Z")

</div>

Hi ! I’m trying to sample movements on a motor position sensor. This movement goes more or less quickly and always in the same direction. The first goal is: To repeat these circular movements and ensure that there is…

---

## [Create an intermediate point](https://discourse.processing.org/t/create-an-intermediate-point/41318)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 26\
**Last updated:** [March 22, 2023, 1:10pm UTC](https://discourse.processing.org/t/create-an-intermediate-point/41318 "2023-03-22T13:10:31Z")

</div>

Hello all! For an artistic project, I sample for two seconds a pseudo circle (not entirely finished) drawn with the mouse. Then this shape repeats itself. I would like to add between the last and the first point drawn…

---

## [I am building a game, and I'm having trouble with borders](https://discourse.processing.org/t/i-am-building-a-game-and-im-having-trouble-with-borders/41299)

<div class="topic-metadata">

**Author:** [@DividedRabbit](https://discourse.processing.org/u/DividedRabbit)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 5:43pm UTC](https://discourse.processing.org/t/i-am-building-a-game-and-im-having-trouble-with-borders/41299 "2023-03-21T17:43:16Z")

</div>

Hello, I am making a small game and the borders are not working correctly. void move() { if (w) { if (a) { if (direction \> 1 && direction \<= 5) { turn += .03; } else { …

---

## [How do i make a crash handler?](https://discourse.processing.org/t/how-do-i-make-a-crash-handler/41387)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 2\
**Last updated:** [March 21, 2023, 6:03pm UTC](https://discourse.processing.org/t/how-do-i-make-a-crash-handler/41387 "2023-03-21T18:03:55Z")

</div>

Possible to make a crash handler that displays error logs?

---

## [Capture Library Changes](https://discourse.processing.org/t/capture-library-changes/41381)

<div class="topic-metadata">

**Author:** [@crashnorun](https://discourse.processing.org/u/crashnorun)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 12:48pm UTC](https://discourse.processing.org/t/capture-library-changes/41381 "2023-03-21T12:48:58Z")

</div>

I’m revisiting some of my old work and came to realize there were some changes to the new Capture library that left out some of the old features. In the past I was able to start a capture and save the image to a file wi…

---

## [Capture.list() with video library 2.0 does not enumerate all camera configuration of each camera, just the unique camera names](https://discourse.processing.org/t/capture-list-with-video-library-2-0-does-not-enumerate-all-camera-configuration-of-each-camera-just-the-unique-camera-names/27786)

<div class="topic-metadata">

**Author:** [@Anestis](https://discourse.processing.org/u/Anestis)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 9:00pm UTC](https://discourse.processing.org/t/capture-list-with-video-library-2-0-does-not-enumerate-all-camera-configuration-of-each-camera-just-the-unique-camera-names/27786 "2023-03-20T21:00:24Z")

</div>

Capture.list() with video library 2.0 does not enumerate all camera configurations of each camera, just the unique camera names. That means that it is not possible to search for a specific configuration and then initiali…

---

## [How do I open Processing on Linux?](https://discourse.processing.org/t/how-do-i-open-processing-on-linux/41371)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [March 20, 2023, 8:46pm UTC](https://discourse.processing.org/t/how-do-i-open-processing-on-linux/41371 "2023-03-20T20:46:57Z")

</div>

i dont know how i should open the file like i cant execute the processing file

---

## [Error, disabling serialEvent() for /dev/cu.usbserial-0001 null](https://discourse.processing.org/t/error-disabling-serialevent-for-dev-cu-usbserial-0001-null/41352)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 6\
**Last updated:** [March 20, 2023, 8:45pm UTC](https://discourse.processing.org/t/error-disabling-serialevent-for-dev-cu-usbserial-0001-null/41352 "2023-03-20T20:45:41Z")

</div>

Hello there, I have backup my os catalina. And now i have this trouble Error, disabling serialEvent() for /dev/cu.usbserial-0001 null I have installed an uart driver but without effect. What could I do? I’m just s…

---

## [Interception function not working](https://discourse.processing.org/t/interception-function-not-working/41351)

<div class="topic-metadata">

**Author:** [@Fey-Lyn](https://discourse.processing.org/u/Fey-Lyn)\
**Replies:** 3\
**Last updated:** [March 20, 2023, 4:48pm UTC](https://discourse.processing.org/t/interception-function-not-working/41351 "2023-03-20T16:48:42Z")

</div>

I can’t figure out why my intercept function is not working… It isn’t being ignored completely, just going off in the wrong spot and consistently, not just when it intersects. No code please. Basket gold; Basket pink; S…

---

## [Sketch crashing: IllegalStateException](https://discourse.processing.org/t/sketch-crashing-illegalstateexception/41337)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 4:07pm UTC](https://discourse.processing.org/t/sketch-crashing-illegalstateexception/41337 "2023-03-20T16:07:49Z")

</div>

Dear All, I’m getting the following and don’t understand at all what’s happening - I think it is to do with try to play back several videos? From the console Mar 17, 2023 11:07:14 PM com.sun.jna.Native$1 uncaughtExcep…

---

## [Text wont draw in setup()](https://discourse.processing.org/t/text-wont-draw-in-setup/41359)

<div class="topic-metadata">

**Author:** [@starzorrow](https://discourse.processing.org/u/starzorrow)\
**Replies:** 6\
**Last updated:** [March 20, 2023, 2:55pm UTC](https://discourse.processing.org/t/text-wont-draw-in-setup/41359 "2023-03-20T14:55:53Z")

</div>

okay so i have this code and im trying to draw text() in setup() right before i load and play a sound file. the problem is, the text does not draw until after the sound has loaded. if the sound code is commented out, the…

---

## [Calculating if a dot is on a drawn line](https://discourse.processing.org/t/calculating-if-a-dot-is-on-a-drawn-line/41221)

<div class="topic-metadata">

**Author:** [@Ingo](https://discourse.processing.org/u/Ingo)\
**Replies:** 3\
**Last updated:** [March 20, 2023, 11:14am UTC](https://discourse.processing.org/t/calculating-if-a-dot-is-on-a-drawn-line/41221 "2023-03-20T11:14:32Z")

</div>

Hi everyone, I’d like to program a game in processing (Java) in which the player draws a possibly curved line and next makes a dot on this line. I think, I would draw the line only with pixels, not lines oder bezier-cur…

---

## [ArrayList of ArrayLists (dynamic 2D array) of custom class](https://discourse.processing.org/t/arraylist-of-arraylists-dynamic-2d-array-of-custom-class/27923)

<div class="topic-metadata">

**Author:** [@ProgrammingN00b](https://discourse.processing.org/u/ProgrammingN00b)\
**Replies:** 41\
**Last updated:** [March 19, 2023, 2:35pm UTC](https://discourse.processing.org/t/arraylist-of-arraylists-dynamic-2d-array-of-custom-class/27923 "2023-03-19T14:35:19Z")

</div>

Hello everybody! So, I just tried to create a ArrayList of ArrayLists with a custom class. However I am a bit stuck on how to read from / write to certain elements in this ArrayList thing. class Event { //The …

---

## [Console printing 30 lines of random stuff everytime i run code](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315)

<div class="topic-metadata">

**Author:** [@Tenzin](https://discourse.processing.org/u/Tenzin)\
**Replies:** 4\
**Last updated:** [March 19, 2023, 1:28pm UTC](https://discourse.processing.org/t/console-printing-30-lines-of-random-stuff-everytime-i-run-code/41315 "2023-03-19T13:28:10Z")

</div>

I’m not sure what to call it but everytime I run code my console prints this twice: 1 HIToolbox 0x00000001b9aa05c8 \_ZN15MenuBarInstance22EnsureAutoShowObserverEv + 120 2 HIToolbox …

---

## [Stuck with the world's worst language](https://discourse.processing.org/t/stuck-with-the-worlds-worst-language/41340)

<div class="topic-metadata">

**Author:** [@jounce](https://discourse.processing.org/u/jounce)\
**Replies:** 6\
**Last updated:** [March 19, 2023, 4:27am UTC](https://discourse.processing.org/t/stuck-with-the-worlds-worst-language/41340 "2023-03-19T04:27:35Z")

</div>

Snap(a better version of scratch) slow Python slow drawing C++ hassle drawing js worst language So which language should I use?(you would suggest processing,which I dunno java)

---

## [Unable to catch a "connection refused"](https://discourse.processing.org/t/unable-to-catch-a-connection-refused/41280)

<div class="topic-metadata">

**Author:** [@Lednev](https://discourse.processing.org/u/Lednev)\
**Replies:** 6\
**Last updated:** [March 15, 2023, 12:01pm UTC](https://discourse.processing.org/t/unable-to-catch-a-connection-refused/41280 "2023-03-15T12:01:23Z")

</div>

This piece of code throws an error which i need it to ignore. What am i doing wrong? import websockets.\*; WebsocketClient ws; void setup() { size(400, 400); try { ws = new WebsocketClient(this, "ws://localh…

---

## [HSV Space by Ben Fry](https://discourse.processing.org/t/hsv-space-by-ben-fry/41333)

<div class="topic-metadata">

**Author:** [@fakeshop](https://discourse.processing.org/u/fakeshop)\
**Replies:** 0\
**Last updated:** [March 17, 2023, 11:47am UTC](https://discourse.processing.org/t/hsv-space-by-ben-fry/41333 "2023-03-17T11:47:52Z")

</div>

Hello, Im working with this sketch HSV Space by Ben Fry. Arrange the pixels from live video into the HSV Color Cone. which is included in \*/Video Library for Processing 3 for translation of webcam image into 3D te…

---

## [Class path contains multiple SLF4J bindings](https://discourse.processing.org/t/class-path-contains-multiple-slf4j-bindings/41332)

<div class="topic-metadata">

**Author:** [@th75](https://discourse.processing.org/u/th75)\
**Replies:** 0\
**Last updated:** [March 16, 2023, 10:39pm UTC](https://discourse.processing.org/t/class-path-contains-multiple-slf4j-bindings/41332 "2023-03-16T22:39:50Z")

</div>

Hi, I use external libraries for a sketch, selenium and sikulixide, it looks both come with a slf4j logger i can use each library individually in a sketch but when i import both in the same sketch, i got warnings abou…

---

## [Possible to make sketch create a shortcut in windows?](https://discourse.processing.org/t/possible-to-make-sketch-create-a-shortcut-in-windows/41327)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 4\
**Last updated:** [March 16, 2023, 8:28pm UTC](https://discourse.processing.org/t/possible-to-make-sketch-create-a-shortcut-in-windows/41327 "2023-03-16T20:28:50Z")

</div>

Is it possible to create a shortcut using the sketch (for linux too) or am i somehow able to open the compiled sketch exe (bc it doesnt start, bc it needs the files in the folder?

---

## [Pong Game: Trying to add a "Press Space"-key to play the game again in the same playermode in winnerAnnouncer() without going to the home menu again](https://discourse.processing.org/t/pong-game-trying-to-add-a-press-space-key-to-play-the-game-again-in-the-same-playermode-in-winnerannouncer-without-going-to-the-home-menu-again/41325)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 7\
**Last updated:** [March 16, 2023, 10:33pm UTC](https://discourse.processing.org/t/pong-game-trying-to-add-a-press-space-key-to-play-the-game-again-in-the-same-playermode-in-winnerannouncer-without-going-to-the-home-menu-again/41325 "2023-03-16T22:33:34Z")

</div>

Hello everyone: The game is complete btw, but I just wanted to add this little feature mentioned in the title before presenting it. So when the game’s over, it opens the winnerAnnouncer() function saying who won and to…

---

## [Help: scenes in Processing](https://discourse.processing.org/t/help-scenes-in-processing/41330)

<div class="topic-metadata">

**Author:** [@xnainie](https://discourse.processing.org/u/xnainie)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 9:46pm UTC](https://discourse.processing.org/t/help-scenes-in-processing/41330 "2023-03-16T21:46:03Z")

</div>

hello, I am working on an interactive story in processing only I am running into some things. I am quite new and I don’t understand everything yet but would like to learn. I have made my codes very basic, now comes the …

---

## [How to check if a search for a table row is successful](https://discourse.processing.org/t/how-to-check-if-a-search-for-a-table-row-is-successful/41320)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 3:12pm UTC](https://discourse.processing.org/t/how-to-check-if-a-search-for-a-table-row-is-successful/41320 "2023-03-16T15:12:37Z")

</div>

I am looking for a table row to retrieve some column values. The table row may or may not be there. How do I code to check if the ‘findRow’ is successful? Currrently I get an error ‘NullPointerException’ in the coding…

---

## [Problem with serial port. Upgrade Monterey from Catalina](https://discourse.processing.org/t/problem-with-serial-port-upgrade-monterey-from-catalina/41269)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 4\
**Last updated:** [March 16, 2023, 11:59am UTC](https://discourse.processing.org/t/problem-with-serial-port-upgrade-monterey-from-catalina/41269 "2023-03-16T11:59:03Z")

</div>

Hello everybody! I upgraded my Mac OS from Catalina to Monterey. Since I have did that my program stops itself around 30 secondes. Do I have to download a special library? Do you have the same problem? In this progr…

---

## [Pong Game: Trying to make 4 different messages for when a different player wins: "You won", "bot won", "player 1 won" and "player 2 won". Could only make 2: "Player 1 won" and "Player 2 or Bot won"](https://discourse.processing.org/t/pong-game-trying-to-make-4-different-messages-for-when-a-different-player-wins-you-won-bot-won-player-1-won-and-player-2-won-could-only-make-2-player-1-won-and-player-2-or-bot-won/41310)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 8:58am UTC](https://discourse.processing.org/t/pong-game-trying-to-make-4-different-messages-for-when-a-different-player-wins-you-won-bot-won-player-1-won-and-player-2-won-could-only-make-2-player-1-won-and-player-2-or-bot-won/41310 "2023-03-16T08:58:28Z")

</div>

Hello everyone! Basically the question. I am making a Pong Game and it is actually finished, but I just want to make it more perfect. I am only lacking these particular messages for when a winner has to be announced. I …

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

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