# Latest

**URL:** https://discourse.processing.org/latest.md?page=28

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

**Page:** 29

---

## [Problem with type conversion and color](https://discourse.processing.org/t/problem-with-type-conversion-and-color/45570)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 13\
**Last updated:** [January 12, 2025, 4:18pm UTC](https://discourse.processing.org/t/problem-with-type-conversion-and-color/45570 "2025-01-12T16:18:45Z")

</div>

I have an integer j. I convert it to a character k, with value b. Then I want to fill a rectangle with color b by calling fill(k); It (see below) does not work. Can anyone please tell me why? char k; color b = color(…

---

## [PShape setFill() issue](https://discourse.processing.org/t/pshape-setfill-issue/45536)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 9\
**Last updated:** [January 12, 2025, 1:42am UTC](https://discourse.processing.org/t/pshape-setfill-issue/45536 "2025-01-12T01:42:27Z")

</div>

setFill(indx,color) may be used to set vertex colors for a PShape. However, it appears to be able to do this only once as shown in the following demo. It will change the colors if the triangle is redrawn, but the desir…

---

## [Flying RGB Being created with PShape](https://discourse.processing.org/t/flying-rgb-being-created-with-pshape/45539)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [January 5, 2025, 9:40pm UTC](https://discourse.processing.org/t/flying-rgb-being-created-with-pshape/45539 "2025-01-05T21:40:04Z")

</div>

Hello folks! Some code I dug up from my archives: // Project: Flying RGB Being // Author: GLV // Date: 2019-03-23 // Update: 2025-01-11 // Updates: // 2018-09-29 // 2018-06-27 // 2025-01-05 Cleaned it up a bit fo…

---

## [PShape Vertices Colored with setFill()](https://discourse.processing.org/t/pshape-vertices-colored-with-setfill/45529)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 5:08am UTC](https://discourse.processing.org/t/pshape-vertices-colored-with-setfill/45529 "2025-01-04T05:08:22Z")

</div>

The following source code demonstrates a PShape 3D colored cube using setFill(index, color) on the vertices to change the colors. Both a Java version and a Python version are shown. The Java cube coordinates were taken…

---

## [Processing forum archive is down](https://discourse.processing.org/t/processing-forum-archive-is-down/45548)

<div class="topic-metadata">

**Author:** [@akiba](https://discourse.processing.org/u/akiba)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 1:49pm UTC](https://discourse.processing.org/t/processing-forum-archive-is-down/45548 "2025-01-10T13:49:37Z")

</div>

Hi all. I haven’t been able to access the old forum.processing.org archives for the past few days. I’ve been trying to research some functionality for a new project and would love to have access to the knowledge there. C…

---

## [Having a problem with zero length arrays](https://discourse.processing.org/t/having-a-problem-with-zero-length-arrays/45555)

<div class="topic-metadata">

**Author:** [@tajvirsingh](https://discourse.processing.org/u/tajvirsingh)\
**Replies:** 6\
**Last updated:** [January 9, 2025, 9:47pm UTC](https://discourse.processing.org/t/having-a-problem-with-zero-length-arrays/45555 "2025-01-09T21:47:27Z")

</div>

I’ve formatted all my vectors to be 1 column and 4 rows, but apparently I’m putting a vector of length 0 into my function? Why might this happen? Thanks,

---

## [Please help my Processing code. due to tomorrow!](https://discourse.processing.org/t/please-help-my-processing-code-due-to-tomorrow/30725)

<div class="topic-metadata">

**Author:** [@uniquenospace](https://discourse.processing.org/u/uniquenospace)\
**Replies:** 6\
**Last updated:** [January 9, 2025, 1:31pm UTC](https://discourse.processing.org/t/please-help-my-processing-code-due-to-tomorrow/30725 "2025-01-09T13:31:17Z")

</div>

I want to make program that press the button on the first screen to play the first video, and when I press key ‘s’ or ‘l’ on the screen, I want to make them show different videos, but it’s too hard because I haven’t lear…

---

## [Target VM failed to initialize error](https://discourse.processing.org/t/target-vm-failed-to-initialize-error/45553)

<div class="topic-metadata">

**Author:** [@joshhumphris](https://discourse.processing.org/u/joshhumphris)\
**Replies:** 2\
**Last updated:** [January 8, 2025, 12:11pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-error/45553 "2025-01-08T12:11:42Z")

</div>

Hello, I am going through this tutorial and I have gotten an error despite copying the code exactly. Is it because my computer can’t compute the complextiy of the program? The console says; IndexOutofBo…

---

## [Announcing Shape Mapper: Processing library for projection mapping](https://discourse.processing.org/t/announcing-shape-mapper-processing-library-for-projection-mapping/45549)

<div class="topic-metadata">

**Author:** [@alexmiller](https://discourse.processing.org/u/alexmiller)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 11:45pm UTC](https://discourse.processing.org/t/announcing-shape-mapper-processing-library-for-projection-mapping/45549 "2025-01-06T23:45:01Z")

</div>

Hi all. My open source library for projection mapping called Shape Mapper is officially released today, free for all to use! You can find more information, including tutorials, here: shapemapper.dev/ Features include…

---

## [Creating a paper-engineering pop-up with angular velocity](https://discourse.processing.org/t/creating-a-paper-engineering-pop-up-with-angular-velocity/45517)

<div class="topic-metadata">

**Author:** [@fobioid](https://discourse.processing.org/u/fobioid)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 12:33pm UTC](https://discourse.processing.org/t/creating-a-paper-engineering-pop-up-with-angular-velocity/45517 "2025-01-05T12:33:08Z")

</div>

I’m trying to create an animated pop-up card. I can figure out how to animate folding planes when the folds are parallel, but am having trouble figuring out angled folds that increase the angular velocity of the moving p…

---

## [Issues when applying a formula](https://discourse.processing.org/t/issues-when-applying-a-formula/45520)

<div class="topic-metadata">

**Author:** [@Proyecto\_Zeus](https://discourse.processing.org/u/Proyecto_Zeus)\
**Replies:** 19\
**Last updated:** [January 5, 2025, 11:29am UTC](https://discourse.processing.org/t/issues-when-applying-a-formula/45520 "2025-01-05T11:29:04Z")

</div>

Hi there, I am trying to apply the next formulas on my Processing code for my project: In order to do that, I wrote the next code: float a = 6378388.0; float b = 6356911.94613; float e = sqrt(sq(a) - sq(b))/a; pri…

---

## [mouseClick() function doesn't work on iPhone (p5.js)](https://discourse.processing.org/t/mouseclick-function-doesnt-work-on-iphone-p5-js/22866)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 2\
**Last updated:** [January 4, 2025, 9:43pm UTC](https://discourse.processing.org/t/mouseclick-function-doesnt-work-on-iphone-p5-js/22866 "2025-01-04T21:43:47Z")

</div>

I’ve made a simple application. It works on all major platforms (macOS, Windows, Android etc) but it doesn’t do anything on iPhone Safari. It just draws things on the screen but nothing interactive; nothing written in mo…

---

## [Happy New Year & Happy New py5 Release!](https://discourse.processing.org/t/happy-new-year-happy-new-py5-release/45527)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 1:18pm UTC](https://discourse.processing.org/t/happy-new-year-happy-new-py5-release/45527 "2025-01-02T13:18:04Z")

</div>

Code using py5, shapely and scipy at: GitHub - villares/sketch-a-day: One visual idea a day Read about the latest py5 release at: TL:DR; for the December 31st release: You can now intercept the ESC key and you…

---

## [Optimized Minecraft Clone in Processing](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422)

<div class="topic-metadata">

**Author:** [@HerbertTheBird](https://discourse.processing.org/u/HerbertTheBird)\
**Replies:** 6\
**Last updated:** [January 2, 2025, 12:45pm UTC](https://discourse.processing.org/t/optimized-minecraft-clone-in-processing/45422 "2025-01-02T12:45:06Z")

</div>

I made a Minecraft clone in processing java. It has basic functions like placing/breaking blocks, sprinting, flying, ambient music, sound effects, and random world generation. The whole thing is about 1000 lines l…

---

## [I cant open Processing on my mac, its showing "Unable To Load Java Runtime Environment"](https://discourse.processing.org/t/i-cant-open-processing-on-my-mac-its-showing-unable-to-load-java-runtime-environment/45524)

<div class="topic-metadata">

**Author:** [@aliathestupid\_1](https://discourse.processing.org/u/aliathestupid_1)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 6:59am UTC](https://discourse.processing.org/t/i-cant-open-processing-on-my-mac-its-showing-unable-to-load-java-runtime-environment/45524 "2025-01-01T06:59:42Z")

</div>

I’m unable to open processing on my Macbook After downloading processing 4.3.1 on my MacBook Air which is a Monterey 12.7.6, it shows unable to load Java Runtime Environment. My Mac is a bit old (13-inch, early 2015) b…

---

## [Can't open Processing app, unable to load JRE](https://discourse.processing.org/t/cant-open-processing-app-unable-to-load-jre/37236)

<div class="topic-metadata">

**Author:** [@Dreelliot](https://discourse.processing.org/u/Dreelliot)\
**Replies:** 2\
**Last updated:** [January 1, 2025, 5:03am UTC](https://discourse.processing.org/t/cant-open-processing-app-unable-to-load-jre/37236 "2025-01-01T05:03:25Z")

</div>

I’m running macOS Monterey on an 2019 MacBook and when trying to open processing it prompts “unable to load JRE”. I’ve uninstalled and reinstalled java jre many times, also I’ve installed idk and neither of those helped…

---

## [Cannot launch Processing on Mac: Unable to load Java Runtime Environment](https://discourse.processing.org/t/cannot-launch-processing-on-mac-unable-to-load-java-runtime-environment/45406)

<div class="topic-metadata">

**Author:** [@theosib](https://discourse.processing.org/u/theosib)\
**Replies:** 6\
**Last updated:** [January 1, 2025, 4:50am UTC](https://discourse.processing.org/t/cannot-launch-processing-on-mac-unable-to-load-java-runtime-environment/45406 "2025-01-01T04:50:43Z")

</div>

I’ve just installed Processing 4.3 on my Mac, and I’m unable to launch the program. When I run the app, it says “Unable to load Java Runtime Environment.” I initially just had Java 8 installed, which evidently is too ol…

---

## [YouTube 360 degree issue](https://discourse.processing.org/t/youtube-360-degree-issue/45519)

<div class="topic-metadata">

**Author:** [@RedaBradley](https://discourse.processing.org/u/RedaBradley)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 3:10am UTC](https://discourse.processing.org/t/youtube-360-degree-issue/45519 "2025-01-01T03:10:20Z")

</div>

YouTube 360 ​​degree videos not working on Android, can anyone help?

---

## [How to set limits on zoom min/max in p5.js WEBGL mode?](https://discourse.processing.org/t/how-to-set-limits-on-zoom-min-max-in-p5-js-webgl-mode/45476)

<div class="topic-metadata">

**Author:** [@asdfasdf](https://discourse.processing.org/u/asdfasdf)\
**Replies:** 6\
**Last updated:** [December 27, 2024, 8:45pm UTC](https://discourse.processing.org/t/how-to-set-limits-on-zoom-min-max-in-p5-js-webgl-mode/45476 "2024-12-27T20:45:09Z")

</div>

I have a p5.js project in WEBGL mode, and I’ve been looking online to find a good way to constrain the minimum and maximum zoom levels, but I can’t find a solid solution. Ideally, I’d like to impose limits that work wit…

---

## [Current JavaScript Function Definition Syntax](https://discourse.processing.org/t/current-javascript-function-definition-syntax/45512)

<div class="topic-metadata">

**Author:** [@Quercus](https://discourse.processing.org/u/Quercus)\
**Replies:** 2\
**Last updated:** [December 27, 2024, 7:56pm UTC](https://discourse.processing.org/t/current-javascript-function-definition-syntax/45512 "2024-12-27T19:56:42Z")

</div>

I love the book Getting Started with p5.js that is published by Maker Media. The examples included are very helpful, but since the book is from 2016, those examples do not utilize function expressions or arrow syntax for…

---

## [String Arrays with LTR and RTL languages](https://discourse.processing.org/t/string-arrays-with-ltr-and-rtl-languages/45314)

<div class="topic-metadata">

**Author:** [@Bingo\_dan](https://discourse.processing.org/u/Bingo_dan)\
**Replies:** 13\
**Last updated:** [December 26, 2024, 1:50pm UTC](https://discourse.processing.org/t/string-arrays-with-ltr-and-rtl-languages/45314 "2024-12-26T13:50:58Z")

</div>

myJasonarray.json \[ { "animalsEnglish": \["dog", "cat", "fish", "horse"\] } { "animalsHebrew": \["כלב", "חתול", "דג", "סוס"\] } \] Which is the zero’th index for animalsEnglish? Which is the Zero’th index for animalsHebr…

---

## [Processing and Arduino Serial Example](https://discourse.processing.org/t/processing-and-arduino-serial-example/31650)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 4\
**Last updated:** [December 21, 2024, 5:39pm UTC](https://discourse.processing.org/t/processing-and-arduino-serial-example/31650 "2024-12-21T17:39:25Z")

</div>

Hi @josephh, @glv, @PhilHaw, @TfGuy44, I’ve included you specifically because I’ve seen you reply to Proceesing+Arduino Serial questions, but anyone else is welcome to join in. I’m sure you’ve noticed that the same …

---

## [Zoom In boundries problem with Penrose Tilling App](https://discourse.processing.org/t/zoom-in-boundries-problem-with-penrose-tilling-app/45492)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 2\
**Last updated:** [December 21, 2024, 3:41pm UTC](https://discourse.processing.org/t/zoom-in-boundries-problem-with-penrose-tilling-app/45492 "2024-12-21T15:41:40Z")

</div>

with my latest code, it seems as if the boundaries of the space in which the art itself can be in, are smaller then the canvas itself, how do i know? Look at the first image: this is how the shape looks correctl…

---

## [keyPressed() combos - How can I check if ctrl and other key are pressed?](https://discourse.processing.org/t/keypressed-combos-how-can-i-check-if-ctrl-and-other-key-are-pressed/45495)

<div class="topic-metadata">

**Author:** [@Proyecto\_Zeus](https://discourse.processing.org/u/Proyecto_Zeus)\
**Replies:** 2\
**Last updated:** [December 21, 2024, 9:19am UTC](https://discourse.processing.org/t/keypressed-combos-how-can-i-check-if-ctrl-and-other-key-are-pressed/45495 "2024-12-21T09:19:29Z")

</div>

Hello, I want to run some code and then quit the program from running when I press ctrl+x. I tried the next code: boolean ctrl; boolean x; void setup() { //Some code } void draw(){ //More code } void keyPressed(…

---

## [Question about looping](https://discourse.processing.org/t/question-about-looping/45436)

<div class="topic-metadata">

**Author:** [@edufissure](https://discourse.processing.org/u/edufissure)\
**Replies:** 2\
**Last updated:** [December 7, 2024, 12:26am UTC](https://discourse.processing.org/t/question-about-looping/45436 "2024-12-07T00:26:38Z")

</div>

Hi im having a doubt… i know that draw is a endless loop, from beginning to las line of code…thats correct… The doubt cames if i create a function inside draw…lets say MovePacman(); MovePacman have a loop for moving f…

---

## [A problem related to a "Live Feedback" \\ "Score System" system](https://discourse.processing.org/t/a-problem-related-to-a-live-feedback-score-system-system/45491)

<div class="topic-metadata">

**Author:** [@winterchan](https://discourse.processing.org/u/winterchan)\
**Replies:** 0\
**Last updated:** [December 19, 2024, 4:31pm UTC](https://discourse.processing.org/t/a-problem-related-to-a-live-feedback-score-system-system/45491 "2024-12-19T16:31:36Z")

</div>

Hi guys, requesting some help related to “live feedback mode” i implemented If activated you can give live feedback on your work every time you randomize to create a new output. The idea is the art should get more and…

---

## [Problems with Sound Library in Android](https://discourse.processing.org/t/problems-with-sound-library-in-android/44973)

<div class="topic-metadata">

**Author:** [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Replies:** 3\
**Last updated:** [December 19, 2024, 2:48pm UTC](https://discourse.processing.org/t/problems-with-sound-library-in-android/44973 "2024-12-19T14:48:05Z")

</div>

I have a sketch working perfectly under Processing/Java. When I switch to Android, I get a number of notifications (see below) and the sketch does not run. The sketch runs OK if I remove the Sound related rows (Same ro…

---

## [Why does the increment/decrement operator cause bugs when used in a recursive function?](https://discourse.processing.org/t/why-does-the-increment-decrement-operator-cause-bugs-when-used-in-a-recursive-function/45484)

<div class="topic-metadata">

**Author:** [@WaningJupiter](https://discourse.processing.org/u/WaningJupiter)\
**Replies:** 9\
**Last updated:** [December 19, 2024, 12:26pm UTC](https://discourse.processing.org/t/why-does-the-increment-decrement-operator-cause-bugs-when-used-in-a-recursive-function/45484 "2024-12-19T12:26:33Z")

</div>

Hello, I have a question about the behavior of the increment/decrement operator in recursive functions. Here’s a tree fractal pattern: function setup() { ... angleMode(DEGREES); } function draw() { ... drawBr…

---

## [Help creating a constellation!](https://discourse.processing.org/t/help-creating-a-constellation/45482)

<div class="topic-metadata">

**Author:** [@Sorayamasd](https://discourse.processing.org/u/Sorayamasd)\
**Replies:** 1\
**Last updated:** [December 18, 2024, 1:06pm UTC](https://discourse.processing.org/t/help-creating-a-constellation/45482 "2024-12-18T13:06:02Z")

</div>

Hello! I work on processing and i would like to do an interactive constelation or astrology chart, i have a reference photo, my idea is that it completes itselfs in the inside with a interaction, it could be audio recati…

---

## [Particles processing](https://discourse.processing.org/t/particles-processing/45483)

<div class="topic-metadata">

**Author:** [@Sorayamasd](https://discourse.processing.org/u/Sorayamasd)\
**Replies:** 1\
**Last updated:** [December 18, 2024, 12:55pm UTC](https://discourse.processing.org/t/particles-processing/45483 "2024-12-18T12:55:32Z")

</div>

Ive seen and modifies this code but i cant make it to do what i want, i want that every time that the mouse is pressed the colors black and wite are inverted: import ddf.minim.\*; Minim minim; AudioInput mic; int n = …

[Previous page](https://discourse.processing.org/latest.md?page=27)

[Next page](https://discourse.processing.org/latest.md?page=29)
