# Latest

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

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

**Page:** 28

---

## [Serial Library: Clarity needed on SerialEvent() comment](https://discourse.processing.org/t/serial-library-clarity-needed-on-serialevent-comment/45663)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 3\
**Last updated:** [February 1, 2025, 10:26pm UTC](https://discourse.processing.org/t/serial-library-clarity-needed-on-serialevent-comment/45663 "2025-02-01T22:26:20Z")

</div>

Hello folks! Can someone help provide clarity on a comment in the Serial library? The comment is here: processing/java/libraries/serial/src/processing/serial/Serial.java at master · processing/processing · GitHub and…

---

## [Multiplication Table for JavaFX](https://discourse.processing.org/t/multiplication-table-for-javafx/45685)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 5\
**Last updated:** [February 1, 2025, 9:02pm UTC](https://discourse.processing.org/t/multiplication-table-for-javafx/45685 "2025-02-01T21:02:56Z")

</div>

The following source code creates a multiplication table for teaching purposes. It should run in the most recent Processing editor (v. 4.3.2) since all the JavaFX modules have now been added: import javafx.scene.Scene;…

---

## [Reinforcement learning Java Processing](https://discourse.processing.org/t/reinforcement-learning-java-processing/45680)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 10:23pm UTC](https://discourse.processing.org/t/reinforcement-learning-java-processing/45680 "2025-01-31T22:23:08Z")

</div>

OK, I’m trying to make a fun ai challenge between a bunch of different types of learning, but when I try to code Qlearning I am running into trouble. It will just sit still and do nothing. here is sketch int s = 25; //…

---

## [Harriss Spiral Using TurtleGraphics With Processing Arcs](https://discourse.processing.org/t/harriss-spiral-using-turtlegraphics-with-processing-arcs/45275)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 2:24pm UTC](https://discourse.processing.org/t/harriss-spiral-using-turtlegraphics-with-processing-arcs/45275 "2025-01-31T14:24:38Z")

</div>

The following source code will create a basic Harriss Spiral by using TurtleGraphics with Processing arcs. //https://gist.githubusercontent.com/nataliefreed/8483050/raw/9e3f1d0f44bcb0c872762e4b984358d375e7b5fa/turtle.pd…

---

## [Can't get started with Android Mode and SDK](https://discourse.processing.org/t/cant-get-started-with-android-mode-and-sdk/45579)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 8\
**Last updated:** [January 29, 2025, 11:13pm UTC](https://discourse.processing.org/t/cant-get-started-with-android-mode-and-sdk/45579 "2025-01-29T23:13:19Z")

</div>

Hi, I’m trying to get started with Android mode. When I switch a blank sketch to Android mode it offers to auto-download the SDK or for you to locate it. If I select auto-download it fails, same as here. I’ve tried r…

---

## [Trouble exporting music visualiser (vid not same length as song)](https://discourse.processing.org/t/trouble-exporting-music-visualiser-vid-not-same-length-as-song/45681)

<div class="topic-metadata">

**Author:** [@RevAustin](https://discourse.processing.org/u/RevAustin)\
**Replies:** 0\
**Last updated:** [January 29, 2025, 4:22pm UTC](https://discourse.processing.org/t/trouble-exporting-music-visualiser-vid-not-same-length-as-song/45681 "2025-01-29T16:22:47Z")

</div>

Heyyooo. I’ve put together a music visualiser based on the Minim FFT example that ‘reads’ the audio from the left and right channels, and managed to merge it with hamoid’s updated video export ‘withAudioViz’ example, bu…

---

## [Mover on a force-controlled circular orbit](https://discourse.processing.org/t/mover-on-a-force-controlled-circular-orbit/45632)

<div class="topic-metadata">

**Author:** [@eightohnine](https://discourse.processing.org/u/eightohnine)\
**Replies:** 1\
**Last updated:** [January 29, 2025, 2:51pm UTC](https://discourse.processing.org/t/mover-on-a-force-controlled-circular-orbit/45632 "2025-01-29T14:51:14Z")

</div>

Hi all, This particular issue has been bugging me far longer than I’d like to admit. Essentially I’m trying to put a Mover onto a circular path around a centerpoint. I know how to do this using an incrementing angle a…

---

## [Send message from Processing to Touch OSC Mk1 to update a led status](https://discourse.processing.org/t/send-message-from-processing-to-touch-osc-mk1-to-update-a-led-status/34767)

<div class="topic-metadata">

**Author:** [@dams2007](https://discourse.processing.org/u/dams2007)\
**Replies:** 21\
**Last updated:** [January 29, 2025, 9:13am UTC](https://discourse.processing.org/t/send-message-from-processing-to-touch-osc-mk1-to-update-a-led-status/34767 "2025-01-29T09:13:17Z")

</div>

Hi everyone, I am actually working on a processing Sketch to link with Touch OSC app on Iphone / Ipad to create a custom MIDI controller I am almost done to cover the functionalities that I need to build my interface. …

---

## [SpriteManipulation](https://discourse.processing.org/t/spritemanipulation/45590)

<div class="topic-metadata">

**Author:** [@JALAJ\_0106](https://discourse.processing.org/u/JALAJ_0106)\
**Replies:** 2\
**Last updated:** [January 29, 2025, 12:38pm UTC](https://discourse.processing.org/t/spritemanipulation/45590 "2025-01-29T12:38:17Z")

</div>

I was thinking maybe we could update the PImage class to include graphics rendered sprite tessalation. Example: Pimage texture = createImage(8, 8, ARGB); PImage spritemap = loadImage("some.png"); texture.sampleSprite(…

---

## [How can I use the Processing Sound Library to visualise rhythm?](https://discourse.processing.org/t/how-can-i-use-the-processing-sound-library-to-visualise-rhythm/45678)

<div class="topic-metadata">

**Author:** [@nadine](https://discourse.processing.org/u/nadine)\
**Replies:** 0\
**Last updated:** [January 29, 2025, 10:40am UTC](https://discourse.processing.org/t/how-can-i-use-the-processing-sound-library-to-visualise-rhythm/45678 "2025-01-29T10:40:59Z")

</div>

Hi! I am working on a live sound visualiser that involves image processing. So far, I have only manage to find amplitude related coding examples in the Processing Sound Library, but little to none for rhythm – can anyon…

---

## [Make Z axis alternate between 'growing' and 'shrinking'...?](https://discourse.processing.org/t/make-z-axis-alternate-between-growing-and-shrinking/45661)

<div class="topic-metadata">

**Author:** [@RevAustin](https://discourse.processing.org/u/RevAustin)\
**Replies:** 7\
**Last updated:** [January 29, 2025, 1:20am UTC](https://discourse.processing.org/t/make-z-axis-alternate-between-growing-and-shrinking/45661 "2025-01-29T01:20:31Z")

</div>

Hi all! I’m new to Processing and, in short, I’d like the Z axis of an object to keep ‘growing’ and ‘shrinking’ but I don’t know the best way to do this. I thought maybe having two alternating timers might work, but th…

---

## [Building A Most Simple Programming Language To Visualise Information](https://discourse.processing.org/t/building-a-most-simple-programming-language-to-visualise-information/45626)

<div class="topic-metadata">

**Author:** [@refactor\_this\_l4ter](https://discourse.processing.org/u/refactor_this_l4ter)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 10:33pm UTC](https://discourse.processing.org/t/building-a-most-simple-programming-language-to-visualise-information/45626 "2025-01-22T22:33:36Z")

</div>

Hi there folks, this is my first time ever posting an entry on a online programming forum, please excuse my posting format if it is not up to the standart. While reading this topic, please consider the following: altough…

---

## [GameControlPlus on RaspberryPI Model5](https://discourse.processing.org/t/gamecontrolplus-on-raspberrypi-model5/45634)

<div class="topic-metadata">

**Author:** [@christian.weber](https://discourse.processing.org/u/christian.weber)\
**Replies:** 3\
**Last updated:** [January 28, 2025, 8:28am UTC](https://discourse.processing.org/t/gamecontrolplus-on-raspberrypi-model5/45634 "2025-01-28T08:28:16Z")

</div>

Hi@All! I want to use the GameControlPlus Library on the new RaspberryPi Model 5, which is aarch64 architecture. GameControlPlus uses the JInput library, which is not provided in the correct architecture in the library …

---

## [New Nature of Code Processing Examples Are Here!](https://discourse.processing.org/t/new-nature-of-code-processing-examples-are-here/45669)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [January 27, 2025, 3:35pm UTC](https://discourse.processing.org/t/new-nature-of-code-processing-examples-are-here/45669 "2025-01-27T15:35:34Z")

</div>

Just a quick heads up that the Processing examples for the new Nature of Code (2024) are now available at the link below: Thanks @shiffman for porting the examples to Processing! You can get the book in paper form or…

---

## [Language translation](https://discourse.processing.org/t/language-translation/45668)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 3\
**Last updated:** [January 27, 2025, 2:44pm UTC](https://discourse.processing.org/t/language-translation/45668 "2025-01-27T14:44:13Z")

</div>

I am working with an old open processing sktech I translated to processing. It used to work but it does not, coul you please help me? color\[\] colors = { color(#edb218), color(#029cc2), color(#6b8c87), color(#a5…

---

## [Keyboard shortcuts greyed out & not working after update from 4.0 to 4.32, Sonoma 14.5](https://discourse.processing.org/t/keyboard-shortcuts-greyed-out-not-working-after-update-from-4-0-to-4-32-sonoma-14-5/45623)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 4\
**Last updated:** [January 26, 2025, 6:03pm UTC](https://discourse.processing.org/t/keyboard-shortcuts-greyed-out-not-working-after-update-from-4-0-to-4-32-sonoma-14-5/45623 "2025-01-26T18:03:02Z")

</div>

I use the native IDE and after updating from 4.0 to 4.32, all the keyboard shortcuts are greyed out and don’t work. I am running Sonoma 14.5 on a Mac M1. Any hints about what’s happened here and how to fix? I didn’t c…

---

## [Needed example of .toStringArray()](https://discourse.processing.org/t/needed-example-of-tostringarray/45653)

<div class="topic-metadata">

**Author:** [@dneilan](https://discourse.processing.org/u/dneilan)\
**Replies:** 6\
**Last updated:** [January 26, 2025, 4:48pm UTC](https://discourse.processing.org/t/needed-example-of-tostringarray/45653 "2025-01-26T16:48:53Z")

</div>

I have tried evey which way to get this function to work… Anybody got a working example ? Here is my Json array: \[{“id”: “1”}\] I couldn’t make it any simpler. Or am I barking up the wrong tree ?

---

## [How to draw real-time data in a specific canvas area？](https://discourse.processing.org/t/how-to-draw-real-time-data-in-a-specific-canvas-area/45631)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 38\
**Last updated:** [January 26, 2025, 4:26pm UTC](https://discourse.processing.org/t/how-to-draw-real-time-data-in-a-specific-canvas-area/45631 "2025-01-26T16:26:52Z")

</div>

Excuse me, I am testing multiple physiological parameters and hope to draw real-time waveforms in a specific canvas area, taking ECG as an example, how should I do it? I have three channels of data. The data received…

---

## [Converting decimal number to ternary number](https://discourse.processing.org/t/converting-decimal-number-to-ternary-number/45658)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 2\
**Last updated:** [January 26, 2025, 12:00pm UTC](https://discourse.processing.org/t/converting-decimal-number-to-ternary-number/45658 "2025-01-26T12:00:37Z")

</div>

So here is my attempt (below). Sadly it does not work: Void methods cannot return a value I am trying to use a recursive function. Can it be done? void setup() { noLoop(); } void draw() { for (int i = 0; i \< 34;…

---

## [Processing (all versions) does not launch and remains stuck on startup window on Mac (Resolved)](https://discourse.processing.org/t/processing-all-versions-does-not-launch-and-remains-stuck-on-startup-window-on-mac-resolved/45584)

<div class="topic-metadata">

**Author:** [@nadine](https://discourse.processing.org/u/nadine)\
**Replies:** 7\
**Last updated:** [January 25, 2025, 8:00pm UTC](https://discourse.processing.org/t/processing-all-versions-does-not-launch-and-remains-stuck-on-startup-window-on-mac-resolved/45584 "2025-01-25T20:00:29Z")

</div>

Whenever I try and launch processing, it does not load beyond this screen (see image attached). I have removed and reinstalled it, tried restarting my laptop too, but nothing works. I also tried downloading and testin…

---

## [Processing API is powering Khan Academy coding and codeguppy.com (examples 👇)](https://discourse.processing.org/t/processing-api-is-powering-khan-academy-coding-and-codeguppy-com-examples/45642)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 1\
**Last updated:** [January 23, 2025, 7:11pm UTC](https://discourse.processing.org/t/processing-api-is-powering-khan-academy-coding-and-codeguppy-com-examples/45642 "2025-01-23T19:11:18Z")

</div>

Processing API is powering both Khan Academy coding platform and codeguppy.com. See below a few projects ported between these platforms: CG version: CodeGuppy Playground KA version: Khan Academy CG version: Co…

---

## [Which type of PImage is created when LoadImage is used, and how can I ask it what it is?](https://discourse.processing.org/t/which-type-of-pimage-is-created-when-loadimage-is-used-and-how-can-i-ask-it-what-it-is/45639)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 1\
**Last updated:** [January 23, 2025, 2:03pm UTC](https://discourse.processing.org/t/which-type-of-pimage-is-created-when-loadimage-is-used-and-how-can-i-ask-it-what-it-is/45639 "2025-01-23T14:03:38Z")

</div>

When you create a PImage using createImage, you specify the type as RGB, ARGB or ALPHA. When you create a PImage using loadImage, you do not. So, two very closely related questions. What type of PImage is created, R…

---

## [File not found using surface.setIcon(icon) in public class test extends PApplet](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 7\
**Last updated:** [January 23, 2025, 2:38am UTC](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622 "2025-01-23T02:38:44Z")

</div>

hello,everyone. I can’t find the file when using surface.setIcon(icon) in public class test extends PApplet. I am using the processing4 version. My pictures are saved in data. The file structure is as follows: MySketch/ …

---

## [Prefill Libraries for classroom usage not working in macOS](https://discourse.processing.org/t/prefill-libraries-for-classroom-usage-not-working-in-macos/45427)

<div class="topic-metadata">

**Author:** [@pnerum](https://discourse.processing.org/u/pnerum)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 6:03pm UTC](https://discourse.processing.org/t/prefill-libraries-for-classroom-usage-not-working-in-macos/45427 "2025-01-21T18:03:48Z")

</div>

We’re using Processing in our classroom labs where we give Processing lessons. Our lab macOS devices are shared between a lot of students and therefore we need to delete all the home folders with reboots to prevent stora…

---

## [Reference documentation code example glitch for PImage.height](https://discourse.processing.org/t/reference-documentation-code-example-glitch-for-pimage-height/45625)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 1\
**Last updated:** [January 21, 2025, 12:03pm UTC](https://discourse.processing.org/t/reference-documentation-code-example-glitch-for-pimage-height/45625 "2025-01-21T12:03:13Z")

</div>

Strangely enough, the code example given in reference section for Pimage\_height doesn’t have any mention at all of height in it. Should I report this via GitHib? PImage photo; void setup() { size(400, 400); photo …

---

## [Morphing String using Geomerative library, bug on the iterations of the program](https://discourse.processing.org/t/morphing-string-using-geomerative-library-bug-on-the-iterations-of-the-program/45616)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 1:14pm UTC](https://discourse.processing.org/t/morphing-string-using-geomerative-library-bug-on-the-iterations-of-the-program/45616 "2025-01-20T13:14:14Z")

</div>

Hi, I wrote a program that uses Geomerative library in order to morph between different words that ends with “ire” and form a short poem, but when the program loops instead of repeating perfectly the animation, it bugs!…

---

## [How to sort coordinates?](https://discourse.processing.org/t/how-to-sort-coordinates/45599)

<div class="topic-metadata">

**Author:** [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Replies:** 23\
**Last updated:** [January 20, 2025, 9:44pm UTC](https://discourse.processing.org/t/how-to-sort-coordinates/45599 "2025-01-20T21:44:07Z")

</div>

Is there any way to quickly sort the cordinates of dots? I have an array of Vertex dots\[ \] I need to sort it so that the index neighbors are also neighboring dots. Example: Input: (5,5)(3,4)(2,5)(4,4)(5,4) Output: (2…

---

## [Cube In Cube Trimesh to Py5Shape](https://discourse.processing.org/t/cube-in-cube-trimesh-to-py5shape/45615)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [January 17, 2025, 3:32am UTC](https://discourse.processing.org/t/cube-in-cube-trimesh-to-py5shape/45615 "2025-01-17T03:32:14Z")

</div>

The following source demonstrates conversion of a trimesh cube in a cube object to a Py5Shape. It was created and run in a Thonny editor. import trimesh import math import py5 one = trimesh.creation.box((150,150,150))…

---

## [Bold and italic text styles](https://discourse.processing.org/t/bold-and-italic-text-styles/45586)

<div class="topic-metadata">

**Author:** [@Gadger](https://discourse.processing.org/u/Gadger)\
**Replies:** 2\
**Last updated:** [January 14, 2025, 6:08pm UTC](https://discourse.processing.org/t/bold-and-italic-text-styles/45586 "2025-01-14T18:08:16Z")

</div>

How can I get bold and italic styling for text using the default font? I need the rendered text to be (approximately) the same whether the sketch is run on Windows, Mac or Linux.

---

## [Icosahedron PShape](https://discourse.processing.org/t/icosahedron-pshape/45587)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [January 14, 2025, 1:54am UTC](https://discourse.processing.org/t/icosahedron-pshape/45587 "2025-01-14T01:54:40Z")

</div>

The following source code may be used to generate an icosahedron composed of 12 vertices and 20 equilateral triangle faces. Each face consists of 3 points taken from the 12 vertices. The vertices are based upon the gol…

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

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