# Latest

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

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

**Page:** 318

---

## [String Array {}](https://discourse.processing.org/t/string-array/23082)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 9\
**Last updated:** [August 6, 2020, 3:13pm UTC](https://discourse.processing.org/t/string-array/23082 "2020-08-06T15:13:45Z")

</div>

can i re-declare the variables in curly braces after declaring the string array? / String \[\] test = new String \[500\]; void setup(){} void draw(){ test \[\] = {“shshsj”, “sjjsjsjs”, “2+288383”}; } \</ this does not w…

---

## [IndexOutOfBoundsException for Virtual Ecosystem](https://discourse.processing.org/t/indexoutofboundsexception-for-virtual-ecosystem/23081)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 3\
**Last updated:** [August 6, 2020, 3:02pm UTC](https://discourse.processing.org/t/indexoutofboundsexception-for-virtual-ecosystem/23081 "2020-08-06T15:02:29Z")

</div>

Hello. I am having trouble with a program, where there is a likelihood of it crashing due to an IndexOutOfBoundsException error from an arrayList. It is an ecosystem program that creates “animal objects” and adds them t…

---

## [\[ControlP5\] passing array to CallbackListener](https://discourse.processing.org/t/controlp5-passing-array-to-callbacklistener/23013)

<div class="topic-metadata">

**Author:** [@ForgottenCat](https://discourse.processing.org/u/ForgottenCat)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 12:20pm UTC](https://discourse.processing.org/t/controlp5-passing-array-to-callbacklistener/23013 "2020-08-06T12:20:50Z")

</div>

Hi everybody, I am using Processing 3.5.4 and ControlP5 i was wondering if there is a way to pass any variables or in my case an array to a callback function. In detail: I want sort of a tab function but with vertical…

---

## [Low frameRate, my code gives 10 - 15 frames](https://discourse.processing.org/t/low-framerate-my-code-gives-10-15-frames/23053)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 10\
**Last updated:** [August 6, 2020, 6:42am UTC](https://discourse.processing.org/t/low-framerate-my-code-gives-10-15-frames/23053 "2020-08-06T06:42:23Z")

</div>

Hello everyone. My code doesnt give me 30 frameRate even i dont do much thing there ! Help me please, thanks. String s = "belli"; PFont font; int tileCount = 25; float tileWidth, tileHeight; void setup() { size(800,…

---

## [How to install sound library so that I can use properly on raspberry pi 4?](https://discourse.processing.org/t/how-to-install-sound-library-so-that-i-can-use-properly-on-raspberry-pi-4/23028)

<div class="topic-metadata">

**Author:** [@bernd](https://discourse.processing.org/u/bernd)\
**Replies:** 4\
**Last updated:** [August 6, 2020, 5:55am UTC](https://discourse.processing.org/t/how-to-install-sound-library-so-that-i-can-use-properly-on-raspberry-pi-4/23028 "2020-08-06T05:55:46Z")

</div>

Hello everybody, I am new with raspberry pi , trying to use the “basic” sound library on my raspi 4. I don’t want to change to beads or minim (both working, also p5.js works), because the codes are all done and working …

---

## [Using Serial with Processing for Android](https://discourse.processing.org/t/using-serial-with-processing-for-android/22974)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 11\
**Last updated:** [August 6, 2020, 5:53am UTC](https://discourse.processing.org/t/using-serial-with-processing-for-android/22974 "2020-08-06T05:53:52Z")

</div>

I’m trying to use Bluetooth Classic from a Processing app (version 3.5.4) in the Android mode with a Serial library download from the internet “AndroidSerial”. Source code which fails is as follows: import com.yourinve…

---

## [Processing.py examples](https://discourse.processing.org/t/processing-py-examples/22989)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 2:47am UTC](https://discourse.processing.org/t/processing-py-examples/22989 "2020-08-06T02:47:36Z")

</div>

The Processing Java and p5 websites showcase online examples (see here and here), the same examples included with the Processing IDE. Python Mode’s example page is bare :cry: I’ve been messing around with pyp5js for tr…

---

## [Having trouble with making the Snake game](https://discourse.processing.org/t/having-trouble-with-making-the-snake-game/23064)

<div class="topic-metadata">

**Author:** [@i\_dont](https://discourse.processing.org/u/i_dont)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 12:52am UTC](https://discourse.processing.org/t/having-trouble-with-making-the-snake-game/23064 "2020-08-06T00:52:00Z")

</div>

Hey this is my first time posting anything here or asking for help but I’m kinda stumped. I coded the game “Snake” and despite being very basic as I’m a beginner, it turned out pretty alright. The only real problem I’m h…

---

## [Post Request transform to GET Method](https://discourse.processing.org/t/post-request-transform-to-get-method/22927)

<div class="topic-metadata">

**Author:** [@b005](https://discourse.processing.org/u/b005)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 12:19am UTC](https://discourse.processing.org/t/post-request-transform-to-get-method/22927 "2020-08-06T00:19:55Z")

</div>

Hello, I purchased a board which has the code written in Processing, I want to use GET Method to upload data using URL to my server, but the board has only post request following code: Could you please help me to trans…

---

## [Porting MQTT MessageReceived function from Processing to p5](https://discourse.processing.org/t/porting-mqtt-messagereceived-function-from-processing-to-p5/22944)

<div class="topic-metadata">

**Author:** [@dantewong](https://discourse.processing.org/u/dantewong)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 10:56pm UTC](https://discourse.processing.org/t/porting-mqtt-messagereceived-function-from-processing-to-p5/22944 "2020-08-05T22:56:42Z")

</div>

Hi. I’m very new to coding. I’m currently working on an MQTT project that involves an Arduino (Esp32) with sensors sending data (publishing) to an MQTT Broker and Processing picking up that data (subscribing)from the MQ…

---

## [Sound examples are all noisy on Linux](https://discourse.processing.org/t/sound-examples-are-all-noisy-on-linux/4708)

<div class="topic-metadata">

**Author:** [@gratefulfrog](https://discourse.processing.org/u/gratefulfrog)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 8:58pm UTC](https://discourse.processing.org/t/sound-examples-are-all-noisy-on-linux/4708 "2020-08-05T20:58:19Z")

</div>

Hi, I’m experimenting with the sound library and can’t get any examples to play cleanly. There is more or less constant grinding crackling chopping noise mixed with the sine waves that I try to make. This occurs with …

---

## [I need move the players in board like Monopoly](https://discourse.processing.org/t/i-need-move-the-players-in-board-like-monopoly/23061)

<div class="topic-metadata">

**Author:** [@Xremix31](https://discourse.processing.org/u/Xremix31)\
**Replies:** 3\
**Last updated:** [August 5, 2020, 6:53pm UTC](https://discourse.processing.org/t/i-need-move-the-players-in-board-like-monopoly/23061 "2020-08-05T18:53:14Z")

</div>

Hi i need help for move players in board. I can show players but when move the player i can’t see this player. I use this code for set the player in tile. pl1.setTileCount(2) and i thin this move the player for other ti…

---

## [How can I make a new ball from colliding?](https://discourse.processing.org/t/how-can-i-make-a-new-ball-from-colliding/23055)

<div class="topic-metadata">

**Author:** [@terry0728](https://discourse.processing.org/u/terry0728)\
**Replies:** 5\
**Last updated:** [August 5, 2020, 1:44pm UTC](https://discourse.processing.org/t/how-can-i-make-a-new-ball-from-colliding/23055 "2020-08-05T13:44:41Z")

</div>

In the example of “bouncy bubbles” that collide with each other, I would like to program a new ball to be created at that point when two balls collide. What should I do? bouncing bubbles -\> https://processing.org/exampl…

---

## [Drawing points on a circle](https://discourse.processing.org/t/drawing-points-on-a-circle/23046)

<div class="topic-metadata">

**Author:** [@thunderball](https://discourse.processing.org/u/thunderball)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 1:18pm UTC](https://discourse.processing.org/t/drawing-points-on-a-circle/23046 "2020-08-05T13:18:24Z")

</div>

Hi, a bit of a silly question but I am rusty. I have a program that is drawing points around a circle but I want them to draw all at once (without removing the background) – what am I forgetting? let pts = 35; let a = …

---

## [How to get Blocks to Disappear in Paddle Ball Game and Help with Paddle Collision](https://discourse.processing.org/t/how-to-get-blocks-to-disappear-in-paddle-ball-game-and-help-with-paddle-collision/23051)

<div class="topic-metadata">

**Author:** [@Learner](https://discourse.processing.org/u/Learner)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 8:56am UTC](https://discourse.processing.org/t/how-to-get-blocks-to-disappear-in-paddle-ball-game-and-help-with-paddle-collision/23051 "2020-08-05T08:56:04Z")

</div>

Hello. I am working on this assignment where I have to make a simple paddle ball game where when the ball hits the blocks they disappear. The hint we were given was that we had to use Boolean expressions, but I am comple…

---

## [How do I call fill() in a function?](https://discourse.processing.org/t/how-do-i-call-fill-in-a-function/23043)

<div class="topic-metadata">

**Author:** [@alkilum](https://discourse.processing.org/u/alkilum)\
**Replies:** 4\
**Last updated:** [August 5, 2020, 1:17am UTC](https://discourse.processing.org/t/how-do-i-call-fill-in-a-function/23043 "2020-08-05T01:17:47Z")

</div>

So I have a function tied to rendering and I used fill in it like this: public static int rd(int k){ fill(#ff0000); line(0,0,0,k); return k; } It said something along the lines of you can’t call fill() in a stati…

---

## [Using a Serial port. Can processing boot even if the port is un available](https://discourse.processing.org/t/using-a-serial-port-can-processing-boot-even-if-the-port-is-un-available/23041)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 12:48am UTC](https://discourse.processing.org/t/using-a-serial-port-can-processing-boot-even-if-the-port-is-un-available/23041 "2020-08-05T00:48:10Z")

</div>

I would want to be able to boot the sketch even if the USB cord is unplugged to my arduino. Eventually I would write a message “COM Not Available” and maybe make a button to re-connect. But Processing will stop in the …

---

## [Including P5js in a blog](https://discourse.processing.org/t/including-p5js-in-a-blog/22727)

<div class="topic-metadata">

**Author:** [@misterybodon](https://discourse.processing.org/u/misterybodon)\
**Replies:** 4\
**Last updated:** [August 4, 2020, 8:56pm UTC](https://discourse.processing.org/t/including-p5js-in-a-blog/22727 "2020-08-04T20:56:16Z")

</div>

Hello, I’m including some p5 sketches in a blogpost, but If I’m not mistaken the responsiveness will be an issue, because: we include the sketch through an iframe there is no way to make the canvas size resize nicely f…

---

## [Arduino Add Library Error - not valid library reported - will not install](https://discourse.processing.org/t/arduino-add-library-error-not-valid-library-reported-will-not-install/23037)

<div class="topic-metadata">

**Author:** [@videodub](https://discourse.processing.org/u/videodub)\
**Replies:** 0\
**Last updated:** [August 4, 2020, 6:54pm UTC](https://discourse.processing.org/t/arduino-add-library-error-not-valid-library-reported-will-not-install/23037 "2020-08-04T18:54:45Z")

</div>

When attempting to add video processing library for Arduino, reports ‘zip does not contain a valid library’ Tried older version, same result. Library will not install in Arduino environment. Running Win7 64bit. Used — …

---

## [Trying to display image (sprite) on mouseclick](https://discourse.processing.org/t/trying-to-display-image-sprite-on-mouseclick/23031)

<div class="topic-metadata">

**Author:** [@killimon](https://discourse.processing.org/u/killimon)\
**Replies:** 5\
**Last updated:** [August 4, 2020, 6:14pm UTC](https://discourse.processing.org/t/trying-to-display-image-sprite-on-mouseclick/23031 "2020-08-04T18:14:15Z")

</div>

Hi guys, I am new to p5.js and don’t know what I’m doing wrong. I am trying to display a sprite that I have created on a mouseclick. Unfortunately it doesn’t display. This also happens if use a basic image and not an ani…

---

## [p5.Vector returns strange and negative x and y values](https://discourse.processing.org/t/p5-vector-returns-strange-and-negative-x-and-y-values/23035)

<div class="topic-metadata">

**Author:** [@AbrarShahriar](https://discourse.processing.org/u/AbrarShahriar)\
**Replies:** 3\
**Last updated:** [August 4, 2020, 5:11pm UTC](https://discourse.processing.org/t/p5-vector-returns-strange-and-negative-x-and-y-values/23035 "2020-08-04T17:11:48Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I was experimenting with one of Shiffman’s NOC examples. To be specific the steering behavior one. I added a target for my vehicle with the crea…

---

## [Understanding the Diffusion Curves Algorithm](https://discourse.processing.org/t/understanding-the-diffusion-curves-algorithm/21605)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 13\
**Last updated:** [August 4, 2020, 4:53pm UTC](https://discourse.processing.org/t/understanding-the-diffusion-curves-algorithm/21605 "2020-08-04T16:53:49Z")

</div>

Paper outcome above. I’m not going anything this complicated (beziers) yet, but just a simple working prototype of the diffusion part. The broad idea with Diffusion Curves is you specify some pixels in a canvas (su…

---

## [Creating collision](https://discourse.processing.org/t/creating-collision/23029)

<div class="topic-metadata">

**Author:** [@DeidaraLP](https://discourse.processing.org/u/DeidaraLP)\
**Replies:** 4\
**Last updated:** [August 4, 2020, 4:13pm UTC](https://discourse.processing.org/t/creating-collision/23029 "2020-08-04T16:13:36Z")

</div>

Hello /sub I’ve been trying to create a simple game based on different classes. However, i’m currently at a dead end, since i’m trying to create a collision detector between the player class and the asteroid class. How…

---

## [How to access SVG/PShape original width & height?](https://discourse.processing.org/t/how-to-access-svg-pshape-original-width-height/23027)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 0\
**Last updated:** [August 4, 2020, 7:40am UTC](https://discourse.processing.org/t/how-to-access-svg-pshape-original-width-height/23027 "2020-08-04T07:40:53Z")

</div>

import processing.svg.\*; float reso; void setup() { size(800, 800); reso = width; beginRecord(SVG,"a.svg"); } void draw() { background(0); PVector center = new PVector(reso/2,reso-5); //float center = re…

---

## [Creating an array of vectors in a line](https://discourse.processing.org/t/creating-an-array-of-vectors-in-a-line/22959)

<div class="topic-metadata">

**Author:** [@MelonMan](https://discourse.processing.org/u/MelonMan)\
**Replies:** 9\
**Last updated:** [August 4, 2020, 6:06am UTC](https://discourse.processing.org/t/creating-an-array-of-vectors-in-a-line/22959 "2020-08-04T06:06:54Z")

</div>

Hello! I’m new here, hopefully this is the right place to ask. I have an odd problem I’m trying to resolve. attempting to curve off a tutorial and turn the project into something of my own. The problem being; I have a …

---

## [Double hit on object collision and repeat trigger](https://discourse.processing.org/t/double-hit-on-object-collision-and-repeat-trigger/22970)

<div class="topic-metadata">

**Author:** [@chuchu](https://discourse.processing.org/u/chuchu)\
**Replies:** 2\
**Last updated:** [August 3, 2020, 9:41pm UTC](https://discourse.processing.org/t/double-hit-on-object-collision-and-repeat-trigger/22970 "2020-08-03T21:41:13Z")

</div>

Hello processing forum :slight\_smile: I’m making a small program that moves circles (‘buoys’) around the screen that are then triggered by expanding circles (‘waves’) in turn making more waves of their own. Waves have r…

---

## [Add a custom cast?](https://discourse.processing.org/t/add-a-custom-cast/22995)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 8\
**Last updated:** [August 3, 2020, 7:25pm UTC](https://discourse.processing.org/t/add-a-custom-cast/22995 "2020-08-03T19:25:53Z")

</div>

Hi I’m making a math library and it includes a matrix class. I wish to make it possible to cast it from a float\[\]\[\]. Something like this: float\[\]\[\] a={{1,2},{3,4}}; Matrix m=(Matrix) a;

---

## [Element play method raised an error asynchronously](https://discourse.processing.org/t/element-play-method-raised-an-error-asynchronously/22955)

<div class="topic-metadata">

**Author:** [@Hepyrian](https://discourse.processing.org/u/Hepyrian)\
**Replies:** 1\
**Last updated:** [August 3, 2020, 6:34pm UTC](https://discourse.processing.org/t/element-play-method-raised-an-error-asynchronously/22955 "2020-08-03T18:34:47Z")

</div>

Hi everyone! I’m working on a larger sketch that needs to be able to play videos and control them with p5.touchgui elements. As you’ll see when you open my sketch, the video will only sometimes play, and a lot of the ti…

---

## [Image Circle Distortion in p5js](https://discourse.processing.org/t/image-circle-distortion-in-p5js/22993)

<div class="topic-metadata">

**Author:** [@leejdotjohnson](https://discourse.processing.org/u/leejdotjohnson)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 5:42pm UTC](https://discourse.processing.org/t/image-circle-distortion-in-p5js/22993 "2020-08-03T17:42:12Z")

</div>

I am trying to implement a circle distortion function in p5js. Here is an example of what I want to achieve: Example In the example an original image is distorted into a 2d circle with an inner and outer radius. I hav…

---

## [Physically based rendering library for Processing SimplePBR](https://discourse.processing.org/t/physically-based-rendering-library-for-processing-simplepbr/8152)

<div class="topic-metadata">

**Author:** [@kosowski](https://discourse.processing.org/u/kosowski)\
**Replies:** 7\
**Last updated:** [August 3, 2020, 4:29pm UTC](https://discourse.processing.org/t/physically-based-rendering-library-for-processing-simplepbr/8152 "2020-08-03T16:29:34Z")

</div>

I have created a library for Physically based rendering (PBR) in Processing. PBR is a rendering method for more accurate (and nicer) lighting of surfaces, here’s a demo video. There is more information on my website a…

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

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