# Processing

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

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

**Page:** 14

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Building a tape spaghetti simulation](https://discourse.processing.org/t/building-a-tape-spaghetti-simulation/45461)

<div class="topic-metadata">

**Author:** [@eightohnine](https://discourse.processing.org/u/eightohnine)\
**Replies:** 18\
**Last updated:** [December 17, 2024, 6:01am UTC](https://discourse.processing.org/t/building-a-tape-spaghetti-simulation/45461 "2024-12-17T06:01:13Z")

</div>

Hi all, In the middle of a recent Youtube rabbit hole, inspiration struck. The best description I can come up with for what we’re seeing is “writhing tape spaghetti”. I now want to recreate this in code. Watch it in…

---

## [Trying to make an array of 'positions' draw from an array of images at random](https://discourse.processing.org/t/trying-to-make-an-array-of-positions-draw-from-an-array-of-images-at-random/45467)

<div class="topic-metadata">

**Author:** [@WarMomPT](https://discourse.processing.org/u/WarMomPT)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 3:21pm UTC](https://discourse.processing.org/t/trying-to-make-an-array-of-positions-draw-from-an-array-of-images-at-random/45467 "2024-12-16T15:21:59Z")

</div>

I’m really struggling with something that I think has got to be obvious. In a sketch I’m making, once you click in a certain area, 20 PNGs will fall down the screen, from random starting positions along the X axis, going…

---

## [I Can't use Webcam](https://discourse.processing.org/t/i-cant-use-webcam/45457)

<div class="topic-metadata">

**Author:** [@gayungkim9088](https://discourse.processing.org/u/gayungkim9088)\
**Replies:** 1\
**Last updated:** [December 14, 2024, 4:34am UTC](https://discourse.processing.org/t/i-cant-use-webcam/45457 "2024-12-14T04:34:48Z")

</div>

Hello, everyone. First of all, please understand that I am not good at English. I’m trying to use my webcam, but processing doesn’t recognize it. It works with Windows Camera. This is the webcam you connect to using use…

---

## [Why is square(x, y, 1) so much faster than point(x, y)?](https://discourse.processing.org/t/why-is-square-x-y-1-so-much-faster-than-point-x-y/45448)

<div class="topic-metadata">

**Author:** [@DevaPan](https://discourse.processing.org/u/DevaPan)\
**Replies:** 4\
**Last updated:** [December 13, 2024, 1:59pm UTC](https://discourse.processing.org/t/why-is-square-x-y-1-so-much-faster-than-point-x-y/45448 "2024-12-13T13:59:24Z")

</div>

Anyone knows? I’ve found about it by accident and it doesn’t make much sense to me. Details: stroke(someColor); point(x, y); vs. noStroke(); fill(someColor); square(x, y, 1); the second one is consistently about 3…

---

## [How to send email through Processing?](https://discourse.processing.org/t/how-to-send-email-through-processing/6128)

<div class="topic-metadata">

**Author:** [@stevenette](https://discourse.processing.org/u/stevenette)\
**Replies:** 8\
**Last updated:** [December 12, 2024, 12:38am UTC](https://discourse.processing.org/t/how-to-send-email-through-processing/6128 "2024-12-12T00:38:40Z")

</div>

Hello, I have a sketch that I have a bunch of error checking in, and if a flag is set, I want to be notified via email. I have searched for a while, and every link comes up dead from 2016 and before. I have not found an…

---

## [Serious Error when opening sketch](https://discourse.processing.org/t/serious-error-when-opening-sketch/44928)

<div class="topic-metadata">

**Author:** [@repeat](https://discourse.processing.org/u/repeat)\
**Replies:** 3\
**Last updated:** [December 11, 2024, 5:58pm UTC](https://discourse.processing.org/t/serious-error-when-opening-sketch/44928 "2024-12-11T17:58:39Z")

</div>

I wrote a sketch. Saved it is a different folder that is not the default. Tried to open it again … serious error (see image). A second try to open file produced the same error message. I opened the file with a text edi…

---

## [REPL mode in P4](https://discourse.processing.org/t/repl-mode-in-p4/45362)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 1:40pm UTC](https://discourse.processing.org/t/repl-mode-in-p4/45362 "2024-12-11T13:40:40Z")

</div>

Hi, I’m trying to use Repl mode with P4. I can create a window with the size I want but I soon I try to code a Processing function like rect(20, 20, 100, 100); I’ve got this error : HOTSWAP AGENT: 11:21:18.897 ERROR (…

---

## [Adding a svg image to a box side](https://discourse.processing.org/t/adding-a-svg-image-to-a-box-side/25321)

<div class="topic-metadata">

**Author:** [@raboytniksings](https://discourse.processing.org/u/raboytniksings)\
**Replies:** 5\
**Last updated:** [December 6, 2024, 3:04pm UTC](https://discourse.processing.org/t/adding-a-svg-image-to-a-box-side/25321 "2024-12-06T15:04:34Z")

</div>

I am using 3D and have created a chessboard made of 64 box(). So far so good (the full code is very long, it is very hard for me to create a MWE). Now, I am too lazy to create a 3D chess set, and I am tempted to use lich…

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

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