# Latest

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

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

**Page:** 206

---

## [Cannot find a class or type named “Test”](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-test/31371)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 17\
**Last updated:** [July 23, 2021, 3:57pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-test/31371 "2021-07-23T15:57:58Z")

</div>

I just found this code on the internet (how to open a webpage with java Code Example) when i tried to run it it said Cannot find a class or type named “Test”, what do i have to replace test with to make it work? /\*\* …

---

## [Multiple frame rates at any speed from 1 to 30FPS](https://discourse.processing.org/t/multiple-frame-rates-at-any-speed-from-1-to-30fps/31398)

<div class="topic-metadata">

**Author:** [@4dplane](https://discourse.processing.org/u/4dplane)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 10:46am UTC](https://discourse.processing.org/t/multiple-frame-rates-at-any-speed-from-1-to-30fps/31398 "2021-07-23T10:46:52Z")

</div>

Hi, I am working in P5.JS and I am trying to achieve multiple frame rates for multiple animations that can have any framerate between 1FPS to 30FPS. Here is the main question: How to keep the master FPS at frameRate(30)…

---

## [Snake game error](https://discourse.processing.org/t/snake-game-error/31389)

<div class="topic-metadata">

**Author:** [@Xavier](https://discourse.processing.org/u/Xavier)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 10:12am UTC](https://discourse.processing.org/t/snake-game-error/31389 "2021-07-23T10:12:06Z")

</div>

Hi everyone, Iam making a snake game for my class but it has to have an interactive aproach, so my idea was that every time the snake eat an apple an image in the background would appear, so you would win the game when …

---

## [Processing with Android Studio Error in fragment.setView arguments](https://discourse.processing.org/t/processing-with-android-studio-error-in-fragment-setview-arguments/18860)

<div class="topic-metadata">

**Author:** [@isuru](https://discourse.processing.org/u/isuru)\
**Replies:** 12\
**Last updated:** [July 23, 2021, 5:21am UTC](https://discourse.processing.org/t/processing-with-android-studio-error-in-fragment-setview-arguments/18860 "2021-07-23T05:21:13Z")

</div>

I got this error how to resolve this. Please help! Wrong 2nd argument in the fragment.setView method

---

## [How to play back my own voice?](https://discourse.processing.org/t/how-to-play-back-my-own-voice/31393)

<div class="topic-metadata">

**Author:** [@tony](https://discourse.processing.org/u/tony)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 9:57pm UTC](https://discourse.processing.org/t/how-to-play-back-my-own-voice/31393 "2021-07-22T21:57:07Z")

</div>

Hey! Any p5.sound experts here? How would I make a sketch that lets me listen to my own audio, live? Not a “record a voice clip, then play it back” kind of deal, but a “speak into the mic, and listen to what I sound lik…

---

## [Draw A Circle After 20 Mouse Clicks In An Array](https://discourse.processing.org/t/draw-a-circle-after-20-mouse-clicks-in-an-array/31387)

<div class="topic-metadata">

**Author:** [@KH1](https://discourse.processing.org/u/KH1)\
**Replies:** 11\
**Last updated:** [July 22, 2021, 6:16pm UTC](https://discourse.processing.org/t/draw-a-circle-after-20-mouse-clicks-in-an-array/31387 "2021-07-22T18:16:32Z")

</div>

Hello All, I am trying to figure out how to draw a circle after 20 mouse click in an array. int mouseClicks; void mousePressed() { if (mouseClicks== 20) {Circle(,)} else { mouseClicks = 0; } Thank You For The Help!

---

## [Transitions between states](https://discourse.processing.org/t/transitions-between-states/31376)

<div class="topic-metadata">

**Author:** [@k5221](https://discourse.processing.org/u/k5221)\
**Replies:** 4\
**Last updated:** [July 22, 2021, 4:23pm UTC](https://discourse.processing.org/t/transitions-between-states/31376 "2021-07-22T16:23:00Z")

</div>

Hi, I have drawIntro() for drawing the black intro screen and drawPlaying for the game screen. The screen switches to the playing mode when a player clicks the start button (handled by the mousePressed() below). What I …

---

## [The Art of Creative Coding \[live @ d-lab edition\]](https://discourse.processing.org/t/the-art-of-creative-coding-live-d-lab-edition/31383)

<div class="topic-metadata">

**Author:** [@George](https://discourse.processing.org/u/George)\
**Replies:** 0\
**Last updated:** [July 22, 2021, 1:13pm UTC](https://discourse.processing.org/t/the-art-of-creative-coding-live-d-lab-edition/31383 "2021-07-22T13:13:30Z")

</div>

This is particularly exciting for those in London as they can attend in person. (The workshop is also delivered virtually) Topics: 0 Examples of creative coding in art and in design practice How to write your own cr…

---

## [I want to this contents in a circle](https://discourse.processing.org/t/i-want-to-this-contents-in-a-circle/31375)

<div class="topic-metadata">

**Author:** [@jih](https://discourse.processing.org/u/jih)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 1:11pm UTC](https://discourse.processing.org/t/i-want-to-this-contents-in-a-circle/31375 "2021-07-22T13:11:13Z")

</div>

Hello, I’m studying with this example. (Hue) Hue \\ Examples \\ Processing.org I want to make a circle, and put this content in the circle. I tried, but the whole circle changes color. How do I put it in a circle? Tha…

---

## [Capture image is not shown](https://discourse.processing.org/t/capture-image-is-not-shown/31377)

<div class="topic-metadata">

**Author:** [@k5221](https://discourse.processing.org/u/k5221)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 12:18pm UTC](https://discourse.processing.org/t/capture-image-is-not-shown/31377 "2021-07-22T12:18:25Z")

</div>

Hi, since some point of coding, my code has not been able to show an image on the canvas… My original intent was make the captured image (by webcam) as a background once the button is clicked and game starts playing, but…

---

## [Shader performance vs drawing array of points](https://discourse.processing.org/t/shader-performance-vs-drawing-array-of-points/31373)

<div class="topic-metadata">

**Author:** [@rkdnson](https://discourse.processing.org/u/rkdnson)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 9:02am UTC](https://discourse.processing.org/t/shader-performance-vs-drawing-array-of-points/31373 "2021-07-22T09:02:39Z")

</div>

Hello all. I have a project where I want every other pixel to be black. This could be accomplished with two simple for loops; for (let x = 0; x \< width; x+=2) { for (let y = 0; y \< height; y+=2) { point(x,y);…

---

## [Help with Processing Brightness Example](https://discourse.processing.org/t/help-with-processing-brightness-example/31366)

<div class="topic-metadata">

**Author:** [@jih](https://discourse.processing.org/u/jih)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 9:37pm UTC](https://discourse.processing.org/t/help-with-processing-brightness-example/31366 "2021-07-21T21:37:48Z")

</div>

https://processing.org/examples/brightness.html hello, I’m studying with this tutorial. almost last line, pixels\[y\*width+x\] = c; \<\< ArrayIndexOutOfBoundsException: 230400 error… Please let me know how. Thank you…

---

## [How to cycle between two colors using lerp](https://discourse.processing.org/t/how-to-cycle-between-two-colors-using-lerp/31370)

<div class="topic-metadata">

**Author:** [@cottonchipper](https://discourse.processing.org/u/cottonchipper)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 8:37pm UTC](https://discourse.processing.org/t/how-to-cycle-between-two-colors-using-lerp/31370 "2021-07-21T20:37:12Z")

</div>

I’m trying to smoothly lerp back and forth between two colors repeatedly. The following changes from red to blue and then suddenly shifts back to red when the sketch loops. Is there a way to shift from red to blue to red…

---

## [Report Number of Key Clicks During Timer](https://discourse.processing.org/t/report-number-of-key-clicks-during-timer/31364)

<div class="topic-metadata">

**Author:** [@BruceTheWayneJohnson](https://discourse.processing.org/u/BruceTheWayneJohnson)\
**Replies:** 3\
**Last updated:** [July 21, 2021, 8:37pm UTC](https://discourse.processing.org/t/report-number-of-key-clicks-during-timer/31364 "2021-07-21T20:37:03Z")

</div>

I am currently trying to get my program to print how many times ‘a’ is pressed while the timer counts to 2000ms. So far, all I can get printed is some wildly larger number than how many times I pressed ‘a’. It says anyw…

---

## [How to hide the sketch window and the task bar icon?](https://discourse.processing.org/t/how-to-hide-the-sketch-window-and-the-task-bar-icon/4901)

<div class="topic-metadata">

**Author:** [@YSL](https://discourse.processing.org/u/YSL)\
**Replies:** 4\
**Last updated:** [September 15, 2020, 10:01am UTC](https://discourse.processing.org/t/how-to-hide-the-sketch-window-and-the-task-bar-icon/4901 "2020-09-15T10:01:49Z")

</div>

How can I hide the sketch window entirely, including the taskbar icon? Currently, I can create a TrayIcon and call surface.setVisible(false) to hide the window when I need to, but the taskbar icon is still there. How can…

---

## [How can I calculate audio Decibels?](https://discourse.processing.org/t/how-can-i-calculate-audio-decibels/31248)

<div class="topic-metadata">

**Author:** [@ankur](https://discourse.processing.org/u/ankur)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 2:48pm UTC](https://discourse.processing.org/t/how-can-i-calculate-audio-decibels/31248 "2021-07-21T14:48:41Z")

</div>

How can I calculate audio in Decibels using Processing on Java Mode.?

---

## [How to share my sketches in Processing publicly or to save the gifs produced by it using Processing Desktop IDE?](https://discourse.processing.org/t/how-to-share-my-sketches-in-processing-publicly-or-to-save-the-gifs-produced-by-it-using-processing-desktop-ide/31350)

<div class="topic-metadata">

**Author:** [@ShenpaiSharma](https://discourse.processing.org/u/ShenpaiSharma)\
**Replies:** 5\
**Last updated:** [July 21, 2021, 1:55pm UTC](https://discourse.processing.org/t/how-to-share-my-sketches-in-processing-publicly-or-to-save-the-gifs-produced-by-it-using-processing-desktop-ide/31350 "2021-07-21T13:55:38Z")

</div>

I want to share my sketches with other people or create a link to the sketch to be accessible to anyone. Is it possible to do it?

---

## [Comparing sound](https://discourse.processing.org/t/comparing-sound/31355)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 3:40am UTC](https://discourse.processing.org/t/comparing-sound/31355 "2021-07-21T03:40:50Z")

</div>

I’m trying to make my own translator. I know I know there probably hundreds of thousands out there, so can we skip all that. OK now that we got that outta the way I need to know how do i compare sounds in processing is t…

---

## [Plot of Collatz Orbits](https://discourse.processing.org/t/plot-of-collatz-orbits/31354)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 1:42am UTC](https://discourse.processing.org/t/plot-of-collatz-orbits/31354 "2021-07-21T01:42:26Z")

</div>

This sketch is a plot of Collatz orbits: Collatz orbits relate to the Collatz conjecture, which was posed by mathematician Lothar Collatz in 1937. Each positive integer has an orbit, which is a sequence of numbers ge…

---

## [Processing 4.0 alpha 6 available!](https://discourse.processing.org/t/processing-4-0-alpha-6-available/31172)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 7\
**Last updated:** [July 20, 2021, 7:01pm UTC](https://discourse.processing.org/t/processing-4-0-alpha-6-available/31172 "2021-07-20T19:01:37Z")

</div>

Looking good @ProcessingOrg ! :)

---

## [Letting the User Set String (Save As... Dialog)](https://discourse.processing.org/t/letting-the-user-set-string-save-as-dialog/31321)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 8\
**Last updated:** [July 20, 2021, 3:26pm UTC](https://discourse.processing.org/t/letting-the-user-set-string-save-as-dialog/31321 "2021-07-20T15:26:58Z")

</div>

Hello, I am writing a program that contains a “save file” mechanic to it. What I want to do is offer the user of the program a chance to name the save file to whatever they wish. I believe I understand the gist of the …

---

## [How to put an interactable 2D canvas in 3D?](https://discourse.processing.org/t/how-to-put-an-interactable-2d-canvas-in-3d/31320)

<div class="topic-metadata">

**Author:** [@waldo1](https://discourse.processing.org/u/waldo1)\
**Replies:** 3\
**Last updated:** [July 20, 2021, 12:32pm UTC](https://discourse.processing.org/t/how-to-put-an-interactable-2d-canvas-in-3d/31320 "2021-07-20T12:32:39Z")

</div>

So, I pretty much want to make this exact app, just in AR and with better brushes: https://play.google.com/store/apps/details?id=com.TNInteractive.GraffitiPaint&hl=en One way to do it that I came up with would be to ope…

---

## [Can't understand why noLoop() is acting strange](https://discourse.processing.org/t/cant-understand-why-noloop-is-acting-strange/31322)

<div class="topic-metadata">

**Author:** [@acagastya](https://discourse.processing.org/u/acagastya)\
**Replies:** 6\
**Last updated:** [July 20, 2021, 10:45am UTC](https://discourse.processing.org/t/cant-understand-why-noloop-is-acting-strange/31322 "2021-07-20T10:45:33Z")

</div>

Hi, please consider this code https://dpaste.com/4NTYQ8UP7. I cannot seem to understand why line 57-59 is causing the render to stop completely. I want the draw() to stop right when the sound is over, but can’t seem to…

---

## [indexOf does not match unicode string](https://discourse.processing.org/t/indexof-does-not-match-unicode-string/31319)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 2\
**Last updated:** [July 20, 2021, 12:00pm UTC](https://discourse.processing.org/t/indexof-does-not-match-unicode-string/31319 "2021-07-20T12:00:07Z")

</div>

Hi! I am reading a file called “Symbola605.txt” with loadStrings(). Then I use .indexOf at each line in order to find a word that marks the beginning of a character list. But it seems that .indexOf does not work with …

---

## [How to non linear iterator](https://discourse.processing.org/t/how-to-non-linear-iterator/31235)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 8\
**Last updated:** [July 20, 2021, 9:22am UTC](https://discourse.processing.org/t/how-to-non-linear-iterator/31235 "2021-07-20T09:22:28Z")

</div>

Hi, Instead of iterating through my loop with a classic iterator (when I say classic I mean iterating the loop using a fixed value with something like += 20). I would like to iterate with a value which is increasing or…

---

## [Interesting effect on failed meta-balls project](https://discourse.processing.org/t/interesting-effect-on-failed-meta-balls-project/31244)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [July 19, 2021, 9:28pm UTC](https://discourse.processing.org/t/interesting-effect-on-failed-meta-balls-project/31244 "2021-07-19T21:28:39Z")

</div>

CodeArrayList\<ball\> balls = new ArrayList\<ball\>(); void setup() { size(600,600); for(int i = 0; i \< 10; i++) { balls.add(new ball(random(width),random(height),random(10,15),cos(random(TWO\_PI))\*5…

---

## [Looking for a processing-java, one to one, remote tutor](https://discourse.processing.org/t/looking-for-a-processing-java-one-to-one-remote-tutor/31329)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 2\
**Last updated:** [July 19, 2021, 4:55pm UTC](https://discourse.processing.org/t/looking-for-a-processing-java-one-to-one-remote-tutor/31329 "2021-07-19T16:55:59Z")

</div>

Hello, I would like to speed up my learning process. I’m looking for an experienced processing tutor, available at least one hour per week. I’m familiar with very basic coding concepts and syntax however I’m strugglin…

---

## [Processing 20th Anniversary - Community Celebration](https://discourse.processing.org/t/processing-20th-anniversary-community-celebration/31327)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 1\
**Last updated:** [July 19, 2021, 12:15pm UTC](https://discourse.processing.org/t/processing-20th-anniversary-community-celebration/31327 "2021-07-19T12:15:10Z")

</div>

Hi everyone, You might know that Processing’s 20th anniversary is coming up in August. We would love to help the community celebrate the weekend of August 20-22, 2021 and share and want to help with that. 1) You can cre…

---

## [Moving effect of a set of dots](https://discourse.processing.org/t/moving-effect-of-a-set-of-dots/31263)

<div class="topic-metadata">

**Author:** [@k5221](https://discourse.processing.org/u/k5221)\
**Replies:** 3\
**Last updated:** [July 19, 2021, 9:54am UTC](https://discourse.processing.org/t/moving-effect-of-a-set-of-dots/31263 "2021-07-19T09:54:14Z")

</div>

Hi, I have a function to create one set of dots, which are individually created by ellipse() function. I hope to move one set (=individual dots within the set) right and left according to the frame rate, and each set mov…

---

## [PShape vertice are not actually joined](https://discourse.processing.org/t/pshape-vertice-are-not-actually-joined/31201)

<div class="topic-metadata">

**Author:** [@Eamoex](https://discourse.processing.org/u/Eamoex)\
**Replies:** 2\
**Last updated:** [July 19, 2021, 8:52am UTC](https://discourse.processing.org/t/pshape-vertice-are-not-actually-joined/31201 "2021-07-19T08:52:16Z")

</div>

Hi, I’m using PShape to draw an open path called pth. I add a certain number of vertex(int x, int y), then shape(pth) into a PDF to edit in Illustrator for path simplification and appearance rework. My problem: the resul…

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

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