# Latest

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

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

**Page:** 220

---

## [As simple as possible](https://discourse.processing.org/t/as-simple-as-possible/28123)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 4\
**Last updated:** [May 28, 2021, 6:03pm UTC](https://discourse.processing.org/t/as-simple-as-possible/28123 "2021-05-28T18:03:32Z")

</div>

void setup () { size (600,600); colorMode(HSB); } void draw(){ for(int i= 500; i \>0; i=i -2) { stroke((i/2) + (mouseX/3), 255,255); ellipse (i,300,i,i); } }

---

## [Video not syncing to audio correctly when playing in Firefox](https://discourse.processing.org/t/video-not-syncing-to-audio-correctly-when-playing-in-firefox/30339)

<div class="topic-metadata">

**Author:** [@karenmani](https://discourse.processing.org/u/karenmani)\
**Replies:** 5\
**Last updated:** [May 28, 2021, 5:44pm UTC](https://discourse.processing.org/t/video-not-syncing-to-audio-correctly-when-playing-in-firefox/30339 "2021-05-28T17:44:34Z")

</div>

Hi! I’m trying to create a video player using p5 that a user can hit “start video” on and then can pan audio using a slider. I used the video tag in html to source the vids in multiple formats from my directory and then…

---

## [P5 and DOM file types](https://discourse.processing.org/t/p5-and-dom-file-types/30336)

<div class="topic-metadata">

**Author:** [@karenmani](https://discourse.processing.org/u/karenmani)\
**Replies:** 1\
**Last updated:** [May 28, 2021, 4:52pm UTC](https://discourse.processing.org/t/p5-and-dom-file-types/30336 "2021-05-28T16:52:26Z")

</div>

I’m trying to create a video player using DOM and video files to createVideo() in p5. When I’m setting my program to support multiple file types, I have to include each format of the file in the repository or file direct…

---

## [Difference between typography and strings?](https://discourse.processing.org/t/difference-between-typography-and-strings/30332)

<div class="topic-metadata">

**Author:** [@Dun](https://discourse.processing.org/u/Dun)\
**Replies:** 3\
**Last updated:** [May 28, 2021, 1:43pm UTC](https://discourse.processing.org/t/difference-between-typography-and-strings/30332 "2021-05-28T13:43:43Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m new to Processing and coding in general. What is the difference between strings generated class of text versus the typography text() fea…

---

## [SpriteSheet Loader Nullpointer Why?](https://discourse.processing.org/t/spritesheet-loader-nullpointer-why/30334)

<div class="topic-metadata">

**Author:** [@Tanghe](https://discourse.processing.org/u/Tanghe)\
**Replies:** 1\
**Last updated:** [May 28, 2021, 11:06am UTC](https://discourse.processing.org/t/spritesheet-loader-nullpointer-why/30334 "2021-05-28T11:06:58Z")

</div>

Hello so when i try using the code below i get a nullpointer on line 36 and i dont c why. Anny help is welcomed. class Sprite { int numRows, numCols; int posX, posY; int counter; PImage img; int partW, partH;…

---

## [How do I make an asset?](https://discourse.processing.org/t/how-do-i-make-an-asset/30266)

<div class="topic-metadata">

**Author:** [@lotull07](https://discourse.processing.org/u/lotull07)\
**Replies:** 4\
**Last updated:** [May 28, 2021, 9:28am UTC](https://discourse.processing.org/t/how-do-i-make-an-asset/30266 "2021-05-28T09:28:17Z")

</div>

how do I make an asset? I have been learning to code for a while but I never learned how to make an asset

---

## [\[Help\] Add random flicker to pixel sorting](https://discourse.processing.org/t/help-add-random-flicker-to-pixel-sorting/30299)

<div class="topic-metadata">

**Author:** [@cwe2000](https://discourse.processing.org/u/cwe2000)\
**Replies:** 3\
**Last updated:** [May 28, 2021, 9:20am UTC](https://discourse.processing.org/t/help-add-random-flicker-to-pixel-sorting/30299 "2021-05-28T09:20:27Z")

</div>

Hey so I’m attempting to add a random flicker to the rendered image having the script select two random values for the pixel sort and have it flick between them. Potentially saving as a GIF or video. Here is the scri…

---

## [Creative coding for kids - a structured course of short projects](https://discourse.processing.org/t/creative-coding-for-kids-a-structured-course-of-short-projects/30330)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 12:32am UTC](https://discourse.processing.org/t/creative-coding-for-kids-a-structured-course-of-short-projects/30330 "2021-05-28T00:32:12Z")

</div>

Hello community, Look what I got in the mail: A copy of the new “Creative Coding for Kids - codeguppy edition” by Tariq Rashid. This book is intended to be used with codeguppy.com - a free p5.js coding platform for kid…

---

## [P5.js code do not work on mobile code editor (Treb Edit)](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136)

<div class="topic-metadata">

**Author:** [@Kevincroos](https://discourse.processing.org/u/Kevincroos)\
**Replies:** 4\
**Last updated:** [May 27, 2021, 5:02pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136 "2021-05-27T17:02:14Z")

</div>

I really need help to resolve it =/ I really need help to resolve it =/ I started an project using P5.js with an mobile code editor(Treb Edit), in the start my code runned good but after an two days my editor do not wo…

---

## [Please Help: Currency Converter](https://discourse.processing.org/t/please-help-currency-converter/30250)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 9\
**Last updated:** [May 27, 2021, 11:25am UTC](https://discourse.processing.org/t/please-help-currency-converter/30250 "2021-05-27T11:25:25Z")

</div>

Hello! I have an assignment coming up where I have to create a currency converter using python, but I’m really confused on where or how to begin. Does anyone have any tips on how I could start? Like how would I make a s…

---

## [Run Wallpaper in Background continuously](https://discourse.processing.org/t/run-wallpaper-in-background-continuously/30248)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 1:03pm UTC](https://discourse.processing.org/t/run-wallpaper-in-background-continuously/30248 "2021-05-27T13:03:21Z")

</div>

Hey, I wanted to ask if there is a way to let a wallpaper run in the background (also when apps are open) to count the time how long I was on the phone in general. Thanks Flolo :slight\_smile:

---

## [Drawing new shapes is causing the older shapes to disappear](https://discourse.processing.org/t/drawing-new-shapes-is-causing-the-older-shapes-to-disappear/30309)

<div class="topic-metadata">

**Author:** [@uniqueNoSpaces](https://discourse.processing.org/u/uniqueNoSpaces)\
**Replies:** 3\
**Last updated:** [May 27, 2021, 9:17am UTC](https://discourse.processing.org/t/drawing-new-shapes-is-causing-the-older-shapes-to-disappear/30309 "2021-05-27T09:17:16Z")

</div>

Hello i’m working on a complex visualisation project, using p5.js i want to create multiple clusters of shapes to visualise all sorts of data, so i’m looping through the data, checking the objects specified by user and …

---

## [Google Season of Docs](https://discourse.processing.org/t/google-season-of-docs/30145)

<div class="topic-metadata">

**Author:** [@teddysphotos](https://discourse.processing.org/u/teddysphotos)\
**Replies:** 8\
**Last updated:** [May 27, 2021, 3:47am UTC](https://discourse.processing.org/t/google-season-of-docs/30145 "2021-05-27T03:47:15Z")

</div>

Is there anyone who got a selection or a rejection mail for Google Season of Docs? It’s way past the deadline, and I am yet to recieve any mail. I tried reaching out to mentors, no response from them either. Is there a…

---

## [randomGaussian() definition](https://discourse.processing.org/t/randomgaussian-definition/30303)

<div class="topic-metadata">

**Author:** [@femke.blanco](https://discourse.processing.org/u/femke.blanco)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 9:15pm UTC](https://discourse.processing.org/t/randomgaussian-definition/30303 "2021-05-26T21:15:06Z")

</div>

In the randomGaussian() definition, the variable y2 is never declared. Is that an oversight? Or is it deliberate and I’m missing something. Thanks in advance. https://github.com/processing/p5.js/blob/1.3.1/src/math/r…

---

## [BoofCV camera calibration error](https://discourse.processing.org/t/boofcv-camera-calibration-error/30286)

<div class="topic-metadata">

**Author:** [@samuset](https://discourse.processing.org/u/samuset)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 8:29pm UTC](https://discourse.processing.org/t/boofcv-camera-calibration-error/30286 "2021-05-26T20:29:03Z")

</div>

Hi, I’m trying to use the camera calibration tool provided by the BoofCV library here, following the tutorial here. My command is as follows: java -jar applications.jar CameraCalibration --Camera=0 --Resolution=640:360…

---

## [Please Help: How to add texture](https://discourse.processing.org/t/please-help-how-to-add-texture/30311)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 6\
**Last updated:** [May 26, 2021, 1:54pm UTC](https://discourse.processing.org/t/please-help-how-to-add-texture/30311 "2021-05-26T13:54:16Z")

</div>

Hello, I wanted to create a sphere with texture on it. So I tried to make the image wrap around the sphere, but when I run the code, only the rotating sphere shows. Is there something wrong with the code? def setup(): …

---

## [Trying to create a billiard game](https://discourse.processing.org/t/trying-to-create-a-billiard-game/30318)

<div class="topic-metadata">

**Author:** [@iox007](https://discourse.processing.org/u/iox007)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 8:21pm UTC](https://discourse.processing.org/t/trying-to-create-a-billiard-game/30318 "2021-05-26T20:21:58Z")

</div>

Hey everyone, So my teacher gave me a task to create a billiard game which in all honesty is very very challenging. So far i have managed to create something but im stuggling with two issues: How can i aim the white ba…

---

## [How to display random numbers](https://discourse.processing.org/t/how-to-display-random-numbers/30298)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 11\
**Last updated:** [May 26, 2021, 6:20pm UTC](https://discourse.processing.org/t/how-to-display-random-numbers/30298 "2021-05-26T18:20:28Z")

</div>

Hello, I’m trying to figure out how to create random numbers that displays on the screen. My code is animated, so the text moves as well and I’m not sure how to stop it. Does anyone know how? Could I use Boolean somehow…

---

## [Processing book autographed by Ben Fry](https://discourse.processing.org/t/processing-book-autographed-by-ben-fry/30315)

<div class="topic-metadata">

**Author:** [@Snabber](https://discourse.processing.org/u/Snabber)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 6:01pm UTC](https://discourse.processing.org/t/processing-book-autographed-by-ben-fry/30315 "2021-05-26T18:01:12Z")

</div>

I purchased a hardcover copy of processing (light blue cover) before meeting Ben Fry at a speaking event. I am downsizing for retirement and would like to sell the book. If you are interested let me know, it’s listed o…

---

## [P3D running extremely slow](https://discourse.processing.org/t/p3d-running-extremely-slow/30302)

<div class="topic-metadata">

**Author:** [@123](https://discourse.processing.org/u/123)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 3:58pm UTC](https://discourse.processing.org/t/p3d-running-extremely-slow/30302 "2021-05-26T15:58:40Z")

</div>

Guys pls help I don’t know why this code runs really slow. //SEQUENCES OF MOVING CIRCLES float xPosition = 0; float yPosition; float aPosition = 0; float bPosition; float onePosition = 0; float twoPosition; float…

---

## [Help urgent! serial number generator!](https://discourse.processing.org/t/help-urgent-serial-number-generator/30313)

<div class="topic-metadata">

**Author:** [@shwetha](https://discourse.processing.org/u/shwetha)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 3:24pm UTC](https://discourse.processing.org/t/help-urgent-serial-number-generator/30313 "2021-05-26T15:24:55Z")

</div>

hi guys!!! i’m new to python and i have an assessment coming soon and i’m not sure how to generate serial numbers to show on the window. can someone help me please?

---

## [Issue with Gradient](https://discourse.processing.org/t/issue-with-gradient/30291)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 11:15am UTC](https://discourse.processing.org/t/issue-with-gradient/30291 "2021-05-26T11:15:09Z")

</div>

Hello, I’m trying to make a gradient, yet it just doesn’t seem to work my way. Could someone please let me know what is wrong with the code below? I can’t seem to fix it def setup(): size(550, 700) noSmooth() def …

---

## [Duplicate class error when attetmpting to run application on device](https://discourse.processing.org/t/duplicate-class-error-when-attetmpting-to-run-application-on-device/30234)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 9:03am UTC](https://discourse.processing.org/t/duplicate-class-error-when-attetmpting-to-run-application-on-device/30234 "2021-05-26T09:03:59Z")

</div>

Hi, I am trying to run a program on an android device that is testing FTP client code (FTP client is from apache commons net). When i run the program i get a “Duplicate Classes Failed” error and a whole host of gradle e…

---

## [Proof reading german translation p5 web-editor](https://discourse.processing.org/t/proof-reading-german-translation-p5-web-editor/30271)

<div class="topic-metadata">

**Author:** [@tlsaeger](https://discourse.processing.org/u/tlsaeger)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 8:44am UTC](https://discourse.processing.org/t/proof-reading-german-translation-p5-web-editor/30271 "2021-05-26T08:44:04Z")

</div>

Hey there, I just finished the german translation of the p5 web editor. If there are any german speaking people out there who could help me with proof reading, that would be super awesome. You can find my fork here If …

---

## [Collision of Circles and Lines](https://discourse.processing.org/t/collision-of-circles-and-lines/30296)

<div class="topic-metadata">

**Author:** [@SodaPopPop](https://discourse.processing.org/u/SodaPopPop)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 3:28am UTC](https://discourse.processing.org/t/collision-of-circles-and-lines/30296 "2021-05-26T03:28:45Z")

</div>

Update: oh silly me, it seems like the code is working after all. I just wasn’t proficient at the game enough at first. Hello! I want to keep track of scores every time the “tail end” of a line touches a bouncing circle…

---

## [Gaming and Processing](https://discourse.processing.org/t/gaming-and-processing/30289)

<div class="topic-metadata">

**Author:** [@mj\_humbug](https://discourse.processing.org/u/mj_humbug)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 3:03am UTC](https://discourse.processing.org/t/gaming-and-processing/30289 "2021-05-26T03:03:13Z")

</div>

Hello any and all, I am learning coding and Processing for the very first time. I am enrolled in community college and have hopes of blossoming in the gaming industry. Are there features/functions within Processing that…

---

## [Creating an empty Table object in Python mode (and some other hidden "data" classes)](https://discourse.processing.org/t/creating-an-empty-table-object-in-python-mode-and-some-other-hidden-data-classes/25121)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 3\
**Last updated:** [May 1, 2021, 11:38pm UTC](https://discourse.processing.org/t/creating-an-empty-table-object-in-python-mode-and-some-other-hidden-data-classes/25121 "2021-05-01T23:38:22Z")

</div>

Another documentation gap that drives me mad is that the Python equivalent of an example like the (Java) Table t = new Table() is missing. Table is missing from the Py.Processing.org/reference and nobody tells you how t…

---

## [How to change color of the out of bounds background when not in fullscreen?](https://discourse.processing.org/t/how-to-change-color-of-the-out-of-bounds-background-when-not-in-fullscreen/30284)

<div class="topic-metadata">

**Author:** [@Kitulous](https://discourse.processing.org/u/Kitulous)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 1:05am UTC](https://discourse.processing.org/t/how-to-change-color-of-the-out-of-bounds-background-when-not-in-fullscreen/30284 "2021-05-26T01:05:03Z")

</div>

So I’m using size(720, 720) instead of fullScreen(). This leaves the ugly gray background. I want to change it to black, kinda like this: → First screenshot’s black zone is the actual canvas. This “full screen” bac…

---

## [Processing Golf Game](https://discourse.processing.org/t/processing-golf-game/30293)

<div class="topic-metadata">

**Author:** [@alexpapacosta](https://discourse.processing.org/u/alexpapacosta)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 12:08am UTC](https://discourse.processing.org/t/processing-golf-game/30293 "2021-05-26T00:08:16Z")

</div>

Hi all, I have exported my file from Processing and I am trying to upload it for a uni assignment. The file is too large and it won’t allow me too. How can I make this smaller?

---

## [Movie Maker using incorrect image order](https://discourse.processing.org/t/movie-maker-using-incorrect-image-order/30281)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 2\
**Last updated:** [May 25, 2021, 10:06pm UTC](https://discourse.processing.org/t/movie-maker-using-incorrect-image-order/30281 "2021-05-25T22:06:04Z")

</div>

I have a sketch that is a grid of squares, 10 down, 15 across. Among other animations, what it does is start on the top left square and spin it around. Then it goes across the first row, spinning each square one by one. …

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

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