# Latest

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

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

**Page:** 372

---

## [Else if not triggering with boolean's](https://discourse.processing.org/t/else-if-not-triggering-with-booleans/19320)

<div class="topic-metadata">

**Author:** [@trevmasterfunk](https://discourse.processing.org/u/trevmasterfunk)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 1:07am UTC](https://discourse.processing.org/t/else-if-not-triggering-with-booleans/19320 "2020-04-03T01:07:27Z")

</div>

Hello! After watching the coding train for a while I decided to download processing and start learning how to create my own programs. I started last week. Currently I am working on a infection simulation. I am trying t…

---

## [FREE book (available soon): Drawing with code](https://discourse.processing.org/t/free-book-available-soon-drawing-with-code/19354)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [April 3, 2020, 12:26am UTC](https://discourse.processing.org/t/free-book-available-soon-drawing-with-code/19354 "2020-04-03T00:26:42Z")

</div>

I start working on a FREE book with type-in mini programs intended for young coders. The book is based of course on p5.js API and is using codeguppy.com - the “no boilerplate” environment for young coders. How is workin…

---

## [Free PDF book: Creative Coding for Kids](https://discourse.processing.org/t/free-pdf-book-creative-coding-for-kids/19353)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [April 3, 2020, 12:17am UTC](https://discourse.processing.org/t/free-pdf-book-creative-coding-for-kids/19353 "2020-04-03T00:17:53Z")

</div>

I just want to share with you the news about a new edition of Creative Coding for Kids book by Tariq Rashid. Tariq is an extraordinary educator with a big passion for writing. He has been nicely enough to share a free v…

---

## [Sprites in the p5 editor](https://discourse.processing.org/t/sprites-in-the-p5-editor/17451)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 6\
**Last updated:** [April 3, 2020, 12:15am UTC](https://discourse.processing.org/t/sprites-in-the-p5-editor/17451 "2020-04-03T00:15:15Z")

</div>

I am a teacher and am using p5js to teach basic coding. However, although there is a lot that can done in the editor, I was wondering if there is a way to use sprites? I have been looking at the p5play library and it see…

---

## [New Project Idea, Need your feedback](https://discourse.processing.org/t/new-project-idea-need-your-feedback/18887)

<div class="topic-metadata">

**Author:** [@Rupesh\_Kumar](https://discourse.processing.org/u/Rupesh_Kumar)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 10:25pm UTC](https://discourse.processing.org/t/new-project-idea-need-your-feedback/18887 "2020-04-02T22:25:20Z")

</div>

I am a GSoC aspirant and I would like to work on a new project idea, which is an android app which automates building of APK on android phone without any internet connection. I have been researching on creation of APK an…

---

## [Moving from processing to p5 - for loop and scattering pixels from image](https://discourse.processing.org/t/moving-from-processing-to-p5-for-loop-and-scattering-pixels-from-image/19325)

<div class="topic-metadata">

**Author:** [@ehv](https://discourse.processing.org/u/ehv)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 10:07pm UTC](https://discourse.processing.org/t/moving-from-processing-to-p5-for-loop-and-scattering-pixels-from-image/19325 "2020-04-02T22:07:06Z")

</div>

I’m looking to move my processing sketch into p5 so it can be shared on the web. It runs great in processing - it’s an interactive sketch that takes in mouseX and increases the digital noise of the image by scattering t…

---

## [Separate Files Don't Work?](https://discourse.processing.org/t/separate-files-dont-work/19348)

<div class="topic-metadata">

**Author:** [@DaveDonnie](https://discourse.processing.org/u/DaveDonnie)\
**Replies:** 1\
**Last updated:** [April 2, 2020, 9:30pm UTC](https://discourse.processing.org/t/separate-files-dont-work/19348 "2020-04-02T21:30:56Z")

</div>

I was trying to replicate something from the coding train, and I made a file called block.js which looks like this: class Block { constructor(x,w) { this.x = x; this.y = height - w; this.w = w } show() { f…

---

## [P5() instance inside p5.Vector?](https://discourse.processing.org/t/p5-instance-inside-p5-vector/19330)

<div class="topic-metadata">

**Author:** [@marcg](https://discourse.processing.org/u/marcg)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 7:02pm UTC](https://discourse.processing.org/t/p5-instance-inside-p5-vector/19330 "2020-04-02T19:02:56Z")

</div>

Hi there. Recently I tried optimising a project I have and I noticed something strange. The p5.Vector() object contains an instance of p5()… the whole p5() object Inside the src code I found this p5.Vector = function V…

---

## [Hi I need help please :(](https://discourse.processing.org/t/hi-i-need-help-please/19343)

<div class="topic-metadata">

**Author:** [@DTTTO](https://discourse.processing.org/u/DTTTO)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 4:52pm UTC](https://discourse.processing.org/t/hi-i-need-help-please/19343 "2020-04-02T16:52:40Z")

</div>

for my processing project im trying to make 3 pandas holding green bamboo. The bamboo is supposed to be made with using a quad. And it also needs to be used with keypressed, everytime I press the key it should turn to a …

---

## [ArrayList of Arrays for Interactive Shapes](https://discourse.processing.org/t/arraylist-of-arrays-for-interactive-shapes/19336)

<div class="topic-metadata">

**Author:** [@jaschag](https://discourse.processing.org/u/jaschag)\
**Replies:** 6\
**Last updated:** [April 2, 2020, 4:46pm UTC](https://discourse.processing.org/t/arraylist-of-arrays-for-interactive-shapes/19336 "2020-04-02T16:46:18Z")

</div>

I have created an ArrayList of arrays. Each array in the ArrayList should contain the mouseX and mouseY positions for one drawing frame. The ArrayList is to be expanded by one element(array) each frame. However, when ac…

---

## [Perlin Noise Project](https://discourse.processing.org/t/perlin-noise-project/19182)

<div class="topic-metadata">

**Author:** [@Michael\_processing](https://discourse.processing.org/u/Michael_processing)\
**Replies:** 3\
**Last updated:** [April 2, 2020, 4:33pm UTC](https://discourse.processing.org/t/perlin-noise-project/19182 "2020-04-02T16:33:34Z")

</div>

Hi! I found this code on openprocessing.org but I can’t get it to work in Processing. I would like to make my own version of it an be able to change it later on but I can’t start experimenting because I don’t know how t…

---

## [FFMPEG with VideoExport Library crashing](https://discourse.processing.org/t/ffmpeg-with-videoexport-library-crashing/19294)

<div class="topic-metadata">

**Author:** [@Alesk1969](https://discourse.processing.org/u/Alesk1969)\
**Replies:** 1\
**Last updated:** [April 2, 2020, 4:20pm UTC](https://discourse.processing.org/t/ffmpeg-with-videoexport-library-crashing/19294 "2020-04-02T16:20:22Z")

</div>

Hi everyone, I’m having a hard time trying to export my sketch as a video. When I tried using the Movie Maker tool, my screen just froze, and it crashed. So I decided to use the Video Export Library. I installed Ffmpe…

---

## [Hi can anyone help me with my game?](https://discourse.processing.org/t/hi-can-anyone-help-me-with-my-game/19162)

<div class="topic-metadata">

**Author:** [@alex21brom](https://discourse.processing.org/u/alex21brom)\
**Replies:** 10\
**Last updated:** [April 2, 2020, 2:52pm UTC](https://discourse.processing.org/t/hi-can-anyone-help-me-with-my-game/19162 "2020-04-02T14:52:06Z")

</div>

i am trying to make this image appear at random heights continuously class Chaser { int x; int y; float ran; int rani; PImage carimageY, carimageN, carimageW; Chaser() { x = Lane(); y = height-50; carimageY=lo…

---

## [rotationX/rotationY getting really slow](https://discourse.processing.org/t/rotationx-rotationy-getting-really-slow/19151)

<div class="topic-metadata">

**Author:** [@rubbs](https://discourse.processing.org/u/rubbs)\
**Replies:** 8\
**Last updated:** [April 2, 2020, 1:43pm UTC](https://discourse.processing.org/t/rotationx-rotationy-getting-really-slow/19151 "2020-04-02T13:43:03Z")

</div>

the rotation is gradually getting slower and really laggy, anyone know why this is happening? Many thanks, Callum // ------------------------------------START------------------------------------ // ~variables & imports…

---

## [Expecting }, found 'else'](https://discourse.processing.org/t/expecting-found-else/19328)

<div class="topic-metadata">

**Author:** [@soolim](https://discourse.processing.org/u/soolim)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 1:25pm UTC](https://discourse.processing.org/t/expecting-found-else/19328 "2020-04-02T13:25:16Z")

</div>

Hello. An error occurred during processing coding. I don’t know what the problem is. In points (a,b), a wants to get a +d(random) The error is the same as ’ expecting }, found ‘else’ '. If you’re good at processin…

---

## [Many bouncing balls](https://discourse.processing.org/t/many-bouncing-balls/19165)

<div class="topic-metadata">

**Author:** [@dimdim](https://discourse.processing.org/u/dimdim)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 3:21am UTC](https://discourse.processing.org/t/many-bouncing-balls/19165 "2020-04-02T03:21:16Z")

</div>

hi everyone, i have problem with my codes. i wanna try making animation many bouncing balls. my bouncing balls solved when all the balls force the all windows’s side. but the problem is the balls is still through the oth…

---

## [How would I modify this code to change the output of the code](https://discourse.processing.org/t/how-would-i-modify-this-code-to-change-the-output-of-the-code/19085)

<div class="topic-metadata">

**Author:** [@senior](https://discourse.processing.org/u/senior)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 4:35pm UTC](https://discourse.processing.org/t/how-would-i-modify-this-code-to-change-the-output-of-the-code/19085 "2020-03-27T16:35:38Z")

</div>

How would I modify this code to change the output of the code so that the flat grid looks like a U instead of flat. Basically how to do I move up the corner positions of the grid? Thank you for your help \</\> code is be…

---

## [New and totally stuck on including sketch with WEBGL font into an HTML page](https://discourse.processing.org/t/new-and-totally-stuck-on-including-sketch-with-webgl-font-into-an-html-page/19310)

<div class="topic-metadata">

**Author:** [@melissaUK](https://discourse.processing.org/u/melissaUK)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 9:49pm UTC](https://discourse.processing.org/t/new-and-totally-stuck-on-including-sketch-with-webgl-font-into-an-html-page/19310 "2020-04-01T21:49:11Z")

</div>

I’m so stuck. I have been using the p5.js editor online and I am loving it. But I want to include the sketch in an html page, eventually making it an animated header. So I’m trying to work it out. I’ve downloaded, and sk…

---

## [Does anyone know how to make a play button for a game?](https://discourse.processing.org/t/does-anyone-know-how-to-make-a-play-button-for-a-game/19302)

<div class="topic-metadata">

**Author:** [@Oppyusa](https://discourse.processing.org/u/Oppyusa)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 8:44pm UTC](https://discourse.processing.org/t/does-anyone-know-how-to-make-a-play-button-for-a-game/19302 "2020-04-01T20:44:31Z")

</div>

I am trying to make a game and don’t know how to make the background change until a new button is pressed. Here is my code: PImage bg; int y; void setup() { size(1000, 700); bg = loadImage("download.jpeg"); } boo…

---

## [Wrap Text to Shapes](https://discourse.processing.org/t/wrap-text-to-shapes/18756)

<div class="topic-metadata">

**Author:** [@robdin](https://discourse.processing.org/u/robdin)\
**Replies:** 6\
**Last updated:** [April 1, 2020, 8:22pm UTC](https://discourse.processing.org/t/wrap-text-to-shapes/18756 "2020-04-01T20:22:46Z")

</div>

Hello, I’m traying to wrap a image to shape. I see that i can do it with a shape and a texture. The only problem is that textureWrape(textureWrap() / Reference / Processing.org) seems to works only on a beginshape and …

---

## [Animating a scene with cars and planes (help and challenge)](https://discourse.processing.org/t/animating-a-scene-with-cars-and-planes-help-and-challenge/19232)

<div class="topic-metadata">

**Author:** [@Booijink747](https://discourse.processing.org/u/Booijink747)\
**Replies:** 11\
**Last updated:** [April 1, 2020, 6:53pm UTC](https://discourse.processing.org/t/animating-a-scene-with-cars-and-planes-help-and-challenge/19232 "2020-04-01T18:53:48Z")

</div>

I would like to make something like this but then just a little bit different, I wondered whether some of you know how to make this exact thing in Processing 3, so I can look at the code and make my own var…

---

## [Romance and the Telescope: A Movie made with Processing](https://discourse.processing.org/t/romance-and-the-telescope-a-movie-made-with-processing/19297)

<div class="topic-metadata">

**Author:** [@ThinkingMetal](https://discourse.processing.org/u/ThinkingMetal)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 8:07pm UTC](https://discourse.processing.org/t/romance-and-the-telescope-a-movie-made-with-processing/19297 "2020-04-01T20:07:26Z")

</div>

We made a movie with Processing. “Romance and the Telescope” was coded in Processing, with artwork designed in packages like Graphic, GIMP and a few others. Enjoy;

---

## [Quit program from JOptionpane](https://discourse.processing.org/t/quit-program-from-joptionpane/18396)

<div class="topic-metadata">

**Author:** [@NotConsumable](https://discourse.processing.org/u/NotConsumable)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 12:46am UTC](https://discourse.processing.org/t/quit-program-from-joptionpane/18396 "2020-03-05T00:46:44Z")

</div>

I am wondering if it is an if statement or a loop along side a pre determined string in order to make the exit(); function run specifically when a certain phrase is typed into the message box in JOptionpane.showInputDia…

---

## [Problem with missing ball (foo)](https://discourse.processing.org/t/problem-with-missing-ball-foo/19276)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 7\
**Last updated:** [April 1, 2020, 8:01pm UTC](https://discourse.processing.org/t/problem-with-missing-ball-foo/19276 "2020-04-01T20:01:25Z")

</div>

I have a sketch (see below) where a ball moves. When I tested it, everything seems to work but now the ball has gone off the screen to the right somewhere. How do I get my ball back? Ball\[\] balls = new Ball\[1\]; void s…

---

## [Requirements that Processing has for loading TIFF files](https://discourse.processing.org/t/requirements-that-processing-has-for-loading-tiff-files/19281)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 14\
**Last updated:** [April 1, 2020, 8:00pm UTC](https://discourse.processing.org/t/requirements-that-processing-has-for-loading-tiff-files/19281 "2020-04-01T20:00:46Z")

</div>

Is there a way to find out the requirements that Processing has for loading TIFF files? The documents say only gif, .jpg, .tga, or .png but I can load TIFF if the TIFF has been made by Processing. Error: Processing can …

---

## [FIRST ONE TO MAKE THE EXACT SAME THING WINS! (against boredom by corona)](https://discourse.processing.org/t/first-one-to-make-the-exact-same-thing-wins-against-boredom-by-corona/19233)

<div class="topic-metadata">

**Author:** [@Booijink747](https://discourse.processing.org/u/Booijink747)\
**Replies:** 0\
**Last updated:** [March 31, 2020, 8:29am UTC](https://discourse.processing.org/t/first-one-to-make-the-exact-same-thing-wins-against-boredom-by-corona/19233 "2020-03-31T08:29:16Z")

</div>

requirements: there is an airplane or a bird in the air. the left-front and right-back light are connected. (they are ment for horizontal driving cars). when the light turns red, the cars stop vertical ca…

---

## [Array with for loop exercise in Nyhoff book](https://discourse.processing.org/t/array-with-for-loop-exercise-in-nyhoff-book/19277)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 3\
**Last updated:** [April 1, 2020, 5:44pm UTC](https://discourse.processing.org/t/array-with-for-loop-exercise-in-nyhoff-book/19277 "2020-04-01T17:44:45Z")

</div>

This is an exercise in the Nyhoff book. I am trying to figure out how to output to the consul the column position and the row position 5 times. So that it reads like this: column: random number, row: random number col…

---

## [Modify text alignment of a ScrollableList in ControlP5 library](https://discourse.processing.org/t/modify-text-alignment-of-a-scrollablelist-in-controlp5-library/18835)

<div class="topic-metadata">

**Author:** [@NaniAromix](https://discourse.processing.org/u/NaniAromix)\
**Replies:** 6\
**Last updated:** [April 1, 2020, 4:04pm UTC](https://discourse.processing.org/t/modify-text-alignment-of-a-scrollablelist-in-controlp5-library/18835 "2020-04-01T16:04:44Z")

</div>

I am trying to create a menu type list in my program, which when clicked reveals a drop down list of different screens to show next. This is how it looks at the moment: I have changed the font but can’t get to center …

---

## [GtextField.setNumericType(int) 'not found'](https://discourse.processing.org/t/gtextfield-setnumerictype-int-not-found/19051)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 3:39pm UTC](https://discourse.processing.org/t/gtextfield-setnumerictype-int-not-found/19051 "2020-04-01T15:39:25Z")

</div>

It looks like this is only available in G4P 4.3.3, which I can’t seem to find a download for (4.3.2 is the most recent I can find). When I look through both the java docs and even the source of previous versions I’m not …

---

## [How to move obstacles?](https://discourse.processing.org/t/how-to-move-obstacles/18944)

<div class="topic-metadata">

**Author:** [@NotConsumable](https://discourse.processing.org/u/NotConsumable)\
**Replies:** 6\
**Last updated:** [April 1, 2020, 3:37pm UTC](https://discourse.processing.org/t/how-to-move-obstacles/18944 "2020-04-01T15:37:42Z")

</div>

So I am trying to make a frogger game and I have everything doing what I need it to do, but my hazards wont move and everything i try to do does not work? I have no idea how to make them move and how to add another row a…

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

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