# Latest

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

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

**Page:** 578

---

## [mouseClicked() not working](https://discourse.processing.org/t/mouseclicked-not-working/4004)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 4\
**Last updated:** [October 6, 2018, 9:00pm UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004 "2018-10-06T21:00:55Z")

</div>

Why mouseClicked() not working on APDE? Im using APDE 0.5.0 Code: https://pastebin.com/91wyHgzY

---

## [Can't build, gradle errors](https://discourse.processing.org/t/cant-build-gradle-errors/4197)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 0\
**Last updated:** [October 6, 2018, 6:48pm UTC](https://discourse.processing.org/t/cant-build-gradle-errors/4197 "2018-10-06T18:48:55Z")

</div>

I’m trying to setup android mode, but I’m having a problem compiling my first sketch. https://pastebin.com/rNvd3J82 here is the console output It seems aidl is missing and gradle isn’t finding the right files? A quic…

---

## [P5.dom.js 'createElement' function not able to set properties?](https://discourse.processing.org/t/p5-dom-js-createelement-function-not-able-to-set-properties/4196)

<div class="topic-metadata">

**Author:** [@repgainer3](https://discourse.processing.org/u/repgainer3)\
**Replies:** 4\
**Last updated:** [October 6, 2018, 7:04pm UTC](https://discourse.processing.org/t/p5-dom-js-createelement-function-not-able-to-set-properties/4196 "2018-10-06T19:04:57Z")

</div>

Hi, I’m building a forum site from scratch and I’m using the p5.dom.js library to speed up the process. I’m attempting to create a TR tag and three TD tags that go inside the TR, after that I want the TR to go inside of…

---

## [Need help with exporting as pdf](https://discourse.processing.org/t/need-help-with-exporting-as-pdf/4193)

<div class="topic-metadata">

**Author:** [@marto](https://discourse.processing.org/u/marto)\
**Replies:** 2\
**Last updated:** [October 6, 2018, 7:01pm UTC](https://discourse.processing.org/t/need-help-with-exporting-as-pdf/4193 "2018-10-06T19:01:24Z")

</div>

Hello guys, I am new to programming and processing and I have some issues with exporting my creation as pdf. I am using the PDF Files from 3D Geometry section of the article on exporting. My issue is that the pdf only sh…

---

## [Moving an ellipse in all four corners](https://discourse.processing.org/t/moving-an-ellipse-in-all-four-corners/4195)

<div class="topic-metadata">

**Author:** [@JeromeBatchoski](https://discourse.processing.org/u/JeromeBatchoski)\
**Replies:** 2\
**Last updated:** [October 6, 2018, 6:11pm UTC](https://discourse.processing.org/t/moving-an-ellipse-in-all-four-corners/4195 "2018-10-06T18:11:38Z")

</div>

Hello, so im kinda struggling with creating an ellipse that moves around in a square movement. It must start in the top-left corner, and move towards the top-right, then moves to the bottom, then to the bottom-left, and …

---

## [How can you store floats in an array?](https://discourse.processing.org/t/how-can-you-store-floats-in-an-array/4184)

<div class="topic-metadata">

**Author:** [@ProsExplorer](https://discourse.processing.org/u/ProsExplorer)\
**Replies:** 4\
**Last updated:** [October 6, 2018, 6:06pm UTC](https://discourse.processing.org/t/how-can-you-store-floats-in-an-array/4184 "2018-10-06T18:06:06Z")

</div>

I’m trying to store float values in an array but it’s insisting that they must be stored as ‘int’. I need to have the fractional parts utilized so even though I could convert the floats with int(float) it’s not what I’m…

---

## [How to make and load personnal JSON file](https://discourse.processing.org/t/how-to-make-and-load-personnal-json-file/4191)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 1\
**Last updated:** [October 6, 2018, 6:02pm UTC](https://discourse.processing.org/t/how-to-make-and-load-personnal-json-file/4191 "2018-10-06T18:02:07Z")

</div>

Hi, I wanted to work with my own json data file, but it did not finish loading … :confused: the html page thanks

---

## [saveStrings() works but it shouldn't - or should it?](https://discourse.processing.org/t/savestrings-works-but-it-shouldnt-or-should-it/3802)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 4\
**Last updated:** [October 6, 2018, 1:37pm UTC](https://discourse.processing.org/t/savestrings-works-but-it-shouldnt-or-should-it/3802 "2018-10-06T13:37:02Z")

</div>

My app, which was originally programmed for Windows, uses loadStrings() and saveStrings() to save its settings. Under Processing for Android, I would have expected that saveStrings() doesn’t work (after reading https://f…

---

## [Change of the rotation origin of drawn object](https://discourse.processing.org/t/change-of-the-rotation-origin-of-drawn-object/4166)

<div class="topic-metadata">

**Author:** [@bugaj](https://discourse.processing.org/u/bugaj)\
**Replies:** 2\
**Last updated:** [October 6, 2018, 11:35am UTC](https://discourse.processing.org/t/change-of-the-rotation-origin-of-drawn-object/4166 "2018-10-06T11:35:25Z")

</div>

I’m learning about metods of moving objects in proccesing and I tried to make object to act like a tank. The problem is, in order to do so, i want it to rotate around one caterpillar while the other is working and vice v…

---

## [For loop doesnt work like I want](https://discourse.processing.org/t/for-loop-doesnt-work-like-i-want/4183)

<div class="topic-metadata">

**Author:** [@FreshlyChicken](https://discourse.processing.org/u/FreshlyChicken)\
**Replies:** 5\
**Last updated:** [October 6, 2018, 9:45am UTC](https://discourse.processing.org/t/for-loop-doesnt-work-like-i-want/4183 "2018-10-06T09:45:12Z")

</div>

Hello, First I show you my code. int\[\] randomZahl = {3,6,8,9,4}; void setup(){ size(500,500); } void draw(){ line(100,0,100,500); line(200,0,200,500); line(300,0,300,500); line(400,0,400,500); line(500,100,0,100);…

---

## [Creating arrays of colors](https://discourse.processing.org/t/creating-arrays-of-colors/4180)

<div class="topic-metadata">

**Author:** [@ducco](https://discourse.processing.org/u/ducco)\
**Replies:** 4\
**Last updated:** [October 6, 2018, 8:46am UTC](https://discourse.processing.org/t/creating-arrays-of-colors/4180 "2018-10-06T08:46:23Z")

</div>

hi im trying to make an array in p5js of colors and defining them individually in setup and i always get the error “undefined is an invalid colorMode.” and i cant figure out why or find any specific documentation on defi…

---

## [ArrayoutOfBoundsException](https://discourse.processing.org/t/arrayoutofboundsexception/4182)

<div class="topic-metadata">

**Author:** [@FreshlyChicken](https://discourse.processing.org/u/FreshlyChicken)\
**Replies:** 3\
**Last updated:** [October 6, 2018, 7:29am UTC](https://discourse.processing.org/t/arrayoutofboundsexception/4182 "2018-10-06T07:29:30Z")

</div>

Hello, First I show you my code. int\[\] randomZahl = {3,6,8,9,4}; void setup(){ size(500,500); } void draw(){ line(100,0,100,500); line(200,0,200,500); line(300,0,300,500); line(400,0,400,500); …

---

## [Accessing variables from PVector arraylist from draw()](https://discourse.processing.org/t/accessing-variables-from-pvector-arraylist-from-draw/4179)

<div class="topic-metadata">

**Author:** [@LRyuugaHideki](https://discourse.processing.org/u/LRyuugaHideki)\
**Replies:** 0\
**Last updated:** [October 6, 2018, 4:44am UTC](https://discourse.processing.org/t/accessing-variables-from-pvector-arraylist-from-draw/4179 "2018-10-06T04:44:30Z")

</div>

I’m coding for a two-player game where each player has a colour which is changed when the beam shot out from their opponent touches them. i.e. When Red player’s beam hits blue player, the the tint of the blue player supp…

---

## [Update asset, rebuild quickly - gradle command line for that?](https://discourse.processing.org/t/update-asset-rebuild-quickly-gradle-command-line-for-that/4114)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 7:58pm UTC](https://discourse.processing.org/t/update-asset-rebuild-quickly-gradle-command-line-for-that/4114 "2018-10-05T19:58:51Z")

</div>

Does anybody know the command line to repeat the build process for a temporary build directory (found on disk after “Run in emulator”)? The Processing for Android site states unter ‘What’s new in version 4’: “The export …

---

## [Access app Menu](https://discourse.processing.org/t/access-app-menu/4089)

<div class="topic-metadata">

**Author:** [@carbonne](https://discourse.processing.org/u/carbonne)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 7:42pm UTC](https://discourse.processing.org/t/access-app-menu/4089 "2018-10-05T19:42:45Z")

</div>

Hello. I’ ve just exported my first little app and noticed the menu that comes with it with just one item which is the name of my app. My question is can I access that menu, change it, create new items and use them to …

---

## [\[SOLVED\] Help Updating G4P GUI Mandelbrot Code to Processing 3x](https://discourse.processing.org/t/solved-help-updating-g4p-gui-mandelbrot-code-to-processing-3x/4143)

<div class="topic-metadata">

**Author:** [@ProsExplorer](https://discourse.processing.org/u/ProsExplorer)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 4:27pm UTC](https://discourse.processing.org/t/solved-help-updating-g4p-gui-mandelbrot-code-to-processing-3x/4143 "2018-10-05T16:27:08Z")

</div>

In an attempt to better understand Qscript Math in relation to what I’m already familiar with and help develop the other programs I’m working on I found this legacy source code from quarks openprocessing page. I realize …

---

## [GUI Library recomendation](https://discourse.processing.org/t/gui-library-recomendation/4157)

<div class="topic-metadata">

**Author:** [@pfuentes](https://discourse.processing.org/u/pfuentes)\
**Replies:** 3\
**Last updated:** [October 5, 2018, 4:11pm UTC](https://discourse.processing.org/t/gui-library-recomendation/4157 "2018-10-05T16:11:51Z")

</div>

Hello, I’m new to processing and have been taking a look at the libraries, ControlP5 and G4P to make GUIs. These libraries don’t seem to be updated for a long time. Could someone recommend me a library where to make mo…

---

## [P5.js tint() Memory Error](https://discourse.processing.org/t/p5-js-tint-memory-error/4134)

<div class="topic-metadata">

**Author:** [@currymike](https://discourse.processing.org/u/currymike)\
**Replies:** 6\
**Last updated:** [October 5, 2018, 3:11pm UTC](https://discourse.processing.org/t/p5-js-tint-memory-error/4134 "2018-10-05T15:11:08Z")

</div>

I’m running an app I just built on safari mobile and I’m getting some strange errors. I’m loading the p5.js & p5.sound libraries but at the moment I’m not using any of p5.sound in my code. That would be added later. I…

---

## [Excecute multiple arrays in one line?](https://discourse.processing.org/t/excecute-multiple-arrays-in-one-line/4137)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 10\
**Last updated:** [October 5, 2018, 2:35pm UTC](https://discourse.processing.org/t/excecute-multiple-arrays-in-one-line/4137 "2018-10-05T14:35:11Z")

</div>

Okay I know this probably sounds confusing and it’s most likely impossible, but I want to know if theres a way to tell Processing to do an action with all the different variables in one array. Like that: example\[0 to 4\] …

---

## [Forcing Redirect in p5](https://discourse.processing.org/t/forcing-redirect-in-p5/4154)

<div class="topic-metadata">

**Author:** [@dorf](https://discourse.processing.org/u/dorf)\
**Replies:** 1\
**Last updated:** [October 5, 2018, 5:07am UTC](https://discourse.processing.org/t/forcing-redirect-in-p5/4154 "2018-10-05T05:07:48Z")

</div>

Hey everybody! This is my first post here and in any real coding forum so I apologize if I come off very amateur (it’s because I am). I am having an issue where for a project I would like to hit the enter key and be imme…

---

## [Having an object fall down from top of screen from random x value](https://discourse.processing.org/t/having-an-object-fall-down-from-top-of-screen-from-random-x-value/4150)

<div class="topic-metadata">

**Author:** [@help.me](https://discourse.processing.org/u/help.me)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 1:57am UTC](https://discourse.processing.org/t/having-an-object-fall-down-from-top-of-screen-from-random-x-value/4150 "2018-10-05T01:57:21Z")

</div>

I’m currently making a game where numbers are supposed to fall from the top of the screen to the bottom. But i’m having trouble getting the numbers fall from random values from the top of the screen to the bottom. Can an…

---

## [Marching cubes toxiclibs](https://discourse.processing.org/t/marching-cubes-toxiclibs/4120)

<div class="topic-metadata">

**Author:** [@bryan](https://discourse.processing.org/u/bryan)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 12:41am UTC](https://discourse.processing.org/t/marching-cubes-toxiclibs/4120 "2018-10-05T00:41:49Z")

</div>

Hi everyone! I’m struggling trying to figure out how to load a volume dataset (like the example of MRI surface in the toxiclibs volume library). The thing is, that i cannot find other volume to upload successfully. in wh…

---

## [Processing Community Day @ Tunis](https://discourse.processing.org/t/processing-community-day-tunis/4147)

<div class="topic-metadata">

**Author:** [@Anas](https://discourse.processing.org/u/Anas)\
**Replies:** 0\
**Last updated:** [October 4, 2018, 11:18pm UTC](https://discourse.processing.org/t/processing-community-day-tunis/4147 "2018-10-04T23:18:26Z")

</div>

Hi ! I’m Anas from Tunis, and we plan to organize a PCD with the FanTeK team http://www.fantek.tn. It will be mostly an event to give beginner Workshops, to make Processing better known in Tunisia and to gather its comm…

---

## [ArrayIndexOutOfBoundsException: 230400](https://discourse.processing.org/t/arrayindexoutofboundsexception-230400/4086)

<div class="topic-metadata">

**Author:** [@mdeepak](https://discourse.processing.org/u/mdeepak)\
**Replies:** 8\
**Last updated:** [October 4, 2018, 5:44pm UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-230400/4086 "2018-10-04T17:44:31Z")

</div>

Was trying to do metaballs in processing and got this error on line 3 pixels\[index\] = color(x,0,y). Don’t know what caused it or how to fix it. The code doesn’t look any different from Shiffman’s coding challenge #28.

---

## [Fibonacci numbers with Function array](https://discourse.processing.org/t/fibonacci-numbers-with-function-array/4145)

<div class="topic-metadata">

**Author:** [@gisue](https://discourse.processing.org/u/gisue)\
**Replies:** 3\
**Last updated:** [October 4, 2018, 9:18pm UTC](https://discourse.processing.org/t/fibonacci-numbers-with-function-array/4145 "2018-10-04T21:18:13Z")

</div>

How can we use array function for Fibonacci? I want to dynamically increase the Array by adding the next Fibonacci numbers. I need to use Processing Array Function and rewrite function fibNumber with integer array fi…

---

## [How to multiply (a + bi)(a + bi) with this Complex Number Class?](https://discourse.processing.org/t/how-to-multiply-a-bi-a-bi-with-this-complex-number-class/4073)

<div class="topic-metadata">

**Author:** [@ProsExplorer](https://discourse.processing.org/u/ProsExplorer)\
**Replies:** 6\
**Last updated:** [October 4, 2018, 6:43pm UTC](https://discourse.processing.org/t/how-to-multiply-a-bi-a-bi-with-this-complex-number-class/4073 "2018-10-04T18:43:19Z")

</div>

I found an example for complex number set multiplication, but I’m new to classes and math functions in processing. I know that the class sets up the operations, though have no idea how to use it. Can someone give an exam…

---

## [How to make a random RGB color value for variable?](https://discourse.processing.org/t/how-to-make-a-random-rgb-color-value-for-variable/4123)

<div class="topic-metadata">

**Author:** [@ProcessingDevin](https://discourse.processing.org/u/ProcessingDevin)\
**Replies:** 3\
**Last updated:** [October 4, 2018, 5:24pm UTC](https://discourse.processing.org/t/how-to-make-a-random-rgb-color-value-for-variable/4123 "2018-10-04T17:24:03Z")

</div>

I have this code and i only get random greyscale colors. All the answers i’ve found on the internet don’t work. How do i do this? color colorBall = color(0, 0, 0); float xspeed = 5; float yspeed = 4; float circleX = 0…

---

## [Collision check multiple balls](https://discourse.processing.org/t/collision-check-multiple-balls/4121)

<div class="topic-metadata">

**Author:** [@tatsuya98](https://discourse.processing.org/u/tatsuya98)\
**Replies:** 4\
**Last updated:** [October 4, 2018, 4:50pm UTC](https://discourse.processing.org/t/collision-check-multiple-balls/4121 "2018-10-04T16:50:02Z")

</div>

Hello, I am trying to make a simple ball dodging game. But i 'm having a small problem with the collision check using dist() function. Here is the section of the code: Ball\[\] balls; boolean \[\] keys; float w; float …

---

## [Processing is my Whetstone](https://discourse.processing.org/t/processing-is-my-whetstone/3885)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 6\
**Last updated:** [October 4, 2018, 1:28am UTC](https://discourse.processing.org/t/processing-is-my-whetstone/3885 "2018-10-04T01:28:06Z")

</div>

I’m not the sharpest tool in the shed, but I try to exercise what I got and Processing has been my whetstone. I recently tried out some vector math, cross product, dot product, etc. with good results after some typos sl…

---

## [Moving a shape by mouseClicked function](https://discourse.processing.org/t/moving-a-shape-by-mouseclicked-function/4112)

<div class="topic-metadata">

**Author:** [@nerdboybi](https://discourse.processing.org/u/nerdboybi)\
**Replies:** 5\
**Last updated:** [October 4, 2018, 3:02pm UTC](https://discourse.processing.org/t/moving-a-shape-by-mouseclicked-function/4112 "2018-10-04T15:02:43Z")

</div>

I would like to move a shape to wherever I have clicked on the canvas. This is my program. Please tell me what changes i need to make in this int xPos; int yPos; void setup() { size(500,500); } void draw() { …

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

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