# Latest

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

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

**Page:** 232

---

## [Season of docs-Proposal](https://discourse.processing.org/t/season-of-docs-proposal/29494)

<div class="topic-metadata">

**Author:** [@ananya123](https://discourse.processing.org/u/ananya123)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 2:20pm UTC](https://discourse.processing.org/t/season-of-docs-proposal/29494 "2021-04-19T14:20:00Z")

</div>

Can someone please help me where to submit he proposal for the season of docs 2021.I would find any contact list or communication channel.Please help me with this.

---

## [Optimization of Lissajous table](https://discourse.processing.org/t/optimization-of-lissajous-table/29481)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 6\
**Last updated:** [April 19, 2021, 2:10pm UTC](https://discourse.processing.org/t/optimization-of-lissajous-table/29481 "2021-04-19T14:10:04Z")

</div>

I created code, that animates creation of lissajous table. It works properly, but sometimes, when the first circle travels almost entire lap it slows down dramatically. How can I optimize this code: void calculations() …

---

## [HeatCam examples .... Please help!](https://discourse.processing.org/t/heatcam-examples-please-help/29390)

<div class="topic-metadata">

**Author:** [@SLEE](https://discourse.processing.org/u/SLEE)\
**Replies:** 6\
**Last updated:** [April 19, 2021, 1:57pm UTC](https://discourse.processing.org/t/heatcam-examples-please-help/29390 "2021-04-19T13:57:17Z")

</div>

Hi! I’m the real beginner in this field :frowning: I tried to follow various examples with my Sparkfun parts. And I’m trying to do the example with processing Heatcam. ( Example 4 - Processing Heat Cam) I do everythi…

---

## [How to use an image as a link between different html pages](https://discourse.processing.org/t/how-to-use-an-image-as-a-link-between-different-html-pages/29487)

<div class="topic-metadata">

**Author:** [@juju](https://discourse.processing.org/u/juju)\
**Replies:** 4\
**Last updated:** [April 19, 2021, 11:32am UTC](https://discourse.processing.org/t/how-to-use-an-image-as-a-link-between-different-html-pages/29487 "2021-04-19T11:32:55Z")

</div>

I see you can use createA() in P5 to add hyperlinks on texts, is there anyway to use an image as a hyperlink in P5? please format code with \</\> button \* homework policy \* asking questions

---

## [G4P can't handle multiple opened sketches on my mac](https://discourse.processing.org/t/g4p-cant-handle-multiple-opened-sketches-on-my-mac/29485)

<div class="topic-metadata">

**Author:** [@FedeKrum](https://discourse.processing.org/u/FedeKrum)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 11:23am UTC](https://discourse.processing.org/t/g4p-cant-handle-multiple-opened-sketches-on-my-mac/29485 "2021-04-19T11:23:50Z")

</div>

Hi. If I open 2 sketches in Processing on my mac, “G4P GUI builder” gets confused and if I open it while focused on one project, it may bring the “gui” of the other. This forces me to close all other sketches and try a…

---

## [General wondering about Kinect like devices and clever cameras](https://discourse.processing.org/t/general-wondering-about-kinect-like-devices-and-clever-cameras/29489)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 10:04am UTC](https://discourse.processing.org/t/general-wondering-about-kinect-like-devices-and-clever-cameras/29489 "2021-04-19T10:04:15Z")

</div>

Kinect is (Kinect was !) a great tool to use with Processing for interactive installations, but Microsoft ended it. It is still possible, though, to buy used ones, and they’re even not very expensive. But how is it goin…

---

## [Export with serial () library does not work](https://discourse.processing.org/t/export-with-serial-library-does-not-work/29417)

<div class="topic-metadata">

**Author:** [@Liu.Exit](https://discourse.processing.org/u/Liu.Exit)\
**Replies:** 5\
**Last updated:** [April 19, 2021, 9:40am UTC](https://discourse.processing.org/t/export-with-serial-library-does-not-work/29417 "2021-04-19T09:40:56Z")

</div>

Good morning all, My sketch works fine with IDE but after an export (.exe) the program crashes. (Both x32 and x64.) This only happens when I introduce the SERIAL library. Anyone know why? I am not the only one with th…

---

## [Overwriting pixels\[\] Manually](https://discourse.processing.org/t/overwriting-pixels-manually/29306)

<div class="topic-metadata">

**Author:** [@what42](https://discourse.processing.org/u/what42)\
**Replies:** 3\
**Last updated:** [April 18, 2021, 10:32pm UTC](https://discourse.processing.org/t/overwriting-pixels-manually/29306 "2021-04-18T22:32:06Z")

</div>

I just wanted to know if there’s any way I can bypass loadPixels() and just do pixels = new int \[width \* height\];. I have a function that renders a tilemap to an int array, and load&updatePixels() is slowing it down quit…

---

## [Resize event for sketch without draw() loop](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462)

<div class="topic-metadata">

**Author:** [@TechnicJelle](https://discourse.processing.org/u/TechnicJelle)\
**Replies:** 7\
**Last updated:** [April 18, 2021, 10:05pm UTC](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462 "2021-04-18T22:05:19Z")

</div>

Hi there! A few friends and me have been working on a small spreadsheet-like software program lately and of course, we made it resizeable by using surface.setResizable(true). The thing of this software is that, because…

---

## [Why my Serial Port stays busy?](https://discourse.processing.org/t/why-my-serial-port-stays-busy/15844)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 12\
**Last updated:** [April 18, 2021, 8:22pm UTC](https://discourse.processing.org/t/why-my-serial-port-stays-busy/15844 "2021-04-18T20:22:01Z")

</div>

I am using a Win 10 Surface tablet to display settings of my robot arm. My data stream comes through a HC 06 Arduino BT dongle at 57600 baud, paired with the tablet. It worked fine when the sketches were small but now …

---

## [Not defined issue](https://discourse.processing.org/t/not-defined-issue/29476)

<div class="topic-metadata">

**Author:** [@YenX2](https://discourse.processing.org/u/YenX2)\
**Replies:** 3\
**Last updated:** [April 18, 2021, 8:05pm UTC](https://discourse.processing.org/t/not-defined-issue/29476 "2021-04-18T20:05:53Z")

</div>

Hi, I’ve been trying to figure out how to fix this. I keep getting an error message saying that Particle is not defined. type or paste code here let myParticle= \[\]; let buttonA let buttonH let buttonF let buttonB fu…

---

## [How can I create a sphere (or other shape) with cubes? (3D)](https://discourse.processing.org/t/how-can-i-create-a-sphere-or-other-shape-with-cubes-3d/28047)

<div class="topic-metadata">

**Author:** [@vassilakosaggelos](https://discourse.processing.org/u/vassilakosaggelos)\
**Replies:** 6\
**Last updated:** [April 15, 2021, 7:46pm UTC](https://discourse.processing.org/t/how-can-i-create-a-sphere-or-other-shape-with-cubes-3d/28047 "2021-04-15T19:46:07Z")

</div>

Hi everyone I am new generally in coding ( not only in Processing) so I need your help if you can. What I want to do is to design 10 types of cubes with different color shades ( from white to totally black) without havin…

---

## [Noise examples with JRubyArt](https://discourse.processing.org/t/noise-examples-with-jrubyart/29403)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 5\
**Last updated:** [April 18, 2021, 6:32pm UTC](https://discourse.processing.org/t/noise-examples-with-jrubyart/29403 "2021-04-18T18:32:11Z")

</div>

I have just released a new version of JRubyArt, which uses OpenSimplexNoise2 to implement noise, I was partly persuaded to convert from processing noise implementation (not really Perlin noise) by the work of Etienne Jac…

---

## [Create a new object of a subclass with a String](https://discourse.processing.org/t/create-a-new-object-of-a-subclass-with-a-string/29467)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 2\
**Last updated:** [April 18, 2021, 6:28pm UTC](https://discourse.processing.org/t/create-a-new-object-of-a-subclass-with-a-string/29467 "2021-04-18T18:28:05Z")

</div>

My friend and I are working on a game. There is an abstract item class and some specific items: abstract class Item{ PVector Start; PVector End; float Progress; boolean delete; boolean flammable; int B…

---

## [Java error for Processing.py from command line on MacOS](https://discourse.processing.org/t/java-error-for-processing-py-from-command-line-on-macos/29473)

<div class="topic-metadata">

**Author:** [@bielorusse](https://discourse.processing.org/u/bielorusse)\
**Replies:** 0\
**Last updated:** [April 18, 2021, 5:36pm UTC](https://discourse.processing.org/t/java-error-for-processing-py-from-command-line-on-macos/29473 "2021-04-18T17:36:07Z")

</div>

Hi, I would like to use Processing.py from the command line on a MacOS machine. I followed these “Processing.py from command line” instructions for the installation. It seems I have an issue with the Java installation…

---

## [Use of p5.clear doubts](https://discourse.processing.org/t/use-of-p5-clear-doubts/29404)

<div class="topic-metadata">

**Author:** [@edufissure](https://discourse.processing.org/u/edufissure)\
**Replies:** 4\
**Last updated:** [April 18, 2021, 5:30pm UTC](https://discourse.processing.org/t/use-of-p5-clear-doubts/29404 "2021-04-18T17:30:27Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I have been developing a pacman game using p5.js library. So i face the problem that sometimes the game was going slower,till almost get stopped…

---

## [How can I connect balls to each other with a line?](https://discourse.processing.org/t/how-can-i-connect-balls-to-each-other-with-a-line/29470)

<div class="topic-metadata">

**Author:** [@iox007](https://discourse.processing.org/u/iox007)\
**Replies:** 5\
**Last updated:** [April 18, 2021, 3:33pm UTC](https://discourse.processing.org/t/how-can-i-connect-balls-to-each-other-with-a-line/29470 "2021-04-18T15:33:11Z")

</div>

Im trying to connect the balls to each other by lines but for some reason, im failing at it. What am i doing wrong? int anz = 10; int r = 8; int speed = 3; boolean show = true; float tmp; float…

---

## [Convert from FFT back to audio?](https://discourse.processing.org/t/convert-from-fft-back-to-audio/29461)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 2\
**Last updated:** [April 18, 2021, 3:30pm UTC](https://discourse.processing.org/t/convert-from-fft-back-to-audio/29461 "2021-04-18T15:30:27Z")

</div>

Hello forum. I have used the processing sound library to analyze an audio file and get the sound spectrum in the form of an array of floats. I was wondering if there was a well understood way of converting back to audio…

---

## [We have to claim variables in advance?](https://discourse.processing.org/t/we-have-to-claim-variables-in-advance/29431)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.processing.org/u/turtle)\
**Replies:** 6\
**Last updated:** [April 17, 2021, 6:59pm UTC](https://discourse.processing.org/t/we-have-to-claim-variables-in-advance/29431 "2021-04-17T18:59:43Z")

</div>

Interestingly, if I claim variable like function setup() { createCanvas(100,100); let pg = createGraphics(100,100); // claim variable like this } function draw() { pg.background(100); image(pg, 0, 0); } when …

---

## [Different Colors when using PGraphics](https://discourse.processing.org/t/different-colors-when-using-pgraphics/29458)

<div class="topic-metadata">

**Author:** [@kweso](https://discourse.processing.org/u/kweso)\
**Replies:** 1\
**Last updated:** [April 17, 2021, 6:58pm UTC](https://discourse.processing.org/t/different-colors-when-using-pgraphics/29458 "2021-04-17T18:58:25Z")

</div>

Hey all! could you tell my why I get different colors when drawing to a PGraphic? PGraphics canvas; void setup(){ size(1060,200); colorMode(HSB,360,100,100,100); background(0,0,100); canvas = createGraphic…

---

## [If statement in arrays](https://discourse.processing.org/t/if-statement-in-arrays/29454)

<div class="topic-metadata">

**Author:** [@henryM](https://discourse.processing.org/u/henryM)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 6:38pm UTC](https://discourse.processing.org/t/if-statement-in-arrays/29454 "2021-04-17T18:38:39Z")

</div>

So I am making a prototype for my game to try and demonstrate what I am trying to do. https://editor.p5js.org/henhog123/sketches/B0QwRqpXj In the editor, you can see only one circle moves but I want all the circles to …

---

## [How many ways to make an eraser and how to do that?](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.processing.org/u/turtle)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 5:22pm UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433 "2021-04-17T17:22:54Z")

</div>

I am going to make a sketch board and it needs one eraser, I have made one but it’s not nice enough. Maybe you guys can make some awesome. Looking forward you reply :grinning:.

---

## [Interest to contributing to Processing Foundation's P5.js project through Google Summer of Docs](https://discourse.processing.org/t/interest-to-contributing-to-processing-foundations-p5-js-project-through-google-summer-of-docs/29449)

<div class="topic-metadata">

**Author:** [@cryptochap](https://discourse.processing.org/u/cryptochap)\
**Replies:** 8\
**Last updated:** [April 17, 2021, 4:03pm UTC](https://discourse.processing.org/t/interest-to-contributing-to-processing-foundations-p5-js-project-through-google-summer-of-docs/29449 "2021-04-17T16:03:38Z")

</div>

Good day everyone, I am Samson Olusegun a Google Summer of Docs candidate. After going through the organisation project proposal, I would to love work on " Onboarding New Contributors, Processing Foundation (p5.js)" GSo…

---

## [Cycle Images on Mouse Click P5Js](https://discourse.processing.org/t/cycle-images-on-mouse-click-p5js/29447)

<div class="topic-metadata">

**Author:** [@Wiltraveller](https://discourse.processing.org/u/Wiltraveller)\
**Replies:** 4\
**Last updated:** [April 17, 2021, 3:50pm UTC](https://discourse.processing.org/t/cycle-images-on-mouse-click-p5js/29447 "2021-04-17T15:50:36Z")

</div>

var img1; var img2; var img3; function preload() { img1 = loadImage("bckgrnd.png"); img2 = loadImage("moon.png"); img3 = loadImage("tuktuk2.png"); } function setup() { createCanvas(windowWidth, windowHeight…

---

## [How to resolve the delay after event occurs](https://discourse.processing.org/t/how-to-resolve-the-delay-after-event-occurs/29440)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.processing.org/u/turtle)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 11:14am UTC](https://discourse.processing.org/t/how-to-resolve-the-delay-after-event-occurs/29440 "2021-04-17T11:14:26Z")

</div>

the code as following let bgColor = 200; let div; function setup() { createCanvas(windowWidth, windowHeight); background(bgColor); div = createDiv(); div.style("background","rgb(123, 0, 0, 0.1)"); div.style("…

---

## [Boolean function inside a class not working](https://discourse.processing.org/t/boolean-function-inside-a-class-not-working/29426)

<div class="topic-metadata">

**Author:** [@iudividnal](https://discourse.processing.org/u/iudividnal)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 10:26am UTC](https://discourse.processing.org/t/boolean-function-inside-a-class-not-working/29426 "2021-04-17T10:26:12Z")

</div>

Hey there i was creating an animation for a simple game im working on and run into a problem where my simple boolean function inside a class returns an error “NullPointerException” int randomHue; int rainbowHue; boole…

---

## [Please, help me. API Post method, I want to solve it](https://discourse.processing.org/t/please-help-me-api-post-method-i-want-to-solve-it/29328)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 7:39am UTC](https://discourse.processing.org/t/please-help-me-api-post-method-i-want-to-solve-it/29328 "2021-04-17T07:39:10Z")

</div>

API pdf file : import http.requests.\*; public void setup(){ PostRequest post = new PostRequest("https://getefento.com/"); // api/v2/measurements post.addHeader("Content-Type", "application/json"); post.addHeader…

---

## [Hoemwork - mis-spelled tag?](https://discourse.processing.org/t/hoemwork-mis-spelled-tag/29281)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 3\
**Last updated:** [April 16, 2021, 11:20pm UTC](https://discourse.processing.org/t/hoemwork-mis-spelled-tag/29281 "2021-04-16T23:20:11Z")

</div>

Hoemwork. I guess this is a mis-spelling. There are at least 7 topics with this tag, and it shows in the pull-down tag selector. Could an admin simply delete the tags and that would be the end of it?

---

## [Instantiate one class inside another using a third](https://discourse.processing.org/t/instantiate-one-class-inside-another-using-a-third/29414)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 9\
**Last updated:** [April 16, 2021, 10:24pm UTC](https://discourse.processing.org/t/instantiate-one-class-inside-another-using-a-third/29414 "2021-04-16T22:24:11Z")

</div>

Hello again! I can’t figure out how to use reflection to instantiate one class inside another using a third class. I feel like I’m close… The goal in this example is to instantiate A.b inside C. import java.lang.refle…

---

## [Problem with for loops](https://discourse.processing.org/t/problem-with-for-loops/29425)

<div class="topic-metadata">

**Author:** [@kairama15](https://discourse.processing.org/u/kairama15)\
**Replies:** 1\
**Last updated:** [April 16, 2021, 8:22pm UTC](https://discourse.processing.org/t/problem-with-for-loops/29425 "2021-04-16T20:22:34Z")

</div>

When I run the following code, when I try to println the variable a in the FOR loop, it doesn’t show up on the window. I would expect the loop to be entered and iterated because m\[0\] is greater than 0, and so is m\[1\], m…

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

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