# Latest

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

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

**Page:** 75

---

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

---

## [Question About color() function and colorMode()](https://discourse.processing.org/t/question-about-color-function-and-colormode/41815)

<div class="topic-metadata">

**Author:** [@AnthonyMG](https://discourse.processing.org/u/AnthonyMG)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 8:17pm UTC](https://discourse.processing.org/t/question-about-color-function-and-colormode/41815 "2023-04-24T20:17:07Z")

</div>

The color() function does not seem to work as I would have assumed. When executing the code below I get the following output: "rgba(255,255,255,1) levels c1: 255,255,255,255 rgba(0,0,0,1) levels c1: 0,0,0,255 " I woul…

---

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

---

## [Odd behavior from directional lights with webgl](https://discourse.processing.org/t/odd-behavior-from-directional-lights-with-webgl/41791)

<div class="topic-metadata">

**Author:** [@bluemoon](https://discourse.processing.org/u/bluemoon)\
**Replies:** 3\
**Last updated:** [April 22, 2023, 3:51pm UTC](https://discourse.processing.org/t/odd-behavior-from-directional-lights-with-webgl/41791 "2023-04-22T15:51:40Z")

</div>

Hi Folks, I’m getting what I think is some really weird behavior from directional lights when using webgl. Here’s the example sketch. What I can’t figure out is: Quads appear to reflect light opposite to boxes and o…

---

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

---

## [Creative Coding Camp UK](https://discourse.processing.org/t/creative-coding-camp-uk/41766)

<div class="topic-metadata">

**Author:** [@annashamsili](https://discourse.processing.org/u/annashamsili)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 1:16am UTC](https://discourse.processing.org/t/creative-coding-camp-uk/41766 "2023-04-21T01:16:36Z")

</div>

I am organising a Creative Coding Camp with the online collective CURSOR from 26-28 May on Blacklands Girlguiding Farm, Sussex, UK. The theme is “Off the Grid” with participants split into group researching and exploring…

---

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

---

## ["FATAL EXCEPTION: main' while running on Android Mode](https://discourse.processing.org/t/fatal-exception-main-while-running-on-android-mode/41769)

<div class="topic-metadata">

**Author:** [@MatteoBotturi](https://discourse.processing.org/u/MatteoBotturi)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 4:08pm UTC](https://discourse.processing.org/t/fatal-exception-main-while-running-on-android-mode/41769 "2023-04-19T16:08:23Z")

</div>

Hi everyone! I wrote this code in Processing 4.2 with the Android Mode: void setup() { fullScreen(); } void draw() { background(0); text("Text on the screen", 100, 100); } When I try to run it, it execute on the…

---

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

---

## [Can't get numpy to work](https://discourse.processing.org/t/cant-get-numpy-to-work/18002)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 18\
**Last updated:** [April 18, 2023, 2:47pm UTC](https://discourse.processing.org/t/cant-get-numpy-to-work/18002 "2023-04-18T14:47:47Z")

</div>

I’m trying to learn reinforcement learning & all the tutorials I found so far use a program called numpy or something called numpy. I’ve downloaded it & unzipped it, but still get there no module named numpy. Can someone…

---

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

---

## [Dom create statements / functions](https://discourse.processing.org/t/dom-create-statements-functions/41745)

<div class="topic-metadata">

**Author:** [@jarlook](https://discourse.processing.org/u/jarlook)\
**Replies:** 2\
**Last updated:** [April 17, 2023, 8:55pm UTC](https://discourse.processing.org/t/dom-create-statements-functions/41745 "2023-04-17T20:55:39Z")

</div>

Beginning to use some of the p5.js Dom “create” statements (e.g. createButton). I see from the documentation and earlier topics that there are a variety of methods (e.g., position and style), but I’d like to look at the…

---

## [AndroidMode fails on new Galaxy Tab A8](https://discourse.processing.org/t/androidmode-fails-on-new-galaxy-tab-a8/41742)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 3\
**Last updated:** [April 17, 2023, 8:32pm UTC](https://discourse.processing.org/t/androidmode-fails-on-new-galaxy-tab-a8/41742 "2023-04-17T20:32:54Z")

</div>

Anyone know what causes this error on a new Galaxy Tab A8: void setup() { fullScreen(); background(209); } void draw() { }

---

## [Android Gradle plugin Upgrade](https://discourse.processing.org/t/android-gradle-plugin-upgrade/41744)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 2\
**Last updated:** [April 17, 2023, 5:04pm UTC](https://discourse.processing.org/t/android-gradle-plugin-upgrade/41744 "2023-04-17T17:04:07Z")

</div>

The following suggestion is made when I compile in Android mode with Processing 4.2. How would I upgrade the plugin?

---

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

---

## [P5js loads everything black](https://discourse.processing.org/t/p5js-loads-everything-black/41723)

<div class="topic-metadata">

**Author:** [@SGTMM](https://discourse.processing.org/u/SGTMM)\
**Replies:** 1\
**Last updated:** [April 17, 2023, 9:08am UTC](https://discourse.processing.org/t/p5js-loads-everything-black/41723 "2023-04-17T09:08:01Z")

</div>

So I was making a game with the p5js library and another one which is mostly unknown but which I am sure is not problem. Code as simple as this: \<\> var button; var player; var x = 0, y = 0.5, z = 0 function setup() …

---

## [Why is fetchall returning a list with only one entry, a tuple containing a string with the tuples, rather than a list of tuples?](https://discourse.processing.org/t/why-is-fetchall-returning-a-list-with-only-one-entry-a-tuple-containing-a-string-with-the-tuples-rather-than-a-list-of-tuples/41741)

<div class="topic-metadata">

**Author:** [@neon124](https://discourse.processing.org/u/neon124)\
**Replies:** 0\
**Last updated:** [April 16, 2023, 11:49pm UTC](https://discourse.processing.org/t/why-is-fetchall-returning-a-list-with-only-one-entry-a-tuple-containing-a-string-with-the-tuples-rather-than-a-list-of-tuples/41741 "2023-04-16T23:49:44Z")

</div>

It gives the following result: \[('("Murder in the First (1995)",2018,57)',), ('("U-571 (2000)",2020,53)',), ('("Money Train (1995)",2019,52)',), ('("Picnic at Hanging Rock (1975)",2019,52)',)\] Instead, try this: \[("Mu…

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

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