# Processing

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

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

**Page:** 36

---

## [Movie pause and loop triggered by amplitude instead of mousePressed](https://discourse.processing.org/t/movie-pause-and-loop-triggered-by-amplitude-instead-of-mousepressed/42439)

<div class="topic-metadata">

**Author:** [@blindschleiche](https://discourse.processing.org/u/blindschleiche)\
**Replies:** 18\
**Last updated:** [July 30, 2023, 5:14pm UTC](https://discourse.processing.org/t/movie-pause-and-loop-triggered-by-amplitude-instead-of-mousepressed/42439 "2023-07-30T17:14:01Z")

</div>

the idea is, that the movie should show in a paused situation. when there is some noise recognised by the microphone, the movie should play and a red line shows up in front of the movie. as soon as there is no more noise…

---

## [Why circle disappears at y-coordinates ~ 250](https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256)

<div class="topic-metadata">

**Author:** [@helpME0](https://discourse.processing.org/u/helpME0)\
**Replies:** 2\
**Last updated:** [July 30, 2023, 12:38pm UTC](https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256 "2023-07-30T12:38:41Z")

</div>

void setup() { size(500,500); background(0); } void draw() { loop(); float y=500+(-90\*millis()/1000+(10\*millis()\*millis()/2/1000000)); float D=25; float x = 0+15\*millis()/1000; float yc = y; float xc…

---

## [Proximity Data Visualization Arduino-Processing. Running into issue with for loop visualization, layout of Processing sketch](https://discourse.processing.org/t/proximity-data-visualization-arduino-processing-running-into-issue-with-for-loop-visualization-layout-of-processing-sketch/42296)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 7\
**Last updated:** [July 30, 2023, 3:10pm UTC](https://discourse.processing.org/t/proximity-data-visualization-arduino-processing-running-into-issue-with-for-loop-visualization-layout-of-processing-sketch/42296 "2023-07-30T15:10:52Z")

</div>

Hi, running into an issue here that seems related to the for loop section of my processing sketch. My aim is to re-draw the loaded image as a grid of ellipses, using .get. The Distance sensor reading from arduino, (myDi…

---

## [Changing font text with mouse position in Processing](https://discourse.processing.org/t/changing-font-text-with-mouse-position-in-processing/42499)

<div class="topic-metadata">

**Author:** [@juuhlbs](https://discourse.processing.org/u/juuhlbs)\
**Replies:** 6\
**Last updated:** [July 30, 2023, 12:19pm UTC](https://discourse.processing.org/t/changing-font-text-with-mouse-position-in-processing/42499 "2023-07-30T12:19:25Z")

</div>

Hello guys, I’m trying to create something relatively simple based on some studies that I made but now I’m facing an issue I don’t know enough about to solve. My idea is to change the font from light to regular and the…

---

## [Where can i submit ideas? Feature Requests?](https://discourse.processing.org/t/where-can-i-submit-ideas-feature-requests/42517)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 1\
**Last updated:** [July 30, 2023, 9:19am UTC](https://discourse.processing.org/t/where-can-i-submit-ideas-feature-requests/42517 "2023-07-30T09:19:00Z")

</div>

It would be great if there was a way to create a java server :frowning: i just cant get it to work and i wanted to submit a request for a built in function that lets someone create servers and use. (minecraft has a open…

---

## [Processing 4.3 is out! ✨](https://discourse.processing.org/t/processing-4-3-is-out/42509)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 3\
**Last updated:** [July 28, 2023, 12:03pm UTC](https://discourse.processing.org/t/processing-4-3-is-out/42509 "2023-07-28T12:03:46Z")

</div>

Hi everyone! Processing 4.3 was just released. We’ve revamped icons to avoid confusion with VSCode, made design & dark mode tweaks, and enhanced text centering. Plus, Java update & critical bug fixes, including syntax e…

---

## [Can you make the window title smaller?](https://discourse.processing.org/t/can-you-make-the-window-title-smaller/42511)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 10:17pm UTC](https://discourse.processing.org/t/can-you-make-the-window-title-smaller/42511 "2023-07-27T22:17:47Z")

</div>

Is it possible to make the window title thing smaller? Like this! So the title is thinner than a normal window!

---

## [Draw a PShape from a PShape array](https://discourse.processing.org/t/draw-a-pshape-from-a-pshape-array/42473)

<div class="topic-metadata">

**Author:** [@eliamedeot](https://discourse.processing.org/u/eliamedeot)\
**Replies:** 8\
**Last updated:** [July 27, 2023, 12:06pm UTC](https://discourse.processing.org/t/draw-a-pshape-from-a-pshape-array/42473 "2023-07-27T12:06:51Z")

</div>

Hello, I’m getting a “NullPointerException” trying to draw a PShape from an array of the same type. This is the code snippet: PShape s10, s15, s20, s25, s30, s35, s40, s45, s50; PShape\[\]\[\] grid = { {s50, s50, s50, s…

---

## [Sample from a distribution](https://discourse.processing.org/t/sample-from-a-distribution/42503)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 1\
**Last updated:** [July 26, 2023, 3:39pm UTC](https://discourse.processing.org/t/sample-from-a-distribution/42503 "2023-07-26T15:39:24Z")

</div>

Hi all, just a quick question: Say I have this array: float\[\] probs = new float\[\] {0.2, 0.5, 0.3}; How do I sample from this array of probabilities to get an index? Like if say the first element with a probability of …

---

## [Code not drawing](https://discourse.processing.org/t/code-not-drawing/42498)

<div class="topic-metadata">

**Author:** [@Rbu](https://discourse.processing.org/u/Rbu)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 10:41am UTC](https://discourse.processing.org/t/code-not-drawing/42498 "2023-07-26T10:41:58Z")

</div>

So I am new and struggling i have a code that shows no errors but i not getting the desired results can some one help. PShape svg; float angle = 0; float radius = 10; float frequency = 0.1; void setup() { size(800, …

---

## [Speech Recognition (STT) with Minim library](https://discourse.processing.org/t/speech-recognition-stt-with-minim-library/42464)

<div class="topic-metadata">

**Author:** [@glomb](https://discourse.processing.org/u/glomb)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 9:58pm UTC](https://discourse.processing.org/t/speech-recognition-stt-with-minim-library/42464 "2023-07-25T21:58:26Z")

</div>

Hi, I need a speech recognition system (speech to text) using Processing’s Minim library. I hope you can help me, Thanks

---

## [Setting display to secondary display via preferences has no effect? Bug?](https://discourse.processing.org/t/setting-display-to-secondary-display-via-preferences-has-no-effect-bug/42495)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 0\
**Last updated:** [July 25, 2023, 4:51pm UTC](https://discourse.processing.org/t/setting-display-to-secondary-display-via-preferences-has-no-effect-bug/42495 "2023-07-25T16:51:17Z")

</div>

I’m on a Macbook Pro Ventura 13.4.1, hooked up to a secondary display (Dell U2412M) via HDMI, with the Built In Display set as the Main Display in my system settings. Running P4. I am trying to get sketches to display …

---

## [How to open window maximised?](https://discourse.processing.org/t/how-to-open-window-maximised/42450)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 4\
**Last updated:** [July 24, 2023, 5:19am UTC](https://discourse.processing.org/t/how-to-open-window-maximised/42450 "2023-07-24T05:19:54Z")

</div>

Hi, I want to know how to open the window maximised. Either it would open already maximised, or I could maximise it immediately after it opens. I have the following code from a stackoverflow answer: com.jogamp.newt.open…

---

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

<div class="topic-metadata">

**Author:** [@olliebown](https://discourse.processing.org/u/olliebown)\
**Replies:** 7\
**Last updated:** [July 23, 2023, 11:16pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize/42448 "2023-07-23T23:16:43Z")

</div>

I’m getting an error “Could not run the sketch (Target VM failed to initialize).” This error suddenly appeared from one minute to the next. I thought it was to do with my code but after working though every possibility …

---

## [Wide shape is not drawn from corner, but tall shape is](https://discourse.processing.org/t/wide-shape-is-not-drawn-from-corner-but-tall-shape-is/42475)

<div class="topic-metadata">

**Author:** [@User442B](https://discourse.processing.org/u/User442B)\
**Replies:** 0\
**Last updated:** [July 22, 2023, 4:25pm UTC](https://discourse.processing.org/t/wide-shape-is-not-drawn-from-corner-but-tall-shape-is/42475 "2023-07-22T16:25:55Z")

</div>

color black = color(36,39,45); color green = color(141,187,110); PShape rec; void setup(){ size(1600,900,P2D); smooth(8); background(black); frameRate(60); rec = loadShape("wideRec.svg"); } void draw(){ …

---

## [Presentation mode issue](https://discourse.processing.org/t/presentation-mode-issue/42461)

<div class="topic-metadata">

**Author:** [@GSA\_IxD](https://discourse.processing.org/u/GSA_IxD)\
**Replies:** 0\
**Last updated:** [July 20, 2023, 3:39pm UTC](https://discourse.processing.org/t/presentation-mode-issue/42461 "2023-07-20T15:39:18Z")

</div>

I have an issue (Processing 4.1.2 MacOS Big Sur Intel 64 bit) in that when I Export Application – even if I uncheck the Presentation Mode checkbox and compile the application runs fullscreen. I want it in a 800 x 800 win…

---

## [How do I install a Processing-made app on Linux?](https://discourse.processing.org/t/how-do-i-install-a-processing-made-app-on-linux/42352)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 3:46am UTC](https://discourse.processing.org/t/how-do-i-install-a-processing-made-app-on-linux/42352 "2023-07-18T03:46:51Z")

</div>

In the exported folder there is “lib” “config” and the file “apiGen16x16” (its a link maker for the webpage https://verumignis.com/bitmapgen/ where u can make small images) Its just a plain text file and i tried “bash -…

---

## [Fullscreen does not cover entire screen using P2D](https://discourse.processing.org/t/fullscreen-does-not-cover-entire-screen-using-p2d/42449)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 5:01am UTC](https://discourse.processing.org/t/fullscreen-does-not-cover-entire-screen-using-p2d/42449 "2023-07-19T05:01:42Z")

</div>

Hi, I’m trying to use the fullscreen() function. But, with the P2D argument it acts strangely by not covering the entire screen. I’ve seen this is usually due to the windows magnification settings, which mine is set to 1…

---

## [Program for a museum using video and sound library](https://discourse.processing.org/t/program-for-a-museum-using-video-and-sound-library/42406)

<div class="topic-metadata">

**Author:** [@rociodp](https://discourse.processing.org/u/rociodp)\
**Replies:** 9\
**Last updated:** [July 18, 2023, 10:20pm UTC](https://discourse.processing.org/t/program-for-a-museum-using-video-and-sound-library/42406 "2023-07-18T22:20:56Z")

</div>

Hello forum :slight\_smile: . I have a problem with the program I’m developing. I’m a beginner in processing, and I’m working on an interactive program for a museum exhibition. It contains an array of approximately 20 vi…

---

## [Why does my code give NullPointerException error?](https://discourse.processing.org/t/why-does-my-code-give-nullpointerexception-error/42415)

<div class="topic-metadata">

**Author:** [@prathmesh](https://discourse.processing.org/u/prathmesh)\
**Replies:** 10\
**Last updated:** [July 18, 2023, 4:15am UTC](https://discourse.processing.org/t/why-does-my-code-give-nullpointerexception-error/42415 "2023-07-18T04:15:59Z")

</div>

Namaste all, Why does the floowing code give a null point exception error? Processing highlights the line where I have called the line function. This is a p5js code which I am trying to recreate in processing. Thanks. …

---

## [Strategy for drawing a million objects/rectangles?](https://discourse.processing.org/t/strategy-for-drawing-a-million-objects-rectangles/42419)

<div class="topic-metadata">

**Author:** [@cch](https://discourse.processing.org/u/cch)\
**Replies:** 6\
**Last updated:** [July 17, 2023, 7:29am UTC](https://discourse.processing.org/t/strategy-for-drawing-a-million-objects-rectangles/42419 "2023-07-17T07:29:34Z")

</div>

hi all, i’m returning to Processing after a few years absence, using 4.2 IDE. i need to draw a million rectangles in 3d space, each with a new position every frame (think floating pixels) but frameRate on my mac is slowi…

---

## [Loading 2D array of Strings in setup returns null](https://discourse.processing.org/t/loading-2d-array-of-strings-in-setup-returns-null/42434)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 3\
**Last updated:** [July 17, 2023, 10:11am UTC](https://discourse.processing.org/t/loading-2d-array-of-strings-in-setup-returns-null/42434 "2023-07-17T10:11:18Z")

</div>

Hello, I’m working on a sketch where at some point I want to load a 2D String array with randomly generated ‘words’ (which are randomly generated strings of chars). I want to pass these on to an Object and reference and…

---

## [Need urgent help with Art-Net library](https://discourse.processing.org/t/need-urgent-help-with-art-net-library/42410)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 4\
**Last updated:** [July 16, 2023, 8:05pm UTC](https://discourse.processing.org/t/need-urgent-help-with-art-net-library/42410 "2023-07-16T20:05:41Z")

</div>

Hey all, I am a long time Processing user and am trying something that’s new for me. Unfortunately, it envolves a lot of stuff i’m still confused about. mainly, networks etc. Here is what I am trying to do: I am a f…

---

## [What can you create in Processing?](https://discourse.processing.org/t/what-can-you-create-in-processing/42386)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 8\
**Last updated:** [July 15, 2023, 1:06pm UTC](https://discourse.processing.org/t/what-can-you-create-in-processing/42386 "2023-07-15T13:06:13Z")

</div>

I have a little experience with some small processing android apps I made and a pc app thats a file system viewer. What else is there to make? Games, software. But how could you make something like a game that’s very c…

---

## [Adding rounded corners to shapes (rectangle, triangle, etc.)](https://discourse.processing.org/t/adding-rounded-corners-to-shapes-rectangle-triangle-etc/42423)

<div class="topic-metadata">

**Author:** [@Janoer](https://discourse.processing.org/u/Janoer)\
**Replies:** 3\
**Last updated:** [July 15, 2023, 12:19pm UTC](https://discourse.processing.org/t/adding-rounded-corners-to-shapes-rectangle-triangle-etc/42423 "2023-07-15T12:19:31Z")

</div>

hello, is it possible if a shape like a rectangle, triangle etc is curved at each end like this?

---

## [Rounded Rectangles in P2D](https://discourse.processing.org/t/rounded-rectangles-in-p2d/42422)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 1\
**Last updated:** [July 15, 2023, 3:07am UTC](https://discourse.processing.org/t/rounded-rectangles-in-p2d/42422 "2023-07-15T03:07:17Z")

</div>

rounded rectangles in p2d are very weird, they arent how they are when used in javafx. void setup() { size(300,300,P2D); } void draw() { background(255); stroke(0); fill(255); rect(width/2-50,height/2-50,100,100,5); }

---

## [Serialization in P4](https://discourse.processing.org/t/serialization-in-p4/42420)

<div class="topic-metadata">

**Author:** [@marek](https://discourse.processing.org/u/marek)\
**Replies:** 7\
**Last updated:** [July 14, 2023, 10:27pm UTC](https://discourse.processing.org/t/serialization-in-p4/42420 "2023-07-14T22:27:37Z")

</div>

I’m trying to use java object serialization in P4 and have a problem. I have a class which implements Serializable, but I get an error on execution of “NotSerializable”. I read somewhere (here?) that a serializable class…

---

## [How do I use Processing code in a different IDE?](https://discourse.processing.org/t/how-do-i-use-processing-code-in-a-different-ide/42403)

<div class="topic-metadata">

**Author:** [@Joseph](https://discourse.processing.org/u/Joseph)\
**Replies:** 7\
**Last updated:** [July 12, 2023, 3:33pm UTC](https://discourse.processing.org/t/how-do-i-use-processing-code-in-a-different-ide/42403 "2023-07-12T15:33:34Z")

</div>

Processing is my first code editor and it was great when I was making small projects, but the more time I put into a project the more I realize I spend most of my time trying to find a single method in my code. So I thin…

---

## [Game Control Plus library on MacBook Pro with M2 chip](https://discourse.processing.org/t/game-control-plus-library-on-macbook-pro-with-m2-chip/42333)

<div class="topic-metadata">

**Author:** [@hi.ke](https://discourse.processing.org/u/hi.ke)\
**Replies:** 3\
**Last updated:** [July 12, 2023, 11:16am UTC](https://discourse.processing.org/t/game-control-plus-library-on-macbook-pro-with-m2-chip/42333 "2023-07-12T11:16:31Z")

</div>

Hey, I’m currently working on a program that uses processings ‘Game Control Plus’ library to enable user-interactions via a PS4/PS5 controller. Recently, I upgraded my hardware to a MacBook Pro with M2 chip. Since then…

---

## [PShape curveVertex() methods not working](https://discourse.processing.org/t/pshape-curvevertex-methods-not-working/42399)

<div class="topic-metadata">

**Author:** [@thigmo](https://discourse.processing.org/u/thigmo)\
**Replies:** 7\
**Last updated:** [July 12, 2023, 10:21am UTC](https://discourse.processing.org/t/pshape-curvevertex-methods-not-working/42399 "2023-07-12T10:21:06Z")

</div>

I’m trying to use the PShape curveVertex() methods and they don’t seem to be working. I’m using Processing V4.2 on a Mac M2 Monterey. Javadocs for PShape indicates support for curveVertex(). I want to keep the PShape in…

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

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