# Processing

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

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

**Page:** 23

---

## [Using OpenCV 3.x with Processing 3](https://discourse.processing.org/t/using-opencv-3-x-with-processing-3/44266)

<div class="topic-metadata">

**Author:** [@Norilla](https://discourse.processing.org/u/Norilla)\
**Replies:** 0\
**Last updated:** [April 10, 2024, 7:01pm UTC](https://discourse.processing.org/t/using-opencv-3-x-with-processing-3/44266 "2024-04-10T19:01:59Z")

</div>

We were wondering if there is a way to use Processing 3 with open CV 3.x versions. OpenCV for processing library uses OpenCV 2.4.5 doesn’t have the functionalities (temporal matching) we need that openCV 3 and above have…

---

## [Keep appearing missing operator, semicolon or} near waveCircle](https://discourse.processing.org/t/keep-appearing-missing-operator-semicolon-or-near-wavecircle/44263)

<div class="topic-metadata">

**Author:** [@lalala](https://discourse.processing.org/u/lalala)\
**Replies:** 1\
**Last updated:** [April 10, 2024, 4:21pm UTC](https://discourse.processing.org/t/keep-appearing-missing-operator-semicolon-or-near-wavecircle/44263 "2024-04-10T16:21:10Z")

</div>

hi everyone, as the title says, an error will appear everytime i want to run the coding, ut i checked several times and cant find the problem, please help me… float step=TWO\_PI/10; float t=0; void setup() { size(400…

---

## [Movie.width and movie.length do not always work depending on movie](https://discourse.processing.org/t/movie-width-and-movie-length-do-not-always-work-depending-on-movie/44260)

<div class="topic-metadata">

**Author:** [@lucedan](https://discourse.processing.org/u/lucedan)\
**Replies:** 1\
**Last updated:** [April 10, 2024, 8:26am UTC](https://discourse.processing.org/t/movie-width-and-movie-length-do-not-always-work-depending-on-movie/44260 "2024-04-10T08:26:01Z")

</div>

I have two movies: mov1 and mov2. If I run the following code in draw() by selecting mov1, everything works fine \*at every launch". Instead, if I run it by selecting mov2, I sometimes get the error “Width (0) and height…

---

## [Delay When Connecting Two Bluetooth Devices](https://discourse.processing.org/t/delay-when-connecting-two-bluetooth-devices/44229)

<div class="topic-metadata">

**Author:** [@smac3](https://discourse.processing.org/u/smac3)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 7:22pm UTC](https://discourse.processing.org/t/delay-when-connecting-two-bluetooth-devices/44229 "2024-04-09T19:22:45Z")

</div>

Hi, I’m working on a project that transmits data using Bluetooth to my computer from 2 separate devices which have 5 force sensors each. The data from the force sensors are printed in an array. Each device has its own mi…

---

## [Loading a GIF in Processing](https://discourse.processing.org/t/loading-a-gif-in-processing/23020)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 8\
**Last updated:** [April 8, 2024, 3:22pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020 "2024-04-08T15:22:12Z")

</div>

So I need to display a couple of gifs in my sketch, I searched at google a bit, what I found: This example: Animated Sprite (Shifty + Teddy) / Examples / Processing.org which doesnt halp me, I need to load a gif; not …

---

## [I need help with creating different platforms that my character is able to jump on and making jumping smoother](https://discourse.processing.org/t/i-need-help-with-creating-different-platforms-that-my-character-is-able-to-jump-on-and-making-jumping-smoother/44117)

<div class="topic-metadata">

**Author:** [@Corn](https://discourse.processing.org/u/Corn)\
**Replies:** 4\
**Last updated:** [April 8, 2024, 1:02pm UTC](https://discourse.processing.org/t/i-need-help-with-creating-different-platforms-that-my-character-is-able-to-jump-on-and-making-jumping-smoother/44117 "2024-04-08T13:02:29Z")

</div>

int PlatX = 400; //Platform X-coordinate int PlatY = 300; //Platform Y-coordinate PImage StonePlatform; int yvel = 1;//Setting the speed of the platforms. int blocklength = 100;//Setting the length of the platforms. …

---

## [Capture Card (video) error](https://discourse.processing.org/t/capture-card-video-error/44244)

<div class="topic-metadata">

**Author:** [@AliKo](https://discourse.processing.org/u/AliKo)\
**Replies:** 0\
**Last updated:** [April 7, 2024, 10:00pm UTC](https://discourse.processing.org/t/capture-card-video-error/44244 "2024-04-07T22:00:31Z")

</div>

Dear all, Something has updated on my Win11, and now I can not access the capture card live feed anymore. The video sources available are listed like that: \[0\] “UltraStudio Recorder 3G (Video Capture)” \[1\] “Integrate…

---

## [loadBytes() not reading the entirety of JPEG file?](https://discourse.processing.org/t/loadbytes-not-reading-the-entirety-of-jpeg-file/44241)

<div class="topic-metadata">

**Author:** [@bbcwarrior](https://discourse.processing.org/u/bbcwarrior)\
**Replies:** 2\
**Last updated:** [April 7, 2024, 8:43pm UTC](https://discourse.processing.org/t/loadbytes-not-reading-the-entirety-of-jpeg-file/44241 "2024-04-07T20:43:13Z")

</div>

I’m trying to create something like a hex editor for JPEG files in processing, and running this piece of code with any JPEG file results in a correct output, but one that excludes major parts of the file. byte b\[\] = l…

---

## [Hello Constructions in Processing](https://discourse.processing.org/t/hello-constructions-in-processing/44191)

<div class="topic-metadata">

**Author:** [@zlfp](https://discourse.processing.org/u/zlfp)\
**Replies:** 4\
**Last updated:** [April 7, 2024, 8:01pm UTC](https://discourse.processing.org/t/hello-constructions-in-processing/44191 "2024-04-07T20:01:58Z")

</div>

hello developers (of processing) let’s do some opportunity to other developers create some cycles and constructons (construsions like if, else if, else …) im have an workpiece for that let’s create an match-case like …

---

## [How to waste time in Processing? (delay with Arduino)](https://discourse.processing.org/t/how-to-waste-time-in-processing-delay-with-arduino/44231)

<div class="topic-metadata">

**Author:** [@zlfp](https://discourse.processing.org/u/zlfp)\
**Replies:** 9\
**Last updated:** [April 5, 2024, 1:44pm UTC](https://discourse.processing.org/t/how-to-waste-time-in-processing-delay-with-arduino/44231 "2024-04-05T13:44:00Z")

</div>

hello, how to wait time in processing? and im haven’t arduino to use delay() in serial. so, can you help me?

---

## [Img.mask() doesn't always work when applied to Movie object](https://discourse.processing.org/t/img-mask-doesnt-always-work-when-applied-to-movie-object/44234)

<div class="topic-metadata">

**Author:** [@lucedan](https://discourse.processing.org/u/lucedan)\
**Replies:** 4\
**Last updated:** [April 5, 2024, 7:59am UTC](https://discourse.processing.org/t/img-mask-doesnt-always-work-when-applied-to-movie-object/44234 "2024-04-05T07:59:52Z")

</div>

Hello, I am trying to randomly extract parts of a playing video and display them at different draw() cycles. The code works for most cycles, but sometimes the mask() function looks like it is not applied to the image, …

---

## [⚠️ Important Notice: macOS Sonoma 14.4 and Processing 4 Compatibility](https://discourse.processing.org/t/important-notice-macos-sonoma-14-4-and-processing-4-compatibility/44232)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [April 4, 2024, 2:38pm UTC](https://discourse.processing.org/t/important-notice-macos-sonoma-14-4-and-processing-4-compatibility/44232 "2024-04-04T14:38:04Z")

</div>

:rotating\_light: Attention Processing 4 Users :rotating\_light: Reports suggest macOS 14.4 may cause issues with Processing 4 on ARM Macs (M1, M2, M3). To be safe, consider waiting before upgrading to Sonoma. If you mus…

---

## [Arduino who help me](https://discourse.processing.org/t/arduino-who-help-me/44207)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 8:16pm UTC](https://discourse.processing.org/t/arduino-who-help-me/44207 "2024-04-03T20:16:56Z")

</div>

Hello, I should ask something about arduino then I have a variable that goes from zero to 100 and I would like when it arrives at a certain imposed value a certain value raises a Pin. Who explane me Thankyou

---

## [Where can I find the Java source code for the delay() method?](https://discourse.processing.org/t/where-can-i-find-the-java-source-code-for-the-delay-method/44222)

<div class="topic-metadata">

**Author:** [@sspboyd](https://discourse.processing.org/u/sspboyd)\
**Replies:** 4\
**Last updated:** [April 3, 2024, 7:33pm UTC](https://discourse.processing.org/t/where-can-i-find-the-java-source-code-for-the-delay-method/44222 "2024-04-03T19:33:19Z")

</div>

I am trying to learn a little about the Processing source code for the delay() method. I have tried searching through the GitHub repo without any success. Any suggestions? Thanks, Stephen

---

## [More details about COM ports](https://discourse.processing.org/t/more-details-about-com-ports/43714)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 14\
**Last updated:** [April 3, 2024, 12:08pm UTC](https://discourse.processing.org/t/more-details-about-com-ports/43714 "2024-04-03T12:08:56Z")

</div>

I have a question concerning com ports. A while ago in this thread I managed to use arduino-cli.exe in order to get me more details about COM ports. It works really well. I can also find me boards with Ch340 chips. But…

---

## [Need help coding pacman for university](https://discourse.processing.org/t/need-help-coding-pacman-for-university/44208)

<div class="topic-metadata">

**Author:** [@Hellafraid](https://discourse.processing.org/u/Hellafraid)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 8:35am UTC](https://discourse.processing.org/t/need-help-coding-pacman-for-university/44208 "2024-04-03T08:35:42Z")

</div>

Can someone help me with creating a processing program that animates PacMan that can move left to right across the screen and can change directions if the spacebar is pressed. and appear from the other side once it rea…

---

## [Can I use a string as a command?](https://discourse.processing.org/t/can-i-use-a-string-as-a-command/44200)

<div class="topic-metadata">

**Author:** [@Naorius](https://discourse.processing.org/u/Naorius)\
**Replies:** 17\
**Last updated:** [April 2, 2024, 8:48pm UTC](https://discourse.processing.org/t/can-i-use-a-string-as-a-command/44200 "2024-04-02T20:48:44Z")

</div>

I have 55 images named alien1 - alien55 (I have a reason not to use a PImage array), instead of typing the draw() command for each one, I used a for loop: void draw() { for (int i; i=0; i\<54 i=i+1){ if (aliendr…

---

## [Why will start not = true?](https://discourse.processing.org/t/why-will-start-not-true/44215)

<div class="topic-metadata">

**Author:** [@WillyGrz](https://discourse.processing.org/u/WillyGrz)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 3:14pm UTC](https://discourse.processing.org/t/why-will-start-not-true/44215 "2024-04-02T15:14:12Z")

</div>

I’ve been out of coding for a few months and am trying to get back into it with a platformer. Was working on the backbone, and I can’t make start true with anything! Any ideas? float playerX; float playerY; boolean st…

---

## [Is there a way to add Listeners to the PApplet?](https://discourse.processing.org/t/is-there-a-way-to-add-listeners-to-the-papplet/17895)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 6\
**Last updated:** [April 1, 2024, 3:55am UTC](https://discourse.processing.org/t/is-there-a-way-to-add-listeners-to-the-papplet/17895 "2024-04-01T03:55:51Z")

</div>

I need to have an InputMethodListener for Japanese and Chinese input methods, is there a way to have the sketch listen to them? Just like someone reads my post

---

## [keyPressed() combos - How can I check for UP and SHIFT in a switch()](https://discourse.processing.org/t/keypressed-combos-how-can-i-check-for-up-and-shift-in-a-switch/44148)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 10\
**Last updated:** [March 31, 2024, 1:19am UTC](https://discourse.processing.org/t/keypressed-combos-how-can-i-check-for-up-and-shift-in-a-switch/44148 "2024-03-31T01:19:43Z")

</div>

Hello folks. I have this gigantic switch for handling keys inputs. Thats all fine. But I’m using “keyEvent.isShiftDown()” (sugested by chat gpt) and PDE complains: “The field PApplet.keyEvent is deprecated” How sho…

---

## [G4P full screen issue with Java2D renderer](https://discourse.processing.org/t/g4p-full-screen-issue-with-java2d-renderer/44178)

<div class="topic-metadata">

**Author:** [@Norilla](https://discourse.processing.org/u/Norilla)\
**Replies:** 3\
**Last updated:** [March 30, 2024, 2:02pm UTC](https://discourse.processing.org/t/g4p-full-screen-issue-with-java2d-renderer/44178 "2024-03-30T14:02:47Z")

</div>

We are using G4P to create a second window. We were wondering if there is a way to make GWindow fullscreen using JAVA2D as the renderer . We have our code as below: window1 = GWindow.getWindow(this, "NoRILLA Template P…

---

## [Responsive problem with noise](https://discourse.processing.org/t/responsive-problem-with-noise/44184)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 0\
**Last updated:** [March 30, 2024, 10:58am UTC](https://discourse.processing.org/t/responsive-problem-with-noise/44184 "2024-03-30T10:58:37Z")

</div>

Hello! Im having a problem with this noise class for a project. Is not fully responsive and the values are changing when i change the size of the screen. I tried a lot of things and i couldnt get it work. let r let toke…

---

## [GPS speedometer alarm](https://discourse.processing.org/t/gps-speedometer-alarm/44147)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 0\
**Last updated:** [March 23, 2024, 11:28pm UTC](https://discourse.processing.org/t/gps-speedometer-alarm/44147 "2024-03-23T23:28:37Z")

</div>

Any help for code Thankyou

---

## [Server/client with ESP32/Processing](https://discourse.processing.org/t/server-client-with-esp32-processing/44156)

<div class="topic-metadata">

**Author:** [@Bellatore69](https://discourse.processing.org/u/Bellatore69)\
**Replies:** 4\
**Last updated:** [March 28, 2024, 6:44am UTC](https://discourse.processing.org/t/server-client-with-esp32-processing/44156 "2024-03-28T06:44:14Z")

</div>

Good morning, I am currently in university, and my end-of-year project is to create an automatic greenhouse. I therefore have to create a Human Machine Interface with Processing and a server which will group together a…

---

## [Has anyone tried setting up a 'Mosquitto MQTT' server?](https://discourse.processing.org/t/has-anyone-tried-setting-up-a-mosquitto-mqtt-server/44060)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [March 27, 2024, 12:23am UTC](https://discourse.processing.org/t/has-anyone-tried-setting-up-a-mosquitto-mqtt-server/44060 "2024-03-27T00:23:33Z")

</div>

Has anyone tried setting up a ‘Mosquitto MQTT’ server? hello. Nice to meet you. Has anyone tried opening a ‘Mosquitto MQTT’ server through ‘JAVA’? Has anyone experienced this? help me~

---

## [Saving live information to excel file every half hour](https://discourse.processing.org/t/saving-live-information-to-excel-file-every-half-hour/43061)

<div class="topic-metadata">

**Author:** [@Jason](https://discourse.processing.org/u/Jason)\
**Replies:** 60\
**Last updated:** [March 26, 2024, 9:52am UTC](https://discourse.processing.org/t/saving-live-information-to-excel-file-every-half-hour/43061 "2024-03-26T09:52:38Z")

</div>

The following code was written by someone a few years ago for our company. What it does is display the counts of parts that are coming off of some of our machines. What i need to be able to do is have those numbers sa…

---

## [Processing executable resolution screwed up](https://discourse.processing.org/t/processing-executable-resolution-screwed-up/44115)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 2\
**Last updated:** [March 25, 2024, 7:35am UTC](https://discourse.processing.org/t/processing-executable-resolution-screwed-up/44115 "2024-03-25T07:35:07Z")

</div>

I have exported a windows 64 binary with java included. I can launch the .exe by double clicking it in the explorer. And everything works fine and all. But it looks like total crap on a different computer (also W10 64 b…

---

## [Display size calculations problem](https://discourse.processing.org/t/display-size-calculations-problem/44151)

<div class="topic-metadata">

**Author:** [@Jellyfish\_Grave](https://discourse.processing.org/u/Jellyfish_Grave)\
**Replies:** 4\
**Last updated:** [March 24, 2024, 4:46pm UTC](https://discourse.processing.org/t/display-size-calculations-problem/44151 "2024-03-24T16:46:42Z")

</div>

I came accross a problem while making my current project. The concept would be to create a black square on a white background of 1000 by 1000 pixels, but have it be at the center of the screen. Taking into account the fa…

---

## [Using the mouse position to zoom in on a map](https://discourse.processing.org/t/using-the-mouse-position-to-zoom-in-on-a-map/44137)

<div class="topic-metadata">

**Author:** [@CharmanderProgrammer](https://discourse.processing.org/u/CharmanderProgrammer)\
**Replies:** 10\
**Last updated:** [March 22, 2024, 6:19pm UTC](https://discourse.processing.org/t/using-the-mouse-position-to-zoom-in-on-a-map/44137 "2024-03-22T18:19:08Z")

</div>

void draw() { if(w) {camY -= 5;} if(s) {camY += 5;} if(a) {camX -= 5;} if(d) {camX += 5;} background(220); push(); translate(mouseX, mouseY); scale(camScale); translate(-mouseX, -mouseY); transla…

---

## [My Mac M1 Pro run Processing very slowly](https://discourse.processing.org/t/my-mac-m1-pro-run-processing-very-slowly/44142)

<div class="topic-metadata">

**Author:** [@langxm](https://discourse.processing.org/u/langxm)\
**Replies:** 1\
**Last updated:** [March 22, 2024, 3:22pm UTC](https://discourse.processing.org/t/my-mac-m1-pro-run-processing-very-slowly/44142 "2024-03-22T15:22:23Z")

</div>

processing on my mac m1 pro always can not show the result or can not display result after i press run button, it takes a very very very long time to show the result i write really simplest code. after first times, i c…

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

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