# Latest

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

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

**Page:** 244

---

## [createShader() not working on p5.Graphics](https://discourse.processing.org/t/createshader-not-working-on-p5-graphics/28617)

<div class="topic-metadata">

**Author:** [@duskvirkus](https://discourse.processing.org/u/duskvirkus)\
**Replies:** 4\
**Last updated:** [March 17, 2021, 11:19pm UTC](https://discourse.processing.org/t/createshader-not-working-on-p5-graphics/28617 "2021-03-17T23:19:07Z")

</div>

Not sure if this is a bug but when I try to use createShader() instead of loadShader() it doesn’t work on a p5.Graphics object. Figured I’d post here before creating an issue in case I’m doing something wrong. Below is…

---

## [Problem with splitTokens?!](https://discourse.processing.org/t/problem-with-splittokens/28612)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 8\
**Last updated:** [March 17, 2021, 10:38pm UTC](https://discourse.processing.org/t/problem-with-splittokens/28612 "2021-03-17T22:38:05Z")

</div>

Hello, Here is a short code below to count words and more, but I face a strange problem: when I run it some words of the original string don’t appear on the screen!? How come? Did I forgot something using splitTokens …

---

## [Removing PImage mask](https://discourse.processing.org/t/removing-pimage-mask/28620)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 10:33pm UTC](https://discourse.processing.org/t/removing-pimage-mask/28620 "2021-03-17T22:33:03Z")

</div>

Hi ! I wonder if there is a way to remove the alpha mask of a PImage (applied with the PImage.mask() command) or if I just have to apply an int array full of 255…

---

## [Choppy animation when screen sharing over Zoom](https://discourse.processing.org/t/choppy-animation-when-screen-sharing-over-zoom/28619)

<div class="topic-metadata">

**Author:** [@jackeddielove](https://discourse.processing.org/u/jackeddielove)\
**Replies:** 4\
**Last updated:** [March 17, 2021, 9:39pm UTC](https://discourse.processing.org/t/choppy-animation-when-screen-sharing-over-zoom/28619 "2021-03-17T21:39:56Z")

</div>

When I share my screen on a Zoom (or similar) call, the animation is choppy on their end but is running smoothly on my screen. Is this a known issue? Is there a fix?

---

## [Gui library for android](https://discourse.processing.org/t/gui-library-for-android/28177)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [March 17, 2021, 7:28pm UTC](https://discourse.processing.org/t/gui-library-for-android/28177 "2021-03-17T19:28:17Z")

</div>

Here is an attempt at a gui library for android. the following are some of the features currently introduced. Menu (foldable and static) with submenus, Sliderboxes, individual sliders, draggable tabs,with scrollable wi…

---

## [Array causing NullPointerException error?](https://discourse.processing.org/t/array-causing-nullpointerexception-error/28614)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 1\
**Last updated:** [March 17, 2021, 4:45pm UTC](https://discourse.processing.org/t/array-causing-nullpointerexception-error/28614 "2021-03-17T16:45:41Z")

</div>

Hello everyone! Today, I’ve decided to start working on my game. I had some old code for player movement that I wanted to see if I could port over, and here it is. Unfortunately, it keeps throwing me a ‘NullPointerExcept…

---

## [Serial port left open when sketch program closed](https://discourse.processing.org/t/serial-port-left-open-when-sketch-program-closed/28592)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 11:35am UTC](https://discourse.processing.org/t/serial-port-left-open-when-sketch-program-closed/28592 "2021-03-17T11:35:45Z")

</div>

Serial port opened by sketch is left open . When I try to run sketch again it fails with port busy try - catch exception doesn’t work on re running program to close open port then reopen. Is there a way , other than re…

---

## [How to align an ellipse to an arc that is mapped to time/hours? (Creating a sundial clock)](https://discourse.processing.org/t/how-to-align-an-ellipse-to-an-arc-that-is-mapped-to-time-hours-creating-a-sundial-clock/28596)

<div class="topic-metadata">

**Author:** [@keira](https://discourse.processing.org/u/keira)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 9:43am UTC](https://discourse.processing.org/t/how-to-align-an-ellipse-to-an-arc-that-is-mapped-to-time-hours-creating-a-sundial-clock/28596 "2021-03-17T09:43:26Z")

</div>

Hello! I’m trying to create a clock inspired by sundials. I have created an arc that is mapped to the current hour and an ellipse. I want the ellipse to line up with the end of the arc so that when the hour changes it mo…

---

## [P5.js to Processing - How did I do? Are there better/more efficient methods?](https://discourse.processing.org/t/p5-js-to-processing-how-did-i-do-are-there-better-more-efficient-methods/28594)

<div class="topic-metadata">

**Author:** [@leatherbird](https://discourse.processing.org/u/leatherbird)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 2:50am UTC](https://discourse.processing.org/t/p5-js-to-processing-how-did-i-do-are-there-better-more-efficient-methods/28594 "2021-03-17T02:50:28Z")

</div>

Hello! I found this tutorial video online for creating Sine wave structures in p5.js I don’t really know p5 very well, but I thought I would follow along, and try to do everything in the video with Processing instead. …

---

## [Assigning function to a variable](https://discourse.processing.org/t/assigning-function-to-a-variable/28563)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 8\
**Last updated:** [March 17, 2021, 1:13am UTC](https://discourse.processing.org/t/assigning-function-to-a-variable/28563 "2021-03-17T01:13:13Z")

</div>

Hello everybody! I’m a beginner at processing (but I have some experience with p5js and PJs). I’m trying to find a way to assign a function to a variable. Essentially, I want to be able to set a function to a separate v…

---

## [Processing display window looks pixelated on macOS Catalina](https://discourse.processing.org/t/processing-display-window-looks-pixelated-on-macos-catalina/28597)

<div class="topic-metadata">

**Author:** [@Lp0101](https://discourse.processing.org/u/Lp0101)\
**Replies:** 3\
**Last updated:** [March 16, 2021, 11:30pm UTC](https://discourse.processing.org/t/processing-display-window-looks-pixelated-on-macos-catalina/28597 "2021-03-16T23:30:32Z")

</div>

Hey guys! So this weird started happening after I upgraded to Catalina where the display window in Processing started to look pixelated. It happens with all 2D and 3D sketches. I checked with p5.js to see if I was going …

---

## [Model Rotation: Automatic & Mouse Mapped Issue](https://discourse.processing.org/t/model-rotation-automatic-mouse-mapped-issue/28561)

<div class="topic-metadata">

**Author:** [@cob](https://discourse.processing.org/u/cob)\
**Replies:** 1\
**Last updated:** [March 16, 2021, 11:09pm UTC](https://discourse.processing.org/t/model-rotation-automatic-mouse-mapped-issue/28561 "2021-03-16T23:09:38Z")

</div>

Hello, I’m creating an interactive animation for a friend which moves a model with mouseX & mouseY as well as has automatic movement if the cursor is off the canvas. However when off the canvas, there is no continuity be…

---

## [Just for fun boysss](https://discourse.processing.org/t/just-for-fun-boysss/28586)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 1\
**Last updated:** [March 16, 2021, 5:46pm UTC](https://discourse.processing.org/t/just-for-fun-boysss/28586 "2021-03-16T17:46:56Z")

</div>

Would anyone like to develop a little game with me?

---

## [Can I use the for loop to write 9 rows at the time?](https://discourse.processing.org/t/can-i-use-the-for-loop-to-write-9-rows-at-the-time/28553)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 6\
**Last updated:** [March 16, 2021, 5:35pm UTC](https://discourse.processing.org/t/can-i-use-the-for-loop-to-write-9-rows-at-the-time/28553 "2021-03-16T17:35:39Z")

</div>

I am writing to CSV and it goes well, but there is a lot of data I need to generated. So I tried the for loop. But it writes and overwrites on the same first row instead of giving me 9 rows populated with individual da…

---

## [Help with genius game create](https://discourse.processing.org/t/help-with-genius-game-create/28583)

<div class="topic-metadata">

**Author:** [@Leommoraes](https://discourse.processing.org/u/Leommoraes)\
**Replies:** 1\
**Last updated:** [March 16, 2021, 5:03pm UTC](https://discourse.processing.org/t/help-with-genius-game-create/28583 "2021-03-16T17:03:54Z")

</div>

Hi guys, i need to create a game like “genius game”, create a sequence of colors and making levels, for advance a level, the user needs to insert the colors blink in sequence, just like a genius game, can we help me? thi…

---

## [Getting ready for GSoC 2021](https://discourse.processing.org/t/getting-ready-for-gsoc-2021/28581)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 0\
**Last updated:** [March 16, 2021, 4:16pm UTC](https://discourse.processing.org/t/getting-ready-for-gsoc-2021/28581 "2021-03-16T16:16:54Z")

</div>

Hi everyone, We are getting ready for GSoC 2021. The Project List is being updated and should be ready soon. Also keep in mind that there are some updates to the program. Hope that answers some of your questions. Smal…

---

## [Processing Community Day 2021?](https://discourse.processing.org/t/processing-community-day-2021/27934)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 2\
**Last updated:** [March 16, 2021, 4:09pm UTC](https://discourse.processing.org/t/processing-community-day-2021/27934 "2021-03-16T16:09:09Z")

</div>

Hi there, Wondering if you or your collaborators are planning on organizing a Processing Community Day this year. If so I would love to be in touch. You can respond here or email me at saber@processing.org. Thanks, Sa…

---

## [How to Unpause a sound file?](https://discourse.processing.org/t/how-to-unpause-a-sound-file/28565)

<div class="topic-metadata">

**Author:** [@DhawanGupta](https://discourse.processing.org/u/DhawanGupta)\
**Replies:** 3\
**Last updated:** [March 16, 2021, 3:35pm UTC](https://discourse.processing.org/t/how-to-unpause-a-sound-file/28565 "2021-03-16T15:35:12Z")

</div>

There is a function to pause a playing sound file. But, how to unpause it? Whenever I try to play it after pausing, it plays from the beginning, instead from where I paused it, contrary to reference document of pause()…

---

## [ArrayDeque iterator throws "Concurrent Modification Exception"](https://discourse.processing.org/t/arraydeque-iterator-throws-concurrent-modification-exception/28055)

<div class="topic-metadata">

**Author:** [@mxa](https://discourse.processing.org/u/mxa)\
**Replies:** 4\
**Last updated:** [March 16, 2021, 2:23pm UTC](https://discourse.processing.org/t/arraydeque-iterator-throws-concurrent-modification-exception/28055 "2021-03-16T14:23:43Z")

</div>

I’m sending values from another application (Pure Data) to Processing via OSC. That data is then visualized in Processing by scrolling by bars like a waveform using an ArrayDeque. It seems to run fine, except after a few…

---

## [Moving the circle in the direction of another circle revolving around it in canvas](https://discourse.processing.org/t/moving-the-circle-in-the-direction-of-another-circle-revolving-around-it-in-canvas/28569)

<div class="topic-metadata">

**Author:** [@harsha](https://discourse.processing.org/u/harsha)\
**Replies:** 2\
**Last updated:** [March 16, 2021, 1:38pm UTC](https://discourse.processing.org/t/moving-the-circle-in-the-direction-of-another-circle-revolving-around-it-in-canvas/28569 "2021-03-16T13:38:07Z")

</div>

I have a problem of moving the big circle in the direction of small circle when a button is pressed. can anyone help? Goals: Make a circle on canvas \[Done\] Draw a small circle that rotates around the big circle \[Done\] …

---

## [How do I change the random color for each petal of the flower?](https://discourse.processing.org/t/how-do-i-change-the-random-color-for-each-petal-of-the-flower/28084)

<div class="topic-metadata">

**Author:** [@batmm](https://discourse.processing.org/u/batmm)\
**Replies:** 8\
**Last updated:** [March 16, 2021, 8:27am UTC](https://discourse.processing.org/t/how-do-i-change-the-random-color-for-each-petal-of-the-flower/28084 "2021-03-16T08:27:37Z")

</div>

please format code with \</\> button \* homework policy \* asking questions //The constants needed in the equations for the “rose” final float K = 4; //The factor that controls the number of “petals” final float RATE =…

---

## [How do i make this spiral line change gradient colors?](https://discourse.processing.org/t/how-do-i-make-this-spiral-line-change-gradient-colors/28552)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 5\
**Last updated:** [March 15, 2021, 11:53pm UTC](https://discourse.processing.org/t/how-do-i-make-this-spiral-line-change-gradient-colors/28552 "2021-03-15T23:53:30Z")

</div>

can someone help me with this please?

---

## [A simple data split , what am I doing wrong?](https://discourse.processing.org/t/a-simple-data-split-what-am-i-doing-wrong/28551)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 9:02pm UTC](https://discourse.processing.org/t/a-simple-data-split-what-am-i-doing-wrong/28551 "2021-03-15T21:02:48Z")

</div>

I am receiving a 2 value string from an arduino delimited by a space. if(serialConnect) { if (myPort.available() \> 0) { IncomingSTR = myPort.readStringUntil(lf); //println (IncomingStr); if (IncomingSTR !=…

---

## [How to control saved image resolution? // get() and save()](https://discourse.processing.org/t/how-to-control-saved-image-resolution-get-and-save/28550)

<div class="topic-metadata">

**Author:** [@tobo](https://discourse.processing.org/u/tobo)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 8:37pm UTC](https://discourse.processing.org/t/how-to-control-saved-image-resolution-get-and-save/28550 "2021-03-15T20:37:45Z")

</div>

I’m trying to save a single image frame from a p5 webgl canvas to a variable. I used the second line of code below just to see the image for myself, as a reference. I noticed that the image it produces is exactly my defi…

---

## [Checkbox listener index](https://discourse.processing.org/t/checkbox-listener-index/28529)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 6\
**Last updated:** [March 15, 2021, 5:12pm UTC](https://discourse.processing.org/t/checkbox-listener-index/28529 "2021-03-15T17:12:14Z")

</div>

I have an array of checkboxes and I need to know which checkbox was pressed. My code looks like this: uiToogles() { var y = 0; checkbox = \[8\]; for (var x = 0; x \< 8; x++) { y = x \* 20; checkbox\[x…

---

## [Pass JVM args to exported Windows exe](https://discourse.processing.org/t/pass-jvm-args-to-exported-windows-exe/28546)

<div class="topic-metadata">

**Author:** [@onimatrix](https://discourse.processing.org/u/onimatrix)\
**Replies:** 0\
**Last updated:** [March 15, 2021, 3:23pm UTC](https://discourse.processing.org/t/pass-jvm-args-to-exported-windows-exe/28546 "2021-03-15T15:23:50Z")

</div>

Hello community! I’m working on a tool that’s meant to be as user friendly as possible. It also needs a big chunk of memory. I want to pass Xms and Xmx arguments to the JVM when the user runs the executable (and it ha…

---

## [Chessboard with array pixels](https://discourse.processing.org/t/chessboard-with-array-pixels/28477)

<div class="topic-metadata">

**Author:** [@S1993](https://discourse.processing.org/u/S1993)\
**Replies:** 12\
**Last updated:** [March 15, 2021, 2:40pm UTC](https://discourse.processing.org/t/chessboard-with-array-pixels/28477 "2021-03-15T14:40:05Z")

</div>

I need to code a chessboard making use of array pixels. I can’t use the function rect. I don’t know how to do it. I would appreciate it if you can help me. Thanks.

---

## [How can I make a rectangular collision of an image?](https://discourse.processing.org/t/how-can-i-make-a-rectangular-collision-of-an-image/28538)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 11:53am UTC](https://discourse.processing.org/t/how-can-i-make-a-rectangular-collision-of-an-image/28538 "2021-03-15T11:53:43Z")

</div>

I am having trouble with making an image collide with something The image i use: https://drive.google.com/file/d/1yGA6DMe9KDWJG15VfWLT1DlvyNVDuhCg/view The code: Ship Ship; Obstacles Obstacles; //KeyBinds Keys; PI…

---

## [Texture on hexagon](https://discourse.processing.org/t/texture-on-hexagon/28534)

<div class="topic-metadata">

**Author:** [@Theodor](https://discourse.processing.org/u/Theodor)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 11:39am UTC](https://discourse.processing.org/t/texture-on-hexagon/28534 "2021-03-15T11:39:59Z")

</div>

Hallo I am new in this forum and just started with processing. I would like to paint my 3d hexagon with an image (texture). How can I place a texture on a hexagon? The jpg it self is a rectangular format and I would like…

---

## [Reconfigure - the canvas](https://discourse.processing.org/t/reconfigure-the-canvas/28541)

<div class="topic-metadata">

**Author:** [@Apollo](https://discourse.processing.org/u/Apollo)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 11:34am UTC](https://discourse.processing.org/t/reconfigure-the-canvas/28541 "2021-03-15T11:34:14Z")

</div>

Hi! I hope you could help me here. I got this code. void setup() { size(500, 500); noStroke(); } void draw() { background(0); fill(0,200,0); int t = 0; float z = map(millis(), 0, 20000, 0, 400); for ( i…

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

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