# Latest

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

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

**Page:** 302

---

## [Drawing circles at the top](https://discourse.processing.org/t/drawing-circles-at-the-top/24258)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 2:16am UTC](https://discourse.processing.org/t/drawing-circles-at-the-top/24258 "2020-10-01T02:16:38Z")

</div>

I have to create these circles at the top and for some reason I can’t get them centered…at the beginning, it starts with half a circle. What am i doing wrong? here is my code public void drawCircles() { fill(255); …

---

## [Table text error with p5js](https://discourse.processing.org/t/table-text-error-with-p5js/24246)

<div class="topic-metadata">

**Author:** [@Awesomeness278](https://discourse.processing.org/u/Awesomeness278)\
**Replies:** 3\
**Last updated:** [October 1, 2020, 12:06am UTC](https://discourse.processing.org/t/table-text-error-with-p5js/24246 "2020-10-01T00:06:46Z")

</div>

The table text setting in the p5js web editor causes an error to happen, even in a blank sketch.

---

## [Newton Fractal Shader Sketch](https://discourse.processing.org/t/newton-fractal-shader-sketch/24231)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 11:21pm UTC](https://discourse.processing.org/t/newton-fractal-shader-sketch/24231 "2020-09-30T23:21:40Z")

</div>

Previously https://discourse.processing.org/t/newton-fractal-sketch/24211 I shared some regular JRubyArt sketches of the Newton fractal. Here I present a Shadertoy sketch wrapped for PiCrate (ruby-processing for the Rasp…

---

## [Making a Display Screen](https://discourse.processing.org/t/making-a-display-screen/24108)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 5\
**Last updated:** [September 30, 2020, 8:38pm UTC](https://discourse.processing.org/t/making-a-display-screen/24108 "2020-09-30T20:38:03Z")

</div>

Hi, I wanted to make a title screen with a play button and a directions button. I know the logic behind it but I am not quite sure how to make it within classes. bubble b1; bubble b2; bubble b3; bubble b4; bubble b5; in…

---

## [Help me with collision detection with screen walls](https://discourse.processing.org/t/help-me-with-collision-detection-with-screen-walls/24248)

<div class="topic-metadata">

**Author:** [@Cal\_codes](https://discourse.processing.org/u/Cal_codes)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 7:30pm UTC](https://discourse.processing.org/t/help-me-with-collision-detection-with-screen-walls/24248 "2020-09-30T19:30:55Z")

</div>

//defining classes Player player1; void setup() { size(1200, 800); player1 = new Player(width/2, 100, 60); } void draw() { background(0); stroke(255); strokeWeight(3); // draw players fill(255); noStroke(); …

---

## [Error Affecting All Programs](https://discourse.processing.org/t/error-affecting-all-programs/21115)

<div class="topic-metadata">

**Author:** [@shodai](https://discourse.processing.org/u/shodai)\
**Replies:** 7\
**Last updated:** [September 30, 2020, 5:27pm UTC](https://discourse.processing.org/t/error-affecting-all-programs/21115 "2020-09-30T17:27:49Z")

</div>

I am a teacher using P5.js and one of my students has run into a problem that I cannot understand/fix. For some reason, all of this students programs have stopped working. If I get the code and use it, it works fine, but…

---

## [Why does uncommenting this line of code increase sketch performance by 20 times faster?](https://discourse.processing.org/t/why-does-uncommenting-this-line-of-code-increase-sketch-performance-by-20-times-faster/23944)

<div class="topic-metadata">

**Author:** [@adamskii\_uk](https://discourse.processing.org/u/adamskii_uk)\
**Replies:** 15\
**Last updated:** [September 30, 2020, 1:53pm UTC](https://discourse.processing.org/t/why-does-uncommenting-this-line-of-code-increase-sketch-performance-by-20-times-faster/23944 "2020-09-30T13:53:23Z")

</div>

Hi :smiley: Yesterday, I started writing a 2D game engine from scratch in JAVA, and I was benchmarking every single line of code I added to my class to keep the framerate high. Then after around 2 hours of writing my c…

---

## [Trouble Writing JSON code?](https://discourse.processing.org/t/trouble-writing-json-code/24232)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 1:12pm UTC](https://discourse.processing.org/t/trouble-writing-json-code/24232 "2020-09-30T13:12:33Z")

</div>

So I’m trying to nestle my “hours” array within my “Sunday” array. So the code below works and is validated, but when I repeat the code, that is of Mondays data underneath this code, it doesn’t validate anymore. I’ve tri…

---

## [How do I get my shapes to move/animate around the canvas on p5.js?](https://discourse.processing.org/t/how-do-i-get-my-shapes-to-move-animate-around-the-canvas-on-p5-js/24233)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 3\
**Last updated:** [September 30, 2020, 12:40pm UTC](https://discourse.processing.org/t/how-do-i-get-my-shapes-to-move-animate-around-the-canvas-on-p5-js/24233 "2020-09-30T12:40:33Z")

</div>

Hi everyone, I’m a bit lost in how I could get my shapes that I have created to move around the canvas. So far they are quite static. Any suggestions or methods I could look into would be great!

---

## [Pick up object on random coordinates inside of 2D-array](https://discourse.processing.org/t/pick-up-object-on-random-coordinates-inside-of-2d-array/24219)

<div class="topic-metadata">

**Author:** [@Reynaert98](https://discourse.processing.org/u/Reynaert98)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 10:36am UTC](https://discourse.processing.org/t/pick-up-object-on-random-coordinates-inside-of-2d-array/24219 "2020-09-30T10:36:10Z")

</div>

I have a game in which a moving player has to collect ellipses in order to gain points. The ellipses are randomly distributed on a grid by using the following code: int rows = 40; int cols = 60; int objectOffset = 25; f…

---

## [Looking for a p5.js expert to collaborate in design project (paid)](https://discourse.processing.org/t/looking-for-a-p5-js-expert-to-collaborate-in-design-project-paid/24198)

<div class="topic-metadata">

**Author:** [@kovioletta](https://discourse.processing.org/u/kovioletta)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 3:36pm UTC](https://discourse.processing.org/t/looking-for-a-p5-js-expert-to-collaborate-in-design-project-paid/24198 "2020-09-28T15:36:02Z")

</div>

Hello! I am looking for a person who is good at Processing or p5.js and has an artistic eye to give me a hand in elaborating the visual content. I´ve designed a website and need someone who is able to code already thou…

---

## [Why do some functions loop, and others don't?](https://discourse.processing.org/t/why-do-some-functions-loop-and-others-dont/24223)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 5\
**Last updated:** [September 30, 2020, 9:05am UTC](https://discourse.processing.org/t/why-do-some-functions-loop-and-others-dont/24223 "2020-09-30T09:05:05Z")

</div>

Hi all, I’m wondering if anyone has any insight into why some functions, will affect the next frame in the draw loop, while others won’t. For example: the fill() function (written at the bottom of the draw loop) will…

---

## [Collision Detection (Game Design)](https://discourse.processing.org/t/collision-detection-game-design/24142)

<div class="topic-metadata">

**Author:** [@Aoyanco](https://discourse.processing.org/u/Aoyanco)\
**Replies:** 3\
**Last updated:** [September 30, 2020, 8:53am UTC](https://discourse.processing.org/t/collision-detection-game-design/24142 "2020-09-30T08:53:51Z")

</div>

Hi! I’m trying to make a platformer style game. I already have most of the physics done, but I’m now trying to do the collision detection and I’m stumped. I can think of ways to do it, but in my game, the levels will be …

---

## [LoadModel() not working?](https://discourse.processing.org/t/loadmodel-not-working/24229)

<div class="topic-metadata">

**Author:** [@pheelia](https://discourse.processing.org/u/pheelia)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 9:58pm UTC](https://discourse.processing.org/t/loadmodel-not-working/24229 "2020-09-29T21:58:20Z")

</div>

\`//draw a spinning teapot let teapot; function preload() { // Load model with normalise parameter set to true teapot = loadModel(‘assets/teapot.obj’, true); } function setup() { createCanvas(100, 100, WEBGL); } f…

---

## [Question about the correct usage of the thread() method and it's application to my code](https://discourse.processing.org/t/question-about-the-correct-usage-of-the-thread-method-and-its-application-to-my-code/24228)

<div class="topic-metadata">

**Author:** [@Thecido](https://discourse.processing.org/u/Thecido)\
**Replies:** 1\
**Last updated:** [September 29, 2020, 7:58pm UTC](https://discourse.processing.org/t/question-about-the-correct-usage-of-the-thread-method-and-its-application-to-my-code/24228 "2020-09-29T19:58:40Z")

</div>

Hi, I am rather new to processing and I was trying out the thread() method to speed up my code and run multiple instances of different sorting algorithms I’ve been developing lately, please note that I have just a basic …

---

## [Average captured image flow on p5.js?](https://discourse.processing.org/t/average-captured-image-flow-on-p5-js/24222)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 2:16pm UTC](https://discourse.processing.org/t/average-captured-image-flow-on-p5-js/24222 "2020-09-29T14:16:15Z")

</div>

I work mostly with Processing Java and Python modes, where I’m used to have OpenCV to calculate average image flow. Is there something that will provide a ready-to-use average image flow vector (like opencv.getAverageFlo…

---

## [Does P5 uses WebGL in its 2D context as well?](https://discourse.processing.org/t/does-p5-uses-webgl-in-its-2d-context-as-well/24217)

<div class="topic-metadata">

**Author:** [@dupuqub](https://discourse.processing.org/u/dupuqub)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 10:22am UTC](https://discourse.processing.org/t/does-p5-uses-webgl-in-its-2d-context-as-well/24217 "2020-09-29T10:22:32Z")

</div>

I am currently looking for some cool graphics library and so far P5 really seems the ideal one to me, but WebGL is my selling point. I’ve looked into Babylon and Pixi too, and they do the job, but still, P5 feels right. …

---

## [Making increments change direction?](https://discourse.processing.org/t/making-increments-change-direction/24202)

<div class="topic-metadata">

**Author:** [@AlexW](https://discourse.processing.org/u/AlexW)\
**Replies:** 4\
**Last updated:** [September 29, 2020, 12:08pm UTC](https://discourse.processing.org/t/making-increments-change-direction/24202 "2020-09-29T12:08:30Z")

</div>

Hello, I’m taking a processing class at university and I’m working on our first project which is to make a reproduction of a piece of artwork and add some interaction and animation to it. So far I’ve come up with a ne…

---

## [Changing data visualisation through MousePressed function in p5.js?](https://discourse.processing.org/t/changing-data-visualisation-through-mousepressed-function-in-p5-js/24196)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 4\
**Last updated:** [September 29, 2020, 10:59am UTC](https://discourse.processing.org/t/changing-data-visualisation-through-mousepressed-function-in-p5-js/24196 "2020-09-29T10:59:41Z")

</div>

Hey everyone, okay so this issue has got me super confused. So basically I would like the sketch to show a data visualisation of one JSON file. (being a Sunday data). But when I mousePress, the data would represent anot…

---

## [Processing Video library inconsistent behavior with jumping](https://discourse.processing.org/t/processing-video-library-inconsistent-behavior-with-jumping/24214)

<div class="topic-metadata">

**Author:** [@musiciantriescoding](https://discourse.processing.org/u/musiciantriescoding)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 8:59am UTC](https://discourse.processing.org/t/processing-video-library-inconsistent-behavior-with-jumping/24214 "2020-09-29T08:59:03Z")

</div>

Hello everyone! I am experiencing some inconsistent behavior from the Processing video library. What I’m trying to do: I’m making a video sampler with a midi keyboard. When I play a key, the video jumps to a timestamp…

---

## [Input controlled video playback in Processing](https://discourse.processing.org/t/input-controlled-video-playback-in-processing/23084)

<div class="topic-metadata">

**Author:** [@ruta](https://discourse.processing.org/u/ruta)\
**Replies:** 1\
**Last updated:** [September 29, 2020, 8:25am UTC](https://discourse.processing.org/t/input-controlled-video-playback-in-processing/23084 "2020-09-29T08:25:54Z")

</div>

Hi! I am reading capacitive sensors with Arduino and the number of the sensor touched is communicated to Processing, at the moment it is just 1 or 2. In Processing, I am trying to play a video depending on the number of …

---

## [Tessellation Error?](https://discourse.processing.org/t/tessellation-error/1164)

<div class="topic-metadata">

**Author:** [@KAZ](https://discourse.processing.org/u/KAZ)\
**Replies:** 1\
**Last updated:** [September 29, 2020, 5:22am UTC](https://discourse.processing.org/t/tessellation-error/1164 "2020-09-29T05:22:22Z")

</div>

Am doing some Planetary System Simulation stuff . It’s doing well apart from occasionally , when I launch a planet too much near the sun the planet move through the sun very fast and the console spits out this error in …

---

## [Creating and then accessing sets of possible pixel sequences (Markov?)](https://discourse.processing.org/t/creating-and-then-accessing-sets-of-possible-pixel-sequences-markov/24209)

<div class="topic-metadata">

**Author:** [@jl33](https://discourse.processing.org/u/jl33)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 11:58pm UTC](https://discourse.processing.org/t/creating-and-then-accessing-sets-of-possible-pixel-sequences-markov/24209 "2020-09-28T23:58:30Z")

</div>

Keep thinking different ways to go about this but I don’t quite have the experience to fully wrap my head around. I want to analyze an img to create (and then access/manipulate) basically a Markov model of the set of co…

---

## [Using noLoop() function with nested for loops](https://discourse.processing.org/t/using-noloop-function-with-nested-for-loops/24208)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 11:35pm UTC](https://discourse.processing.org/t/using-noloop-function-with-nested-for-loops/24208 "2020-09-28T23:35:55Z")

</div>

Can you use noLoop with nested for loops? I have an assignment that states to create a grid shown in my lesson and observe what it does. Then it says to add the noLoop() function and observe what it does. I have done …

---

## [For Processing, is there some GUI box I can show or something?](https://discourse.processing.org/t/for-processing-is-there-some-gui-box-i-can-show-or-something/24069)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 5\
**Last updated:** [September 28, 2020, 8:07pm UTC](https://discourse.processing.org/t/for-processing-is-there-some-gui-box-i-can-show-or-something/24069 "2020-09-28T20:07:14Z")

</div>

Is there a library or something that I can import for Processing which can show a GUI box which prompts the user to fill out information, for example age, gender etc?

---

## [Why when we create a code in the p5.js editor and download it when we run it in the google chrome browser it doesn't run?](https://discourse.processing.org/t/why-when-we-create-a-code-in-the-p5-js-editor-and-download-it-when-we-run-it-in-the-google-chrome-browser-it-doesnt-run/24203)

<div class="topic-metadata">

**Author:** [@Willian\_Xz](https://discourse.processing.org/u/Willian_Xz)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 7:42pm UTC](https://discourse.processing.org/t/why-when-we-create-a-code-in-the-p5-js-editor-and-download-it-when-we-run-it-in-the-google-chrome-browser-it-doesnt-run/24203 "2020-09-28T19:42:33Z")

</div>

Greetings from Brazil friends! Why when we create a code in the p5.js editor and download it when we run it in the google chrome browser it doesn’t run? It just keeps showing “Loading …” Nothing happens. In the firef…

---

## [Getting a red cross on the APP button in android studio](https://discourse.processing.org/t/getting-a-red-cross-on-the-app-button-in-android-studio/24189)

<div class="topic-metadata">

**Author:** [@swastika](https://discourse.processing.org/u/swastika)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 4:47pm UTC](https://discourse.processing.org/t/getting-a-red-cross-on-the-app-button-in-android-studio/24189 "2020-09-28T16:47:07Z")

</div>

I have recently downloaded android studio. there i saw a red cross on the app Button. due to this, i am not able to run code. what should i do to fix it?

---

## [Is it possible to create more than one button for different actions in p5.js?](https://discourse.processing.org/t/is-it-possible-to-create-more-than-one-button-for-different-actions-in-p5-js/24194)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 4:27pm UTC](https://discourse.processing.org/t/is-it-possible-to-create-more-than-one-button-for-different-actions-in-p5-js/24194 "2020-09-28T16:27:13Z")

</div>

Hi everyone, was just wondering is there a way to create multiple buttons that can output different functions within p5.js. I’m looking into the button references on p5.js .org, but it looks like it hasn’t mentioned anyt…

---

## [How do I generate circles appearing one at a time, rather than a whole cluster of circles in p5.js](https://discourse.processing.org/t/how-do-i-generate-circles-appearing-one-at-a-time-rather-than-a-whole-cluster-of-circles-in-p5-js/24182)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 5\
**Last updated:** [September 28, 2020, 3:01pm UTC](https://discourse.processing.org/t/how-do-i-generate-circles-appearing-one-at-a-time-rather-than-a-whole-cluster-of-circles-in-p5-js/24182 "2020-09-28T15:01:15Z")

</div>

Hi everyone, so I was wondering how do I get the ellipse that I have drawn to appear one at a time, rather than having 10 all appear at once as a group? var data; var instagram, snapchat, messenger, facebook, email, in…

---

## [Music visualizer processing \> minim library](https://discourse.processing.org/t/music-visualizer-processing-minim-library/24068)

<div class="topic-metadata">

**Author:** [@sabrufran](https://discourse.processing.org/u/sabrufran)\
**Replies:** 4\
**Last updated:** [September 28, 2020, 2:51pm UTC](https://discourse.processing.org/t/music-visualizer-processing-minim-library/24068 "2020-09-28T14:51:28Z")

</div>

hola, soy nueva con processing, y queria lograr sincronizar mi sketh con el audio, especificamente la parte donde surgen las montañas y que crezcan sincronizadamente con el audio. Para entender lo del audio, use el ejem…

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

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