# Processing

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

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

**Page:** 41

---

## [How can i make an ellipse with vertical lines coming out of its upper circumference towards the top of the page?](https://discourse.processing.org/t/how-can-i-make-an-ellipse-with-vertical-lines-coming-out-of-its-upper-circumference-towards-the-top-of-the-page/39839)

<div class="topic-metadata">

**Author:** [@chaotic.rabbit](https://discourse.processing.org/u/chaotic.rabbit)\
**Replies:** 3\
**Last updated:** [May 2, 2023, 5:13pm UTC](https://discourse.processing.org/t/how-can-i-make-an-ellipse-with-vertical-lines-coming-out-of-its-upper-circumference-towards-the-top-of-the-page/39839 "2023-05-02T17:13:55Z")

</div>

i want to make 5 lines to come out of the top part of the ellipse and touch the top of the page

---

## [How can I create a walker with a finite trail?](https://discourse.processing.org/t/how-can-i-create-a-walker-with-a-finite-trail/41674)

<div class="topic-metadata">

**Author:** [@benjamin-thomas](https://discourse.processing.org/u/benjamin-thomas)\
**Replies:** 12\
**Last updated:** [May 2, 2023, 10:57am UTC](https://discourse.processing.org/t/how-can-i-create-a-walker-with-a-finite-trail/41674 "2023-05-02T10:57:31Z")

</div>

Given this sketch: Walker walker; void settings() { size(640, 360); } void setup() { windowTitle("Perlin Noise Walker"); background(0); walker = new Walker(); } void draw() { walker.step(); walker.render()…

---

## [How to make a new folder on HD](https://discourse.processing.org/t/how-to-make-a-new-folder-on-hd/41864)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [April 29, 2023, 1:46pm UTC](https://discourse.processing.org/t/how-to-make-a-new-folder-on-hd/41864 "2023-04-29T13:46:06Z")

</div>

Hello all, small question here. How can i make a new folder on HD? Tried File f1=new File(""); if ( f1.mkDir ( sketchPath("")+"//"+"c1" ) ) { // } or File f1=new File(sketchPath("")+"//"+"c1"); if (f…

---

## [JogAmp Fat breaks Processing](https://discourse.processing.org/t/jogamp-fat-breaks-processing/41866)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 1\
**Last updated:** [April 29, 2023, 10:45am UTC](https://discourse.processing.org/t/jogamp-fat-breaks-processing/41866 "2023-04-29T10:45:50Z")

</div>

Hi, I am using processing core jar and jogamp fat for my java game. But today I tried to update them, and now the new jogamp fat jar breaks it! Error: The sketch has been resized from 720x480 to 900x600 by the operatin…

---

## [Loading JSON array in Flask](https://discourse.processing.org/t/loading-json-array-in-flask/41858)

<div class="topic-metadata">

**Author:** [@turobiter](https://discourse.processing.org/u/turobiter)\
**Replies:** 0\
**Last updated:** [April 27, 2023, 8:33pm UTC](https://discourse.processing.org/t/loading-json-array-in-flask/41858 "2023-04-27T20:33:00Z")

</div>

Hi! I’m working on a website using Python and Flask. One of the pages needs to render a processing sketch, with the fill() parameter based on data in a list that is created in the Flask project file app.py. Basically, in…

---

## [Parallel lines in 3D space](https://discourse.processing.org/t/parallel-lines-in-3d-space/41801)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 18\
**Last updated:** [April 27, 2023, 2:40pm UTC](https://discourse.processing.org/t/parallel-lines-in-3d-space/41801 "2023-04-27T14:40:43Z")

</div>

I have a line in 3D space. The line is not parallel to any of the three axes (X, Y, Z). I know the 3D coordinates of point 0 and point 1. How would I use Processing to find the coordinates of a parallel line? By paralle…

---

## [How to change background color for just a short period of time after pressing a key?](https://discourse.processing.org/t/how-to-change-background-color-for-just-a-short-period-of-time-after-pressing-a-key/41811)

<div class="topic-metadata">

**Author:** [@Rebello](https://discourse.processing.org/u/Rebello)\
**Replies:** 4\
**Last updated:** [April 26, 2023, 10:39pm UTC](https://discourse.processing.org/t/how-to-change-background-color-for-just-a-short-period-of-time-after-pressing-a-key/41811 "2023-04-26T22:39:02Z")

</div>

hello everyone. i want to press the enter key and than change the color of the screen to green for 1 second. After that 1 second it should go back to white. And I want to do that in the keyPressed() method. My work so …

---

## [How to skip a method in Processing](https://discourse.processing.org/t/how-to-skip-a-method-in-processing/41837)

<div class="topic-metadata">

**Author:** [@ImLandfall](https://discourse.processing.org/u/ImLandfall)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 7:45pm UTC](https://discourse.processing.org/t/how-to-skip-a-method-in-processing/41837 "2023-04-26T19:45:59Z")

</div>

So I thought I could use " ! " in some way but is there a function to skip a method or something like it? if(player.isDestroyed == true) { } and if it is true, I want it to skip drawplayer.

---

## [Make Objects in Different Classes Collide?](https://discourse.processing.org/t/make-objects-in-different-classes-collide/41816)

<div class="topic-metadata">

**Author:** [@ImLandfall](https://discourse.processing.org/u/ImLandfall)\
**Replies:** 7\
**Last updated:** [April 26, 2023, 7:13pm UTC](https://discourse.processing.org/t/make-objects-in-different-classes-collide/41816 "2023-04-26T19:13:05Z")

</div>

ArrayList ants = new ArrayList(); int NumAnts = 30; PImage bg; boolean keys; Player player; void setup() { size(600, 600); frameRate(60); player = new Player(); bg = loadImage(“grass.png”); for (int i = 0; i \<…

---

## [Unable to show video image using OpenCV](https://discourse.processing.org/t/unable-to-show-video-image-using-opencv/41833)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 9:47am UTC](https://discourse.processing.org/t/unable-to-show-video-image-using-opencv/41833 "2023-04-26T09:47:11Z")

</div>

hi forum i am trying to display image video and want to pass it to opencv for image processing but the image wont show up. thabk you for help import processing.video.\*; import java.awt.\*; import gab.opencv.\*; OpenCV …

---

## [The MidiBus Crashing](https://discourse.processing.org/t/the-midibus-crashing/39537)

<div class="topic-metadata">

**Author:** [@Ducky](https://discourse.processing.org/u/Ducky)\
**Replies:** 10\
**Last updated:** [April 25, 2023, 1:34pm UTC](https://discourse.processing.org/t/the-midibus-crashing/39537 "2023-04-25T13:34:39Z")

</div>

Hi everyone! I’ve recently been working on assignment and have come to a issue that stumps me completely. If I call upon end() when trying to run code with a MidiBus using the library ‘The MidiBus’ ,the sketch crashes …

---

## [About steering force,I'm studying The Nature of Code by Daniel Shiffman.Why does the code run with nothing?](https://discourse.processing.org/t/about-steering-force-im-studying-the-nature-of-code-by-daniel-shiffman-why-does-the-code-run-with-nothing/41823)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 10:32am UTC](https://discourse.processing.org/t/about-steering-force-im-studying-the-nature-of-code-by-daniel-shiffman-why-does-the-code-run-with-nothing/41823 "2023-04-25T10:32:40Z")

</div>

class Vehicle{ PVector location; PVector velocity; PVector acceleration; float r; float maxforce; float maxspeed; Vehicle(float x,float y){ acceleration = new PVector(0,0); velocity = new PVec…

---

## [Custom waveforms in beads](https://discourse.processing.org/t/custom-waveforms-in-beads/41803)

<div class="topic-metadata">

**Author:** [@mangopusher](https://discourse.processing.org/u/mangopusher)\
**Replies:** 1\
**Last updated:** [April 23, 2023, 5:59pm UTC](https://discourse.processing.org/t/custom-waveforms-in-beads/41803 "2023-04-23T17:59:04Z")

</div>

hey I’m new to the forum so please apologize when this is answered elsewhere, but i couldnt find any help online. I’m trying to change the waveform buffer of a beads, i can change the array directly but as soon as I’m t…

---

## [How can I count white pixels of an image?](https://discourse.processing.org/t/how-can-i-count-white-pixels-of-an-image/41787)

<div class="topic-metadata">

**Author:** [@bouu28](https://discourse.processing.org/u/bouu28)\
**Replies:** 9\
**Last updated:** [April 23, 2023, 3:46pm UTC](https://discourse.processing.org/t/how-can-i-count-white-pixels-of-an-image/41787 "2023-04-23T15:46:03Z")

</div>

Hey! So i have this assignement where i need to create a binary image of what my computer camera catches and when i have more than 100 white pixels it should appear a message saying motion detected. The problem is I don’…

---

## [Code stalling operating a Stream Deck](https://discourse.processing.org/t/code-stalling-operating-a-stream-deck/41800)

<div class="topic-metadata">

**Author:** [@mason77225](https://discourse.processing.org/u/mason77225)\
**Replies:** 0\
**Last updated:** [April 23, 2023, 11:40am UTC](https://discourse.processing.org/t/code-stalling-operating-a-stream-deck/41800 "2023-04-23T11:40:01Z")

</div>

Hello, and thanks for reading. I’m currently working on some code to control a Streamdeck within processing. It’s been working fine for months but now I get this error whenever I change pages on the deck. I can’t seem to…

---

## [Possible to save 2D array and load it?](https://discourse.processing.org/t/possible-to-save-2d-array-and-load-it/41783)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [April 22, 2023, 5:05pm UTC](https://discourse.processing.org/t/possible-to-save-2d-array-and-load-it/41783 "2023-04-22T17:05:58Z")

</div>

Im making a game. im confused, because i dont know how i could make it better. the variables terrainwidth and terrainheight can be any value and that cant be ignored! the code that saves it can be modified, please help …

---

## [Using Processing in a gallery context](https://discourse.processing.org/t/using-processing-in-a-gallery-context/41776)

<div class="topic-metadata">

**Author:** [@Christiaan](https://discourse.processing.org/u/Christiaan)\
**Replies:** 6\
**Last updated:** [April 21, 2023, 9:00pm UTC](https://discourse.processing.org/t/using-processing-in-a-gallery-context/41776 "2023-04-21T21:00:24Z")

</div>

I’m looking into setting up a series of screens that would each run a piece of creative coding. One option is to have each screen attached to its own computer, something small. The other option is setting up a media serv…

---

## [Processing crashing](https://discourse.processing.org/t/processing-crashing/41784)

<div class="topic-metadata">

**Author:** [@giannisgreg](https://discourse.processing.org/u/giannisgreg)\
**Replies:** 0\
**Last updated:** [April 21, 2023, 6:11pm UTC](https://discourse.processing.org/t/processing-crashing/41784 "2023-04-21T18:11:04Z")

</div>

I am trying to run processing 3.5.4 on an old mac with OSX 10.13.6 and it keeps crashing with the attached image as the error message. Any ideas? I cant run a later version because my mac wont support the OS required. I…

---

## [Serial does not recognize disconnect](https://discourse.processing.org/t/serial-does-not-recognize-disconnect/41770)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 12:01pm UTC](https://discourse.processing.org/t/serial-does-not-recognize-disconnect/41770 "2023-04-21T12:01:50Z")

</div>

Hi! I was doing some work with the processing.Serial library and ran into a problem with serial.active(). When I unplug the USB cable to my Arduino while the program is running, serial.active() still returns true. Since…

---

## [Crash - My processing program gives "handleDraw() called before finishing" error when opening new sketches continuously](https://discourse.processing.org/t/crash-my-processing-program-gives-handledraw-called-before-finishing-error-when-opening-new-sketches-continuously/41778)

<div class="topic-metadata">

**Author:** [@Ageforce](https://discourse.processing.org/u/Ageforce)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 10:52am UTC](https://discourse.processing.org/t/crash-my-processing-program-gives-handledraw-called-before-finishing-error-when-opening-new-sketches-continuously/41778 "2023-04-20T10:52:12Z")

</div>

Hello, currently I’m struggling with a massive problem with my Java Processing program. I’m making a program so when you click a button, it opens a new sketch (a new window) and closes the previous one. In the new window…

---

## ["A strange and unexplainable error occurred while trying to create a new sketch"](https://discourse.processing.org/t/a-strange-and-unexplainable-error-occurred-while-trying-to-create-a-new-sketch/41733)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 13\
**Last updated:** [April 19, 2023, 12:57pm UTC](https://discourse.processing.org/t/a-strange-and-unexplainable-error-occurred-while-trying-to-create-a-new-sketch/41733 "2023-04-19T12:57:18Z")

</div>

I’ve just installed v4.2 and now I’m getting the error below when I try to start Processing. However, I I choose “Run as administrator” (I’m running under Windows 10), it starts normally. So I assume it has something to …

---

## [Mouse lagging and can't make fullScreen() in 4K](https://discourse.processing.org/t/mouse-lagging-and-cant-make-fullscreen-in-4k/41753)

<div class="topic-metadata">

**Author:** [@doesThisReallyMatter](https://discourse.processing.org/u/doesThisReallyMatter)\
**Replies:** 2\
**Last updated:** [April 18, 2023, 12:42pm UTC](https://discourse.processing.org/t/mouse-lagging-and-cant-make-fullscreen-in-4k/41753 "2023-04-18T12:42:24Z")

</div>

void setup(){ fullScreen(); noCursor(); } void draw(){ background(#f097ff); drawCursor(mouseX,mouseY); text("("+mouseX+","+mouseY+")",width/2,height/2); } void drawCursor(float x,float y){ final float W = w…

---

## [Code is running but the robotic arm did not move](https://discourse.processing.org/t/code-is-running-but-the-robotic-arm-did-not-move/41750)

<div class="topic-metadata">

**Author:** [@jingchi](https://discourse.processing.org/u/jingchi)\
**Replies:** 3\
**Last updated:** [April 18, 2023, 11:39am UTC](https://discourse.processing.org/t/code-is-running-but-the-robotic-arm-did-not-move/41750 "2023-04-18T11:39:20Z")

</div>

Hi everyone, I need help here. Im sorry too noob at here. Initially I can operate my robotic arm by using processing software. The robotic arm can’t be executed in my current laptop but it works on my previous laptop b…

---

## [Processing library same function as numpy](https://discourse.processing.org/t/processing-library-same-function-as-numpy/41747)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 4\
**Last updated:** [April 18, 2023, 10:39am UTC](https://discourse.processing.org/t/processing-library-same-function-as-numpy/41747 "2023-04-18T10:39:23Z")

</div>

does processing has library which is same as numpy. thank you

---

## [Multiple classes in an (undefined) ArrayList?](https://discourse.processing.org/t/multiple-classes-in-an-undefined-arraylist/8291)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 21\
**Last updated:** [April 18, 2023, 9:47am UTC](https://discourse.processing.org/t/multiple-classes-in-an-undefined-arraylist/8291 "2023-04-18T09:47:34Z")

</div>

Hi! So a while ago I realised you could make ArrayLists with no class associated. ArrayList sampleList = new ArrayList(); I am working on a simple 2d platformer at the moment and created a class that contains the grav…

---

## [\[hypermedia - JAVA UDP\] UDP - Please advise. Communicate with PHP(UDP socket communication). Why?](https://discourse.processing.org/t/hypermedia-java-udp-udp-please-advise-communicate-with-php-udp-socket-communication-why/41748)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 4:59am UTC](https://discourse.processing.org/t/hypermedia-java-udp-udp-please-advise-communicate-with-php-udp-socket-communication-why/41748 "2023-04-18T04:59:53Z")

</div>

Reference library: udp (hypermedia) ‘Processing UDP library’ & php socket communication Each source code. ‘processing java mode’ import hypermedia.net.\*; UDP udp; void setup() { size( 255, 255 ); backgr…

---

## [Capture cam fail / Video library issue](https://discourse.processing.org/t/capture-cam-fail-video-library-issue/26506)

<div class="topic-metadata">

**Author:** [@sprotz9](https://discourse.processing.org/u/sprotz9)\
**Replies:** 7\
**Last updated:** [April 18, 2023, 2:55am UTC](https://discourse.processing.org/t/capture-cam-fail-video-library-issue/26506 "2023-04-18T02:55:19Z")

</div>

live camera capture works maybe 1 out of every 20 times i click to run the sketch (see simple example code below). otherwise, the feed freezes on a gray screen with spinning wheel and the following error message in the c…

---

## [Make Online Server?](https://discourse.processing.org/t/make-online-server/41712)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 2\
**Last updated:** [April 17, 2023, 4:24pm UTC](https://discourse.processing.org/t/make-online-server/41712 "2023-04-17T16:24:32Z")

</div>

Im making a 2d game, and i want to add online multiplayer. i would need a player who creates a server, and someone can join, but not local, fully online i want to make it accessible from eveywhere through wifi. It would…

---

## [Processing 4 and JDK 19 Virtual Threads](https://discourse.processing.org/t/processing-4-and-jdk-19-virtual-threads/41734)

<div class="topic-metadata">

**Author:** [@Enda](https://discourse.processing.org/u/Enda)\
**Replies:** 5\
**Last updated:** [April 16, 2023, 9:04pm UTC](https://discourse.processing.org/t/processing-4-and-jdk-19-virtual-threads/41734 "2023-04-16T21:04:16Z")

</div>

Hi all. I would like to use Virtual Threads in my game. Do you know if Processing 4 is compatible with JDK 19? My game seems to consistently hover around 22fps at the moment while the computers CPU/RAM/GPU are not clo…

---

## [Run Processing with SSH command issue](https://discourse.processing.org/t/run-processing-with-ssh-command-issue/41738)

<div class="topic-metadata">

**Author:** [@jokoko](https://discourse.processing.org/u/jokoko)\
**Replies:** 0\
**Last updated:** [April 16, 2023, 4:07pm UTC](https://discourse.processing.org/t/run-processing-with-ssh-command-issue/41738 "2023-04-16T16:07:06Z")

</div>

Hi, I’m still working on my project, and I’d like to start several sketch (only one at a time) by distance (from a command laptop to my video laptop) So I managed to make it with SSH. I installed a small wifi rooter. …

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

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