# Latest

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

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

**Page:** 204

---

## [Arithmetic Order of Operation and Calculation](https://discourse.processing.org/t/arithmetic-order-of-operation-and-calculation/31559)

<div class="topic-metadata">

**Author:** [@Peace](https://discourse.processing.org/u/Peace)\
**Replies:** 2\
**Last updated:** [August 4, 2021, 11:11am UTC](https://discourse.processing.org/t/arithmetic-order-of-operation-and-calculation/31559 "2021-08-04T11:11:22Z")

</div>

Hello guys, I am looking for a complete list of how Arithmetic Order of Operation and Calculation operates in Procession. Can anybody please direct me where can I find that information ? Cheers guys :clinking\_glasses:

---

## [GStreamer for recording live video](https://discourse.processing.org/t/gstreamer-for-recording-live-video/31573)

<div class="topic-metadata">

**Author:** [@StainlessHolz](https://discourse.processing.org/u/StainlessHolz)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 9:59am UTC](https://discourse.processing.org/t/gstreamer-for-recording-live-video/31573 "2021-08-04T09:59:34Z")

</div>

Hi everyone, Ive made a sketch witch decodes a full HD h.264 camera livestream, displays it and puts a overlay on it. To this point everything works fine and fast using the P2D renderer. Now i need to record this vide…

---

## [P2D, P3D only show grey screen -- until java window is closed](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370)

<div class="topic-metadata">

**Author:** [@willowisp](https://discourse.processing.org/u/willowisp)\
**Replies:** 8\
**Last updated:** [August 3, 2021, 9:59pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370 "2021-08-03T21:59:43Z")

</div>

When I’m trying to use P2D or P3D rendering, only a blank, grey screen is shown. This is the simplest code I could come up with to illustrate the problem: size(200, 200, P2D); background(0); Expected output is a black…

---

## [Zeckendorf Representations](https://discourse.processing.org/t/zeckendorf-representations/31567)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 0\
**Last updated:** [August 3, 2021, 9:55pm UTC](https://discourse.processing.org/t/zeckendorf-representations/31567 "2021-08-03T21:55:53Z")

</div>

The following image is a graph of Zeckendorf representations of numbers 1 through 232: “Zeckendorf’s theorem states that every positive integer can be represented uniquely as the sum of one or more distinct Fibonacc…

---

## [Null Pointer Exception with Arduino Communication](https://discourse.processing.org/t/null-pointer-exception-with-arduino-communication/31500)

<div class="topic-metadata">

**Author:** [@PapiAli](https://discourse.processing.org/u/PapiAli)\
**Replies:** 19\
**Last updated:** [August 3, 2021, 4:58pm UTC](https://discourse.processing.org/t/null-pointer-exception-with-arduino-communication/31500 "2021-08-03T16:58:40Z")

</div>

So I am running into this issue with my Processing code where I am getting null pointer exceptions whenever it runs over the port.write() line. Just for some background, what I am trying to do is have the Processing cod…

---

## [Zig Zag or Wavy or Spiral or Dotted lines 👀](https://discourse.processing.org/t/zig-zag-or-wavy-or-spiral-or-dotted-lines/31547)

<div class="topic-metadata">

**Author:** [@Peace](https://discourse.processing.org/u/Peace)\
**Replies:** 7\
**Last updated:** [August 3, 2021, 1:38pm UTC](https://discourse.processing.org/t/zig-zag-or-wavy-or-spiral-or-dotted-lines/31547 "2021-08-03T13:38:30Z")

</div>

Hi guys, I am a newbie to Processing ( by the way, I really liked this name, Processing :ok\_hand: ) and I have just learnt to draw vertical, horizons line, rect mode. Just wondering what will be the code for drawing Zig …

---

## [Convert HTML table to JSON](https://discourse.processing.org/t/convert-html-table-to-json/31555)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 10:24pm UTC](https://discourse.processing.org/t/convert-html-table-to-json/31555 "2021-08-02T22:24:22Z")

</div>

Hello everybody! Today I’ve been messing around with APIs and one of the few I’ve tried (Pastebin) returns data in the form of an HTML table. I want to convert this table into a JSON object but I’m having some trouble. …

---

## [Trying to make my own version of the "quick draw" game to build a library and teach an AI as a BEGINNER](https://discourse.processing.org/t/trying-to-make-my-own-version-of-the-quick-draw-game-to-build-a-library-and-teach-an-ai-as-a-beginner/30518)

<div class="topic-metadata">

**Author:** [@anntie](https://discourse.processing.org/u/anntie)\
**Replies:** 36\
**Last updated:** [August 2, 2021, 5:29pm UTC](https://discourse.processing.org/t/trying-to-make-my-own-version-of-the-quick-draw-game-to-build-a-library-and-teach-an-ai-as-a-beginner/30518 "2021-08-02T17:29:06Z")

</div>

Hello! I am working on a design project about emotive writing. I would like to teach an AI to detect “emotions” from simple hand-drawn lines, and maybe use a GAN to generate lines according to specified emotional categor…

---

## [Serial Communication / Simulink](https://discourse.processing.org/t/serial-communication-simulink/31516)

<div class="topic-metadata">

**Author:** [@MJAhmadi](https://discourse.processing.org/u/MJAhmadi)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 4:03pm UTC](https://discourse.processing.org/t/serial-communication-simulink/31516 "2021-08-02T16:03:17Z")

</div>

Hi, I want to send some binary data through processing serial to Matlab Simulink Software(serial receive block); I defined header and terminator in Simulink, but i dont know how to define this in processing? my code is…

---

## [Pd4P3 - A new real-time audio synthesis library for Processing](https://discourse.processing.org/t/pd4p3-a-new-real-time-audio-synthesis-library-for-processing/31345)

<div class="topic-metadata">

**Author:** [@robertesler](https://discourse.processing.org/u/robertesler)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 1:58pm UTC](https://discourse.processing.org/t/pd4p3-a-new-real-time-audio-synthesis-library-for-processing/31345 "2021-08-02T13:58:01Z")

</div>

I hope this is a good place to make an announcement like this. I have just recently released a real-time audio synthesis library called “Pd4P3” which stands for “Pd++ for Processing 3”. It is a library based on Pure Da…

---

## [Daylight robbery](https://discourse.processing.org/t/daylight-robbery/26886)

<div class="topic-metadata">

**Author:** [@ekaggrat](https://discourse.processing.org/u/ekaggrat)\
**Replies:** 5\
**Last updated:** [August 2, 2021, 1:14pm UTC](https://discourse.processing.org/t/daylight-robbery/26886 "2021-08-02T13:14:56Z")

</div>

i tried downloading processing 2.2.1 as i need it for my older projects. It just wont allow me to go anywhere without giving a donation. after a lot of tries i finally gave up and gave a 5 dollar minimum donation. inspit…

---

## [Avoiding clicks when changing sinOsc amplitude realtime](https://discourse.processing.org/t/avoiding-clicks-when-changing-sinosc-amplitude-realtime/31520)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 5\
**Last updated:** [August 2, 2021, 12:23pm UTC](https://discourse.processing.org/t/avoiding-clicks-when-changing-sinosc-amplitude-realtime/31520 "2021-08-02T12:23:27Z")

</div>

I’m finding some annoying audio glitches when changing a processing.sound sinOsc oscillator amplitude in realtime, for example with the mouse. While moving the mouse, the amplitude step difference is big enough to be he…

---

## [Fibonacci Spectrum](https://discourse.processing.org/t/fibonacci-spectrum/31541)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 0\
**Last updated:** [August 2, 2021, 1:21am UTC](https://discourse.processing.org/t/fibonacci-spectrum/31541 "2021-08-02T01:21:13Z")

</div>

This is a spectrum of sums of Fibonacci numbers. During each frame, Fibonacci numbers are chosen randomly from a list for inclusion in a sum. Each sum determines the hue and x position of a vertical line that is adde…

---

## [Serial Communication / Arduino to Processing](https://discourse.processing.org/t/serial-communication-arduino-to-processing/31528)

<div class="topic-metadata">

**Author:** [@MJAhmadi](https://discourse.processing.org/u/MJAhmadi)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 8:35pm UTC](https://discourse.processing.org/t/serial-communication-arduino-to-processing/31528 "2021-08-01T20:35:10Z")

</div>

Below is a part of my code : Serial.write(‘A’); // Print float data for (int i=0; i\<4; i++){ Serial.write(myValue1.bytes\[i\]); delay(10); } // Print terminator Serial.print(’\\n’); 3 value have been sent to serial…

---

## [Exporting processing sketch to application](https://discourse.processing.org/t/exporting-processing-sketch-to-application/31515)

<div class="topic-metadata">

**Author:** [@Avani11](https://discourse.processing.org/u/Avani11)\
**Replies:** 5\
**Last updated:** [August 1, 2021, 5:34pm UTC](https://discourse.processing.org/t/exporting-processing-sketch-to-application/31515 "2021-08-01T17:34:11Z")

</div>

Hey, I am making a project with processing. The sketch is a game with three stages, and works with mic threshold. When the user’s voice crosses a certain range of threshold, it reaches another level of the game. This sk…

---

## [Redeclaration of createShape in draw()](https://discourse.processing.org/t/redeclaration-of-createshape-in-draw/31498)

<div class="topic-metadata">

**Author:** [@paturn](https://discourse.processing.org/u/paturn)\
**Replies:** 5\
**Last updated:** [August 1, 2021, 4:13pm UTC](https://discourse.processing.org/t/redeclaration-of-createshape-in-draw/31498 "2021-08-01T16:13:07Z")

</div>

I am creating a sphere shape in setup following noStroke() so there are no triangles visible on the sphere. I am then displaying images on the globe, together with a grid pattern. Under certain circumstances, I would lik…

---

## [Union type in Processing programming](https://discourse.processing.org/t/union-type-in-processing-programming/31534)

<div class="topic-metadata">

**Author:** [@MJAhmadi](https://discourse.processing.org/u/MJAhmadi)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 2:28pm UTC](https://discourse.processing.org/t/union-type-in-processing-programming/31534 "2021-08-01T14:28:01Z")

</div>

hi , below code is for c++ typedef union{ float number; uint8\_t bytes\[4\]; } FLOATUNION\_t; FLOATUNION\_t myValue; how can i write it in processing ?

---

## [Using a Midi Keyboard to create coloured shapes](https://discourse.processing.org/t/using-a-midi-keyboard-to-create-coloured-shapes/9685)

<div class="topic-metadata">

**Author:** [@djspoonzay](https://discourse.processing.org/u/djspoonzay)\
**Replies:** 2\
**Last updated:** [August 1, 2021, 11:10am UTC](https://discourse.processing.org/t/using-a-midi-keyboard-to-create-coloured-shapes/9685 "2021-08-01T11:10:20Z")

</div>

Hello, I am trying to use a MIDI keyboard to create a red ellipse to start with. I keep getting the same response of cannot convert void to boolean. Any help would be appreciated. import themidibus.\*; MidiBus myBus; in…

---

## [Running on Homepage](https://discourse.processing.org/t/running-on-homepage/31526)

<div class="topic-metadata">

**Author:** [@Pauls](https://discourse.processing.org/u/Pauls)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 7:20am UTC](https://discourse.processing.org/t/running-on-homepage/31526 "2021-08-01T07:20:57Z")

</div>

I tried to write two lessons in my language learning. Can I run them on my homepage? with thanks Pauls

---

## [Txt \<\> png converter speed up & make pde websites](https://discourse.processing.org/t/txt-png-converter-speed-up-make-pde-websites/31523)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [August 1, 2021, 12:17am UTC](https://discourse.processing.org/t/txt-png-converter-speed-up-make-pde-websites/31523 "2021-08-01T00:17:00Z")

</div>

My txt \<\> png convertor now is speedy: https://sourceforge.net/projects/smily-helper-suite/files/ If you need Pixelanimations you need this suite. its usefull to make the generated png series to gif. I do experiment…

---

## [Calculating the displacement of keypoints in pixels](https://discourse.processing.org/t/calculating-the-displacement-of-keypoints-in-pixels/31430)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 3\
**Last updated:** [July 31, 2021, 8:51pm UTC](https://discourse.processing.org/t/calculating-the-displacement-of-keypoints-in-pixels/31430 "2021-07-31T20:51:26Z")

</div>

Hi , I am exploring then ml5 and posenet . I am having some issues in calculating the displacement of keypoints ( nose , in my case) . I can get the keypoints logged out but my logic on calculating the displacement of n…

---

## [Monty Hall Simulation Problem](https://discourse.processing.org/t/monty-hall-simulation-problem/31481)

<div class="topic-metadata">

**Author:** [@adisharma](https://discourse.processing.org/u/adisharma)\
**Replies:** 8\
**Last updated:** [July 31, 2021, 4:54pm UTC](https://discourse.processing.org/t/monty-hall-simulation-problem/31481 "2021-07-31T16:54:51Z")

</div>

Hello Everyone, I am working on Monty Hall Simulation Problem Project and I am looking for source code. I have checked on github and found this source but I want to know below code is optimize or not as a speed and size …

---

## [P5.js or Processing for Education?](https://discourse.processing.org/t/p5-js-or-processing-for-education/25347)

<div class="topic-metadata">

**Author:** [@vaides](https://discourse.processing.org/u/vaides)\
**Replies:** 15\
**Last updated:** [July 31, 2021, 4:48pm UTC](https://discourse.processing.org/t/p5-js-or-processing-for-education/25347 "2021-07-31T16:48:56Z")

</div>

Hi i have a question related this topic. which one of these 2 tools would you recommend for educational porposes for high school 15/18 years old students. I think that p5j could be easier but i’m afraid there is not re…

---

## [Editor Environment Highlight for Kids](https://discourse.processing.org/t/editor-environment-highlight-for-kids/30700)

<div class="topic-metadata">

**Author:** [@Viz](https://discourse.processing.org/u/Viz)\
**Replies:** 4\
**Last updated:** [July 31, 2021, 4:42pm UTC](https://discourse.processing.org/t/editor-environment-highlight-for-kids/30700 "2021-07-31T16:42:58Z")

</div>

Hi, I am currently teaching a group of 11 to 12 year olds how to code simple games in javascript. I’m trying to teach them about how functions work. I was wondering if there could be a feature in the editor that displa…

---

## [White screen while loading video with GL Video](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780)

<div class="topic-metadata">

**Author:** [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Replies:** 15\
**Last updated:** [July 31, 2021, 3:34pm UTC](https://discourse.processing.org/t/white-screen-while-loading-video-with-gl-video/4780 "2021-07-31T15:34:32Z")

</div>

Hi, I’m experiencing a white flash when loading a video with the GL Video library. I’ve checked with the singleVideo example and i’m getting the same behavior… I feel like it used to work without this flash in a previ…

---

## [Ellipse following mouse](https://discourse.processing.org/t/ellipse-following-mouse/31489)

<div class="topic-metadata">

**Author:** [@ninjaasmoke](https://discourse.processing.org/u/ninjaasmoke)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 5:52am UTC](https://discourse.processing.org/t/ellipse-following-mouse/31489 "2021-07-30T05:52:02Z")

</div>

I am new to processing and wanted to create a simple program where a circle follows the mouse. This is the code that I have, void setup () { size(400, 400, P3D); background(0); } void draw() { pushMatrix(); fi…

---

## [Sound.stop() not returning 0 on sound.currentTime()](https://discourse.processing.org/t/sound-stop-not-returning-0-on-sound-currenttime/31456)

<div class="topic-metadata">

**Author:** [@atagger](https://discourse.processing.org/u/atagger)\
**Replies:** 2\
**Last updated:** [July 29, 2021, 9:12pm UTC](https://discourse.processing.org/t/sound-stop-not-returning-0-on-sound-currenttime/31456 "2021-07-29T21:12:28Z")

</div>

I think there is something wrong / buggy in p5 sound. When you hit stop it should return zero for currentTime(), unless I am misunderstanding the intended behavior. I’m trying to change the sound playing using an array, …

---

## [Using P3D - core dumps error](https://discourse.processing.org/t/using-p3d-core-dumps-error/31486)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 4:26pm UTC](https://discourse.processing.org/t/using-p3d-core-dumps-error/31486 "2021-07-29T16:26:12Z")

</div>

Hi Having problems running a very simple sketch that sets size(2000, 2000, P3D); in settings(). The error is as follows: # A fatal error has been detected by the Java Runtime Environment: # # SIGILL (0x4) at pc=0x0000…

---

## [Video.play().time(x) not working in chrome](https://discourse.processing.org/t/video-play-time-x-not-working-in-chrome/31485)

<div class="topic-metadata">

**Author:** [@atagger](https://discourse.processing.org/u/atagger)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 4:21pm UTC](https://discourse.processing.org/t/video-play-time-x-not-working-in-chrome/31485 "2021-07-29T16:21:42Z")

</div>

For some reason the .time() will not work in p5. I’m only using createVideo in preload. I believe this is a chrome issue with local environments. Does anyone know a workaround? It jumps right back to the first frame n…

---

## [Tech.lity.rea.skatolo - textarea - string formatting](https://discourse.processing.org/t/tech-lity-rea-skatolo-textarea-string-formatting/31475)

<div class="topic-metadata">

**Author:** [@mmuylle](https://discourse.processing.org/u/mmuylle)\
**Replies:** 4\
**Last updated:** [July 29, 2021, 3:49pm UTC](https://discourse.processing.org/t/tech-lity-rea-skatolo-textarea-string-formatting/31475 "2021-07-29T15:49:08Z")

</div>

How can I format (basic formatting such as inserting a new line) the text (string) in a textarea controller of the tech.lity.rea.skatolo library?

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

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