# Latest

**URL:** https://discourse.processing.org/latest.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

---

## [Why is hex(255,2) != hex(255,2)?](https://discourse.processing.org/t/why-is-hex-255-2-hex-255-2/44274)

<div class="topic-metadata">

**Author:** [@bbcwarrior](https://discourse.processing.org/u/bbcwarrior)\
**Replies:** 1\
**Last updated:** [April 14, 2024, 12:15am UTC](https://discourse.processing.org/t/why-is-hex-255-2-hex-255-2/44274 "2024-04-14T00:15:47Z")

</div>

Why doesn’t this piece of code output anything: if(hex(255,2) == hex(255,2)) { println("foo"); } But this one does?: if(unhex(hex(255,2)) == unhex(hex(255,2))) { println("bar"); }

---

## [P5.js translation to Processing (saving frames)](https://discourse.processing.org/t/p5-js-translation-to-processing-saving-frames/44267)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [April 13, 2024, 1:29pm UTC](https://discourse.processing.org/t/p5-js-translation-to-processing-saving-frames/44267 "2024-04-13T13:29:10Z")

</div>

Hello! I am working with an open processing sketch of constructivist art. I have translated to processing and I am trying to save a picture everytime the animation stops, but it makes the sketch so slow and it rewrite t…

---

## [New nub library released](https://discourse.processing.org/t/new-nub-library-released/19644)

<div class="topic-metadata">

**Author:** [@nakednous](https://discourse.processing.org/u/nakednous)\
**Replies:** 6\
**Last updated:** [April 13, 2024, 2:53am UTC](https://discourse.processing.org/t/new-nub-library-released/19644 "2024-04-13T02:53:32Z")

</div>

Hello, I’m pleased to let you know that I recently have released the nub library which supersedes and at the same time simplifies proscene. Please check the README for its usage and main features which include: Inter…

---

## [Announcing p5.treegl: Enhance Your WEBGL Projects in p5.js!](https://discourse.processing.org/t/announcing-p5-treegl-enhance-your-webgl-projects-in-p5-js/44269)

<div class="topic-metadata">

**Author:** [@nakednous](https://discourse.processing.org/u/nakednous)\
**Replies:** 0\
**Last updated:** [April 11, 2024, 11:38pm UTC](https://discourse.processing.org/t/announcing-p5-treegl-enhance-your-webgl-projects-in-p5-js/44269 "2024-04-11T23:38:49Z")

</div>

Announcing p5.treegl: Enhance Your WEBGL Projects in p5.js! I’m pleased to introduce p5.treegl, a cutting-edge library designed to simplify shader development and space transformations in p5.js. Whether you’re aiming to…

---

## [How to Highlight Text in a ControlP5 Textfield?](https://discourse.processing.org/t/how-to-highlight-text-in-a-controlp5-textfield/44256)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 26\
**Last updated:** [April 11, 2024, 2:36pm UTC](https://discourse.processing.org/t/how-to-highlight-text-in-a-controlp5-textfield/44256 "2024-04-11T14:36:02Z")

</div>

I’m feeling rather dense ATM, but I’m using the standard example that comes with Control5P for text fields, and I cannot seem to highlight text that I enter. I want to the user to be able to type something, then highligh…

---

## [G4P Lib - Slow Loading & GUI Builder Crashing Issues](https://discourse.processing.org/t/g4p-lib-slow-loading-gui-builder-crashing-issues/44250)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 7\
**Last updated:** [April 11, 2024, 2:04pm UTC](https://discourse.processing.org/t/g4p-lib-slow-loading-gui-builder-crashing-issues/44250 "2024-04-11T14:04:07Z")

</div>

Hi, two general issues, on a terrific library. 1). I noticed if I have some G4P controls, like toggle buttons or sliders, or whatever, and also the sketch has some static elements I’m drawing in draw(), like rectangles …

---

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

---

## [Applying Custom Shaders to Lines as Well as Filled Polygons in p5.js](https://discourse.processing.org/t/applying-custom-shaders-to-lines-as-well-as-filled-polygons-in-p5-js/44259)

<div class="topic-metadata">

**Author:** [@nakednous](https://discourse.processing.org/u/nakednous)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 6:28pm UTC](https://discourse.processing.org/t/applying-custom-shaders-to-lines-as-well-as-filled-polygons-in-p5-js/44259 "2024-04-09T18:28:18Z")

</div>

Hi all, I’m using a custom shader in p5.js that works well on filled polygons but doesn’t affect the magenta lines outlining them. I’m looking for a way to apply the shader to these lines as well. Here’s my code: How …

---

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

---

## [Which folder do I need to set SDK for Processing?](https://discourse.processing.org/t/which-folder-do-i-need-to-set-sdk-for-processing/43507)

<div class="topic-metadata">

**Author:** [@Laaz](https://discourse.processing.org/u/Laaz)\
**Replies:** 8\
**Last updated:** [April 7, 2024, 3:04pm UTC](https://discourse.processing.org/t/which-folder-do-i-need-to-set-sdk-for-processing/43507 "2024-04-07T15:04:49Z")

</div>

I want to write mobile app in processing, but for that it demands to install sdk. I installed Android Studio and now I can’t set it when processing asks me to set sdk manually either automatically. If manually than what…

---

## [How to have circles increase their radius](https://discourse.processing.org/t/how-to-have-circles-increase-their-radius/44171)

<div class="topic-metadata">

**Author:** [@Vovja](https://discourse.processing.org/u/Vovja)\
**Replies:** 5\
**Last updated:** [April 6, 2024, 7:02am UTC](https://discourse.processing.org/t/how-to-have-circles-increase-their-radius/44171 "2024-04-06T07:02:39Z")

</div>

I cant figure out how to have a certain amount of semicircles increase their radius without needing to define a new var for ever new circle. I am trying to recreate this: (the semicircles generate with delay but with …

---

## [Problem installing Python mode](https://discourse.processing.org/t/problem-installing-python-mode/44201)

<div class="topic-metadata">

**Author:** [@the.salmone](https://discourse.processing.org/u/the.salmone)\
**Replies:** 8\
**Last updated:** [April 5, 2024, 2:21pm UTC](https://discourse.processing.org/t/problem-installing-python-mode/44201 "2024-04-05T14:21:33Z")

</div>

Hi everyone, I tried installing Python mode via the mod manager in Processing last release but i get “Error during download and installation of Python mode for Processing 4”. It’s already an acknowledged problem or I’m …

---

## [JavaScript is like Python](https://discourse.processing.org/t/javascript-is-like-python/44186)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 2:15pm UTC](https://discourse.processing.org/t/javascript-is-like-python/44186 "2024-04-05T14:15:00Z")

</div>

To use p5.js you need to know JavaScript. If you’re learning JavaScript as a second language (after Python), then this brief “JavaScript is like Python” article will demonstrate the JavaScript equivalents of some of the…

---

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

---

## [Processing Foundation Fellowship Season 2024 (Open Call)](https://discourse.processing.org/t/processing-foundation-fellowship-season-2024-open-call/44230)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [April 4, 2024, 10:22am UTC](https://discourse.processing.org/t/processing-foundation-fellowship-season-2024-open-call/44230 "2024-04-04T10:22:01Z")

</div>

Application Deadline: Tuesday, May 2, 2024, 11:59 PM EST Register for our upcoming Info Session on April 5th, 10am EST here: 2024 Fellowship Info Session #1 registration The Processing Foundation is thrilled to announ…

---

## [How to create new unit test](https://discourse.processing.org/t/how-to-create-new-unit-test/44219)

<div class="topic-metadata">

**Author:** [@Renatolo](https://discourse.processing.org/u/Renatolo)\
**Replies:** 4\
**Last updated:** [April 4, 2024, 8:54am UTC](https://discourse.processing.org/t/how-to-create-new-unit-test/44219 "2024-04-04T08:54:45Z")

</div>

Hey, I’m new to contributing for P5, I was trying to add a simple unit test for an event. But it seems that when i run the command npm test its not running that specific test. Any help?

---

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

---

## [textWidth() returns wrong width](https://discourse.processing.org/t/textwidth-returns-wrong-width/44202)

<div class="topic-metadata">

**Author:** [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 1:44pm UTC](https://discourse.processing.org/t/textwidth-returns-wrong-width/44202 "2024-04-03T13:44:41Z")

</div>

The textWidth () function returns an invalid value. Is there any way to fix it? The screenshot shows that the line is longer than the text. code: String str="jjjjjjjjjjjjjjjjjjjj"; void setup(){ } void draw…

---

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

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

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