# Latest

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

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

**Page:** 567

---

## [Materials not working on iPhone in 3D](https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006)

<div class="topic-metadata">

**Author:** [@sscotti](https://discourse.processing.org/u/sscotti)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 6:51pm UTC](https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006 "2018-10-31T18:51:46Z")

</div>

On newer iPhones (8 and greater), the materials and shading in examples: https://p5js.org/examples/3d-multiple-lights.html https://p5js.org/examples/3d-materials.html https://p5js.org/examples/3d-textures.html are no…

---

## [Updating to processing latest IDE](https://discourse.processing.org/t/updating-to-processing-latest-ide/4939)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 6:39pm UTC](https://discourse.processing.org/t/updating-to-processing-latest-ide/4939 "2018-10-31T18:39:41Z")

</div>

I want to keep writing and compiling sketches in 2.2.1 But my current IDE from 2.2.1 download does not include line numbers. I want to use the current IDE with processing 2.2.1 Is this possible , to isolate IDE from p…

---

## [Draw order in 3D](https://discourse.processing.org/t/draw-order-in-3d/4789)

<div class="topic-metadata">

**Author:** [@garroad\_ran](https://discourse.processing.org/u/garroad_ran)\
**Replies:** 15\
**Last updated:** [October 31, 2018, 6:06pm UTC](https://discourse.processing.org/t/draw-order-in-3d/4789 "2018-10-31T18:06:44Z")

</div>

I’m getting into 3d for the first time and I’m not quite sure how I’m supposed to handle draw order. The easiest way to explain my question is probably with an image and code. void setup() { size(1280, 720, P3D); …

---

## [Offscreen buffer offset weirdness - "works on THIS mac"](https://discourse.processing.org/t/offscreen-buffer-offset-weirdness-works-on-this-mac/4926)

<div class="topic-metadata">

**Author:** [@kirkjerk](https://discourse.processing.org/u/kirkjerk)\
**Replies:** 7\
**Last updated:** [October 31, 2018, 5:27pm UTC](https://discourse.processing.org/t/offscreen-buffer-offset-weirdness-works-on-this-mac/4926 "2018-10-31T17:27:00Z")

</div>

I made a version of A.K.Dewdney’s famous Wa-Tor - https://toys.alienbill.com/wator/index2.html I used instance mode, because I wanted to have the main cellular automata area send data to a seperate canvas for it to gra…

---

## [Using Serial data in real time?](https://discourse.processing.org/t/using-serial-data-in-real-time/5056)

<div class="topic-metadata">

**Author:** [@csanyipal](https://discourse.processing.org/u/csanyipal)\
**Replies:** 4\
**Last updated:** [October 31, 2018, 5:25pm UTC](https://discourse.processing.org/t/using-serial-data-in-real-time/5056 "2018-10-31T17:25:39Z")

</div>

Hi, I have a project which uses data from the Serial port. The sketch is the following: // Processing code for this example // Tweak the Arduino Logo // by Scott Fitzgerald // This example code is in the publi…

---

## [Chess Board: make all fields flash](https://discourse.processing.org/t/chess-board-make-all-fields-flash/4943)

<div class="topic-metadata">

**Author:** [@hexe43](https://discourse.processing.org/u/hexe43)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 5:22pm UTC](https://discourse.processing.org/t/chess-board-make-all-fields-flash/4943 "2018-10-31T17:22:56Z")

</div>

Hi, I am new in processing and I have to make my chess board flash (every field in a random color in a specific frame rate) when I press enter and make it stop flashing when I press it again. I already tried several thi…

---

## [For Loop Problem](https://discourse.processing.org/t/for-loop-problem/4913)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 4\
**Last updated:** [October 31, 2018, 5:16pm UTC](https://discourse.processing.org/t/for-loop-problem/4913 "2018-10-31T17:16:07Z")

</div>

I have code that initializes a 2d array, but when the Y goes to zero it gives an array out of bounds exception. Why is this? How do I fix it?

---

## [Arduino + Raspberry Pi - install IDE](https://discourse.processing.org/t/arduino-raspberry-pi-install-ide/5062)

<div class="topic-metadata">

**Author:** [@tgoode451](https://discourse.processing.org/u/tgoode451)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 4:50pm UTC](https://discourse.processing.org/t/arduino-raspberry-pi-install-ide/5062 "2018-10-31T16:50:23Z")

</div>

---

## [Drawing waveform into Wavetable from Minim](https://discourse.processing.org/t/drawing-waveform-into-wavetable-from-minim/5052)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 0\
**Last updated:** [October 31, 2018, 2:11pm UTC](https://discourse.processing.org/t/drawing-waveform-into-wavetable-from-minim/5052 "2018-10-31T14:11:51Z")

</div>

Hello and good afternoon! I am having some issues inserting this method into the wavetable examples in Minim library. I’d like to draw the waveform like pure data when plotting the waveform. Maybe with the mousePresse…

---

## [Minim Library NullPointerException upon loading file](https://discourse.processing.org/t/minim-library-nullpointerexception-upon-loading-file/5051)

<div class="topic-metadata">

**Author:** [@Marcus152](https://discourse.processing.org/u/Marcus152)\
**Replies:** 0\
**Last updated:** [October 31, 2018, 2:05pm UTC](https://discourse.processing.org/t/minim-library-nullpointerexception-upon-loading-file/5051 "2018-10-31T14:05:05Z")

</div>

Hi again, I seem to be having a problem with the minim library in Processing 3.0b5. I’ve properly loaded in my audio files, but when I start the game, it gives me this error in the syntax each time: ==== JavaSound Minim…

---

## [Tool to demonstrate translate, rotate, scale](https://discourse.processing.org/t/tool-to-demonstrate-translate-rotate-scale/5049)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 0\
**Last updated:** [October 31, 2018, 12:38pm UTC](https://discourse.processing.org/t/tool-to-demonstrate-translate-rotate-scale/5049 "2018-10-31T12:38:56Z")

</div>

I was asked to share the program I used in this tutorial to explain translate & rotate: https://funprogramming.org/28-Rotate-and-even-move-your-axes.html In case any educators find it useful it’s now here: Note: …

---

## [Need some home help combining both of these](https://discourse.processing.org/t/need-some-home-help-combining-both-of-these/5011)

<div class="topic-metadata">

**Author:** [@orb](https://discourse.processing.org/u/orb)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 10:56am UTC](https://discourse.processing.org/t/need-some-home-help-combining-both-of-these/5011 "2018-10-31T10:56:26Z")

</div>

I’m trying make the player shoot the bullets, but I have no idea how. What I do know that is that the second code can make player shoot bullets. I just need help making them fit each other. \[code re-posted below\]

---

## [Need Simple Colision Example](https://discourse.processing.org/t/need-simple-colision-example/5002)

<div class="topic-metadata">

**Author:** [@Staalone](https://discourse.processing.org/u/Staalone)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 9:31am UTC](https://discourse.processing.org/t/need-simple-colision-example/5002 "2018-10-31T09:31:27Z")

</div>

Hy, I need a code for a ball that’s controlled by the mouse that when it hits any of the corners the ball goes back to the middle, thank you!

---

## [P5.js sketches with terrible framerate on chrome](https://discourse.processing.org/t/p5-js-sketches-with-terrible-framerate-on-chrome/499)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 19\
**Last updated:** [October 31, 2018, 3:06am UTC](https://discourse.processing.org/t/p5-js-sketches-with-terrible-framerate-on-chrome/499 "2018-10-31T03:06:23Z")

</div>

Hi, I developed several games using P5.js and I managed to make them work around 60fps. Sadly, I discovered that they’re working around 10fps on a lot of browsers including recent versions of chrome and safari. Here is …

---

## [Processing on a free Wix-site?](https://discourse.processing.org/t/processing-on-a-free-wix-site/5013)

<div class="topic-metadata">

**Author:** [@bobbiD](https://discourse.processing.org/u/bobbiD)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 12:44am UTC](https://discourse.processing.org/t/processing-on-a-free-wix-site/5013 "2018-10-31T00:44:04Z")

</div>

Hello! I started the code since a few months on processing for artschool, and I would have liked integrating directly a processing code into a page of my Free Wixsite. Is it possible ? and if yes have you some informati…

---

## [How to make a color palette from an image ordered by frequence](https://discourse.processing.org/t/how-to-make-a-color-palette-from-an-image-ordered-by-frequence/4850)

<div class="topic-metadata">

**Author:** [@BulVvyvXsWDYZl8J](https://discourse.processing.org/u/BulVvyvXsWDYZl8J)\
**Replies:** 9\
**Last updated:** [October 30, 2018, 10:20pm UTC](https://discourse.processing.org/t/how-to-make-a-color-palette-from-an-image-ordered-by-frequence/4850 "2018-10-30T22:20:42Z")

</div>

My goal is to get an array that’ll show in order the most used colours in an image. The catch is that the colours should be perceptually different. I have working code that does the first part — get all the colours in o…

---

## [Button automatically clicked once at the beginning of the program](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995)

<div class="topic-metadata">

**Author:** [@AllenLiu574](https://discourse.processing.org/u/AllenLiu574)\
**Replies:** 3\
**Last updated:** [October 30, 2018, 6:55pm UTC](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995 "2018-10-30T18:55:04Z")

</div>

The following is part of the testing code I’m working on: I was trying to implement the button, and when it is clicked, it will print out the message “Button pressed”. I ran the program by clicking the run button on the…

---

## [PVectors, traveling a path](https://discourse.processing.org/t/pvectors-traveling-a-path/4887)

<div class="topic-metadata">

**Author:** [@jack.sibert](https://discourse.processing.org/u/jack.sibert)\
**Replies:** 4\
**Last updated:** [October 30, 2018, 6:50pm UTC](https://discourse.processing.org/t/pvectors-traveling-a-path/4887 "2018-10-30T18:50:54Z")

</div>

I’m trying to write a program that has a Ball object travel across paths determined by randomly placed PVector objects. In the Ball class i’ve written a move method that moves a Ball to the nearest PVector object in the…

---

## [Image filter example in a loop draw](https://discourse.processing.org/t/image-filter-example-in-a-loop-draw/4905)

<div class="topic-metadata">

**Author:** [@antocreo](https://discourse.processing.org/u/antocreo)\
**Replies:** 4\
**Last updated:** [October 30, 2018, 6:39pm UTC](https://discourse.processing.org/t/image-filter-example-in-a-loop-draw/4905 "2018-10-30T18:39:23Z")

</div>

Hi, I’ve been playing around with P5js and I am trying to use the image filter on an event like mouseMoved. I am having lot of trouble. The only examples I found use the filter in the setup function. so, how do you c…

---

## [Unwanted delay when using sound library](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 5\
**Last updated:** [October 30, 2018, 6:24pm UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810 "2018-10-30T18:24:01Z")

</div>

Hi I am trying to make a video game (undertale) in processing but I have come across some problems along the way. I am trying to import some mp3 files but when i start the program it says “INFO: JSyn: default output late…

---

## [How to make cooldown timer for button](https://discourse.processing.org/t/how-to-make-cooldown-timer-for-button/4890)

<div class="topic-metadata">

**Author:** [@codingsucks](https://discourse.processing.org/u/codingsucks)\
**Replies:** 3\
**Last updated:** [October 30, 2018, 6:36pm UTC](https://discourse.processing.org/t/how-to-make-cooldown-timer-for-button/4890 "2018-10-30T18:36:56Z")

</div>

I am looking for a way to add a 4 second cool down on using the button ‘w’. How do I achieve this?

---

## [CC Fest SF on Oct 13 - Creative Coding Fest for Students and Teachers](https://discourse.processing.org/t/cc-fest-sf-on-oct-13-creative-coding-fest-for-students-and-teachers/3533)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 5\
**Last updated:** [October 30, 2018, 5:24pm UTC](https://discourse.processing.org/t/cc-fest-sf-on-oct-13-creative-coding-fest-for-students-and-teachers/3533 "2018-10-30T17:24:22Z")

</div>

\#CCFestSF is on October 13, Saturday, at San Francisco Friends School. It will be a day of creative coding with students and teachers. The event is free, inclusive, and welcomes beginners. Details and RSVP is at http://c…

---

## [Printing a sequence of number on the canvas using text()](https://discourse.processing.org/t/printing-a-sequence-of-number-on-the-canvas-using-text/4936)

<div class="topic-metadata">

**Author:** [@Dee-3\_123](https://discourse.processing.org/u/Dee-3_123)\
**Replies:** 5\
**Last updated:** [October 30, 2018, 4:41pm UTC](https://discourse.processing.org/t/printing-a-sequence-of-number-on-the-canvas-using-text/4936 "2018-10-30T16:41:09Z")

</div>

Hi! there, I am trying to print a sequence of number on canvas using text() and for loop but those numbers are overwriting on one another. actually I want to print Fibonacci sequence on the canvas and the number of step…

---

## [Advice to help Ambilight calculate Arduino](https://discourse.processing.org/t/advice-to-help-ambilight-calculate-arduino/5028)

<div class="topic-metadata">

**Author:** [@Mationdeed](https://discourse.processing.org/u/Mationdeed)\
**Replies:** 1\
**Last updated:** [October 30, 2018, 4:12pm UTC](https://discourse.processing.org/t/advice-to-help-ambilight-calculate-arduino/5028 "2018-10-30T16:12:12Z")

</div>

Well, this is Ambilight. I find it easier to use Arduino than to design your own hardware. There are also many Arduino users on the net

---

## [Python Processing in own IDLE](https://discourse.processing.org/t/python-processing-in-own-idle/1319)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 3\
**Last updated:** [October 30, 2018, 12:16pm UTC](https://discourse.processing.org/t/python-processing-in-own-idle/1319 "2018-10-30T12:16:12Z")

</div>

I just wondered if there was a way that I could write/run python processing sketches in an IDLE instead of the default processing IDLE (for example Sublime, Atom, etc). Many thanks!

---

## [Geomerative - fitting text inside arbitrary shapes?](https://discourse.processing.org/t/geomerative-fitting-text-inside-arbitrary-shapes/4917)

<div class="topic-metadata">

**Author:** [@Angle](https://discourse.processing.org/u/Angle)\
**Replies:** 11\
**Last updated:** [October 30, 2018, 1:09am UTC](https://discourse.processing.org/t/geomerative-fitting-text-inside-arbitrary-shapes/4917 "2018-10-30T01:09:03Z")

</div>

I’m trying to fit text into shapes, so as to get an effect like so: I’m using the Geomerative library, but the RShape.contains(RShape) doesn’t seem to be working for me. It always seems to return false, no matter what…

---

## [Why does the persistence of vision remain](https://discourse.processing.org/t/why-does-the-persistence-of-vision-remain/4668)

<div class="topic-metadata">

**Author:** [@koba](https://discourse.processing.org/u/koba)\
**Replies:** 7\
**Last updated:** [October 30, 2018, 1:03am UTC](https://discourse.processing.org/t/why-does-the-persistence-of-vision-remain/4668 "2018-10-30T01:03:00Z")

</div>

why does the persistence of vision remain in this program ? int x = 0; void setup(){ size(400,400); noStroke(); } void draw(){ fill(255); ellipse(x,200,10,10); x++; fill(0); ellipse(x,200,10,10); }

---

## [Random variable](https://discourse.processing.org/t/random-variable/4797)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 6\
**Last updated:** [October 30, 2018, 12:17am UTC](https://discourse.processing.org/t/random-variable/4797 "2018-10-30T00:17:17Z")

</div>

Would this produce a 1/10 chance that action A is played? float ran = random(10); if (ran == 2) { //action A } else if (ran != 2) { //action B }

---

## [Finding info about add-on tools?](https://discourse.processing.org/t/finding-info-about-add-on-tools/4155)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 4\
**Last updated:** [October 29, 2018, 10:27pm UTC](https://discourse.processing.org/t/finding-info-about-add-on-tools/4155 "2018-10-29T22:27:10Z")

</div>

I have just discovered the amazing, gorgeous add-on tool ‘Perceptual color picker’ and have added it and have been happily blundering my way around it. However I can’t find any help or reference for it. There seems …

---

## [Installing javax.mail library in processing](https://discourse.processing.org/t/installing-javax-mail-library-in-processing/4910)

<div class="topic-metadata">

**Author:** [@wiwi1212](https://discourse.processing.org/u/wiwi1212)\
**Replies:** 3\
**Last updated:** [October 29, 2018, 8:35pm UTC](https://discourse.processing.org/t/installing-javax-mail-library-in-processing/4910 "2018-10-29T20:35:47Z")

</div>

Hi I using processing for long time and i need to sedn an email with this tool (processing) and i don’t know from where download and how to use javax.mai. I will be very thankful for help.

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

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