# Latest

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

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

**Page:** 334

---

## [At work with the class](https://discourse.processing.org/t/at-work-with-the-class/21954)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 1:03pm UTC](https://discourse.processing.org/t/at-work-with-the-class/21954 "2020-06-18T13:03:59Z")

</div>

Hi everyone I need a confirmation or a hand for a game: I am working with colored buttons and I need to understand if when I step on with the mouse they are selected and then transported within my sketch. Can anyone tel…

---

## [Why doesn't the port.write() work when placed inside the setup() function? Processing doesn't get serial data back from Arduino](https://discourse.processing.org/t/why-doesnt-the-port-write-work-when-placed-inside-the-setup-function-processing-doesnt-get-serial-data-back-from-arduino/21920)

<div class="topic-metadata">

**Author:** [@wasd808](https://discourse.processing.org/u/wasd808)\
**Replies:** 5\
**Last updated:** [June 18, 2020, 11:57am UTC](https://discourse.processing.org/t/why-doesnt-the-port-write-work-when-placed-inside-the-setup-function-processing-doesnt-get-serial-data-back-from-arduino/21920 "2020-06-18T11:57:01Z")

</div>

I’m using processing with an Arduino UNO for my application. I’m making an adaptive traffic light system and for that, I’ve implemented a primitive graphic display in processing. In this, the processing code reads the nu…

---

## [Importing a list of image URLs with createinput() and/or csv file? 📦](https://discourse.processing.org/t/importing-a-list-of-image-urls-with-createinput-and-or-csv-file/21975)

<div class="topic-metadata">

**Author:** [@jwyg](https://discourse.processing.org/u/jwyg)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 10:40am UTC](https://discourse.processing.org/t/importing-a-list-of-image-urls-with-createinput-and-or-csv-file/21975 "2020-06-18T10:40:17Z")

</div>

Hello everyone! :panda\_face: This is my first post on the p5.js forum. I’m excited to join this community and look forward to learning more about what you’re all doing and seeing how I am able to contribute. :turtle: I…

---

## [Including API key in the header :(](https://discourse.processing.org/t/including-api-key-in-the-header/21936)

<div class="topic-metadata">

**Author:** [@sasaKDH](https://discourse.processing.org/u/sasaKDH)\
**Replies:** 9\
**Last updated:** [June 18, 2020, 10:21am UTC](https://discourse.processing.org/t/including-api-key-in-the-header/21936 "2020-06-18T10:21:45Z")

</div>

I want to use API but I’m not familiar with JSON and API :frowning: The site said me that I shoud include my apikey in the header but I don’t know how. function preload(){ let url1 = "https://static.api.nexon.co.kr/f…

---

## [P5.js - not displaying static gif image](https://discourse.processing.org/t/p5-js-not-displaying-static-gif-image/20948)

<div class="topic-metadata">

**Author:** [@Chrissy](https://discourse.processing.org/u/Chrissy)\
**Replies:** 18\
**Last updated:** [June 18, 2020, 10:02am UTC](https://discourse.processing.org/t/p5-js-not-displaying-static-gif-image/20948 "2020-06-18T10:02:50Z")

</div>

Hello everyone. Please may you help me. I am learning p5.js by going through the book by Lauren McCarthy titled “Make: Getting Started with p5.js” and I have become stuck with Example 7-4 on page 108. Basically the gi…

---

## [Passing an Array through recursive class objects](https://discourse.processing.org/t/passing-an-array-through-recursive-class-objects/21972)

<div class="topic-metadata">

**Author:** [@Hyperion65](https://discourse.processing.org/u/Hyperion65)\
**Replies:** 2\
**Last updated:** [June 18, 2020, 8:49am UTC](https://discourse.processing.org/t/passing-an-array-through-recursive-class-objects/21972 "2020-06-18T08:49:38Z")

</div>

Hello ! I am working on a data visualization for a tree, generated with processing. I have created a class that creates a branch of the tree and then recursively creates another object for each child branch. To connec…

---

## [Change Color Moving](https://discourse.processing.org/t/change-color-moving/21924)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 8:42am UTC](https://discourse.processing.org/t/change-color-moving/21924 "2020-06-18T08:42:26Z")

</div>

Hi everyone, I need a hand, on how I can make my static rectangles () inside my moving rectangles () change color: I have three squares: static green, purple and orange I have three moving rectangles (): yellow, red an…

---

## [How do i use .saveData()](https://discourse.processing.org/t/how-do-i-use-savedata/21960)

<div class="topic-metadata">

**Author:** [@KrishnaGoyal](https://discourse.processing.org/u/KrishnaGoyal)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 5:00am UTC](https://discourse.processing.org/t/how-do-i-use-savedata/21960 "2020-06-18T05:00:41Z")

</div>

I was working on the posenet classifier project. But the .saveData() doesnt seem to be saving the json file. Can someone help me with it?

---

## [Extending classes](https://discourse.processing.org/t/extending-classes/21973)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 3:05am UTC](https://discourse.processing.org/t/extending-classes/21973 "2020-06-18T03:05:54Z")

</div>

So, let’s say, I have classes ExternalClass, OutterClass and InnerClass in a sketch called TestProject: public class ExternalClass{ ExternalClass(){ } } final static public class OutterClass{ final static pu…

---

## [PGraphics framebuffer can be rendered in \`noLoop\` mode but cannot be rendered in \`loop\` mode](https://discourse.processing.org/t/pgraphics-framebuffer-can-be-rendered-in-noloop-mode-but-cannot-be-rendered-in-loop-mode/21912)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 16, 2020, 3:18am UTC](https://discourse.processing.org/t/pgraphics-framebuffer-can-be-rendered-in-noloop-mode-but-cannot-be-rendered-in-loop-mode/21912 "2020-06-16T03:18:51Z")

</div>

why can the PGraphics FrameBuffer be rendered when noLoop() is given but fails to image when noLoop() is not given? as the following works for noLoop(); however it fails for looping draw() as the screen is always black …

---

## [Pong game end screen buttons not working](https://discourse.processing.org/t/pong-game-end-screen-buttons-not-working/21896)

<div class="topic-metadata">

**Author:** [@mrporcessing](https://discourse.processing.org/u/mrporcessing)\
**Replies:** 2\
**Last updated:** [June 18, 2020, 12:12am UTC](https://discourse.processing.org/t/pong-game-end-screen-buttons-not-working/21896 "2020-06-18T00:12:32Z")

</div>

Hi, for some reason my end game screen at the very end, when I press the respected keys doesn’t go to that stage. When I do it on the menu screen however it works. I have no idea why. //all major variables int x,y,w,h,s…

---

## [Question about Functions, Booleans](https://discourse.processing.org/t/question-about-functions-booleans/21962)

<div class="topic-metadata">

**Author:** [@MrLoboda](https://discourse.processing.org/u/MrLoboda)\
**Replies:** 6\
**Last updated:** [June 17, 2020, 11:16pm UTC](https://discourse.processing.org/t/question-about-functions-booleans/21962 "2020-06-17T23:16:02Z")

</div>

Hey Processing Forum, I am working on a simple code that is supposed to look at where a user clicked and return a True or False for a function. Later on I want to use an IF statement to determine if my function has retu…

---

## [How to change the deformation level](https://discourse.processing.org/t/how-to-change-the-deformation-level/21963)

<div class="topic-metadata">

**Author:** [@IAN](https://discourse.processing.org/u/IAN)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 9:28pm UTC](https://discourse.processing.org/t/how-to-change-the-deformation-level/21963 "2020-06-17T21:28:43Z")

</div>

Hi, there this is a project I found in online, and this is a ball with soft-body, but I don’t know how to change the soft-level~ Is it about to change the boundary setting? in the tab ‘‘integrateHeun’’ ? or spring forc…

---

## [Sleep() in processing](https://discourse.processing.org/t/sleep-in-processing/21966)

<div class="topic-metadata">

**Author:** [@jeyeffkay](https://discourse.processing.org/u/jeyeffkay)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 8:54pm UTC](https://discourse.processing.org/t/sleep-in-processing/21966 "2020-06-17T20:54:32Z")

</div>

Hey guys, I am currently coding on a game for school and I asked myself and googled how can I use the sleep() command in processing. I want to create a flappy bird like game and I want one loop to wait e.g. two seconds …

---

## [Pre Loading bottleneck](https://discourse.processing.org/t/pre-loading-bottleneck/21083)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 8\
**Last updated:** [June 17, 2020, 7:06pm UTC](https://discourse.processing.org/t/pre-loading-bottleneck/21083 "2020-06-17T19:06:13Z")

</div>

Hi there In my p5.js website, rich.gg ,I use a loading animation that I made using Daniel Shiffman’s technique seen here function richImg(imgName, filename) { window\[imgName\] = loadImage(filename, imgLoaded); func…

---

## [How do I draw a line when the mouse is pressed, and then have that line change type when the mouse and a certain key are pressed at the same time?](https://discourse.processing.org/t/how-do-i-draw-a-line-when-the-mouse-is-pressed-and-then-have-that-line-change-type-when-the-mouse-and-a-certain-key-are-pressed-at-the-same-time/21956)

<div class="topic-metadata">

**Author:** [@keith](https://discourse.processing.org/u/keith)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 4:54pm UTC](https://discourse.processing.org/t/how-do-i-draw-a-line-when-the-mouse-is-pressed-and-then-have-that-line-change-type-when-the-mouse-and-a-certain-key-are-pressed-at-the-same-time/21956 "2020-06-17T16:54:38Z")

</div>

For example, I would like to have a “normal” line drawn when only the mouse is pressed, but have that line change color and/or size when the mouse and a certain key are pressed at the same time.

---

## [Flappy bird beginner](https://discourse.processing.org/t/flappy-bird-beginner/6284)

<div class="topic-metadata">

**Author:** [@Yuma0444](https://discourse.processing.org/u/Yuma0444)\
**Replies:** 6\
**Last updated:** [December 4, 2018, 5:24pm UTC](https://discourse.processing.org/t/flappy-bird-beginner/6284 "2018-12-04T17:24:34Z")

</div>

I’m a beginner in processing and I’m making the flappy bird but, I’m stacked on the bar section. //Final\_project int x = 0; int y = 0; int value = 0; Bar\[\] bars; void setup() { size(500, 600); background(200); bars = n…

---

## [Audio frequence](https://discourse.processing.org/t/audio-frequence/21953)

<div class="topic-metadata">

**Author:** [@iamthatoli](https://discourse.processing.org/u/iamthatoli)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 4:30pm UTC](https://discourse.processing.org/t/audio-frequence/21953 "2020-06-17T16:30:29Z")

</div>

What audio rate (kbit/s) should I use if i want to embeed it into my project?

---

## [How do I make a loop that only runs once?](https://discourse.processing.org/t/how-do-i-make-a-loop-that-only-runs-once/21928)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 3\
**Last updated:** [June 17, 2020, 4:02pm UTC](https://discourse.processing.org/t/how-do-i-make-a-loop-that-only-runs-once/21928 "2020-06-17T16:02:26Z")

</div>

For a project, I want to change the background for the starting screen every time it is loaded up. So the user opens the program and the background is displayed, they play for a bit, press a key to reset and go back to t…

---

## [Problems with my mini game](https://discourse.processing.org/t/problems-with-my-mini-game/21949)

<div class="topic-metadata">

**Author:** [@iamthatoli](https://discourse.processing.org/u/iamthatoli)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 3:55pm UTC](https://discourse.processing.org/t/problems-with-my-mini-game/21949 "2020-06-17T15:55:39Z")

</div>

Hey Guys! I have a problem with my mini game I want my circles to spawn after 1 second each of them. Can anyone pls help me? //Array deklarieren float\[\] x; float\[\] y; float xDir\[\]; float yDir\[\]; float xrect = random(1…

---

## [Who is learning to code using JavaScript and p5.js? What can you say about your experience?](https://discourse.processing.org/t/who-is-learning-to-code-using-javascript-and-p5-js-what-can-you-say-about-your-experience/21903)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 1:51pm UTC](https://discourse.processing.org/t/who-is-learning-to-code-using-javascript-and-p5-js-what-can-you-say-about-your-experience/21903 "2020-06-17T13:51:47Z")

</div>

Who is learning to code using JavaScript and p5.js? What can you say about your experience? How old are you? What are your programming goals?

---

## [oscP5 for the APDE](https://discourse.processing.org/t/oscp5-for-the-apde/18402)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 7\
**Last updated:** [June 17, 2020, 12:42pm UTC](https://discourse.processing.org/t/oscp5-for-the-apde/18402 "2020-06-17T12:42:37Z")

</div>

For the APDE app to work with oscP5, it requires a full structured library with a dex.jar, So I build this new jar and you can download it \[here\]. Just unzip the file into the Sketchbook/libraries folder. Below, a code f…

---

## [I've replaced table data with a csv and it doesn't work](https://discourse.processing.org/t/ive-replaced-table-data-with-a-csv-and-it-doesnt-work/21941)

<div class="topic-metadata">

**Author:** [@Quorum](https://discourse.processing.org/u/Quorum)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 11:29am UTC](https://discourse.processing.org/t/ive-replaced-table-data-with-a-csv-and-it-doesnt-work/21941 "2020-06-17T11:29:03Z")

</div>

I’ve replaced the first row of the code you can see below to replace this data with a csv, but it doesn’t work: let games = \[ \['Boston Celtics', '105', 'Philadelphia 76ers', '87', ''\], \['Philadelphia 76ers', '127', …

---

## [Natural "first person like" turning/moving in P3D](https://discourse.processing.org/t/natural-first-person-like-turning-moving-in-p3d/21854)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 10:39am UTC](https://discourse.processing.org/t/natural-first-person-like-turning-moving-in-p3d/21854 "2020-06-17T10:39:17Z")

</div>

Hey everyone, I think I’m making something more difficult than it needs to be. To begin with I am simply trying to be able to turn the camera in the P3D environment so that when I then move forward, the camera moves in …

---

## [Making a simple counter/timer](https://discourse.processing.org/t/making-a-simple-counter-timer/21923)

<div class="topic-metadata">

**Author:** [@AverageBiped](https://discourse.processing.org/u/AverageBiped)\
**Replies:** 7\
**Last updated:** [June 17, 2020, 8:06am UTC](https://discourse.processing.org/t/making-a-simple-counter-timer/21923 "2020-06-17T08:06:24Z")

</div>

I am trying to do something very simple and can’t figure out how. I want to implement a counter that counts from 0 to 12, printing out 1 number per second (so on run it will immediately print “0”, followed by “1” 1 seco…

---

## [Example code for minim sound library](https://discourse.processing.org/t/example-code-for-minim-sound-library/21640)

<div class="topic-metadata">

**Author:** [@joebrailsford](https://discourse.processing.org/u/joebrailsford)\
**Replies:** 20\
**Last updated:** [June 17, 2020, 6:33am UTC](https://discourse.processing.org/t/example-code-for-minim-sound-library/21640 "2020-06-17T06:33:49Z")

</div>

Hi. Does any body have an example piece of code for allowing computer microphone input using the minim library on the python platform? I am trying to build a sound reactive drawing tool but am not able to find and examp…

---

## [How to use web crawling after you enter something to a online site?](https://discourse.processing.org/t/how-to-use-web-crawling-after-you-enter-something-to-a-online-site/21865)

<div class="topic-metadata">

**Author:** [@SilverPrevail](https://discourse.processing.org/u/SilverPrevail)\
**Replies:** 5\
**Last updated:** [June 17, 2020, 12:58am UTC](https://discourse.processing.org/t/how-to-use-web-crawling-after-you-enter-something-to-a-online-site/21865 "2020-06-17T00:58:03Z")

</div>

For instance, if I try to use a matrix calculator site (https://matrixcalc.org/) from my code, I have to enter my matrices into a site, and then use web crawling to get the answer. Like this example, I need to get the r…

---

## [Looking in Folders and Building Arrays of contents on program startup](https://discourse.processing.org/t/looking-in-folders-and-building-arrays-of-contents-on-program-startup/21902)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 1:02am UTC](https://discourse.processing.org/t/looking-in-folders-and-building-arrays-of-contents-on-program-startup/21902 "2020-06-17T01:02:43Z")

</div>

Hello, I Have been reviewing this page on listing the contents of directories and sub directories Processing Directory List My question now is how to work with this data effectively once gathered. I say “effectively”…

---

## [Problem with transparent png](https://discourse.processing.org/t/problem-with-transparent-png/21930)

<div class="topic-metadata">

**Author:** [@MartinGo](https://discourse.processing.org/u/MartinGo)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 11:02pm UTC](https://discourse.processing.org/t/problem-with-transparent-png/21930 "2020-06-16T23:02:22Z")

</div>

Hi, I’m trying to draw something with “image” wich in other programs (like Photoshop or others) looks with soft borders but when I draw it inside Processing it looks with jagged edges. What is wrong?

---

## [Online Summer Classes with p5.js and Processing](https://discourse.processing.org/t/online-summer-classes-with-p5-js-and-processing/21932)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0\
**Last updated:** [June 16, 2020, 10:25pm UTC](https://discourse.processing.org/t/online-summer-classes-with-p5-js-and-processing/21932 "2020-06-16T22:25:12Z")

</div>

We curated four online classes through Anderson Ranch Arts Center this summer. Please have a look and share with friends who might be interested. Coding for Artists with p5.js taught by Ari Melenciano Coding for Artist…

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

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