# Latest

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

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

**Page:** 215

---

## [Organic Random Lines](https://discourse.processing.org/t/organic-random-lines/30748)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 2\
**Last updated:** [June 16, 2021, 10:53pm UTC](https://discourse.processing.org/t/organic-random-lines/30748 "2021-06-16T22:53:34Z")

</div>

Hi there! I am trying to draw organic lines, so I have started making that kind of oscillations that you can see on black line. I don’t know if that can be done easier, but is was the only possible way for my beguinner l…

---

## [Please help me. "It looks like you're mixing "active" and "static" modes."](https://discourse.processing.org/t/please-help-me-it-looks-like-youre-mixing-active-and-static-modes/30743)

<div class="topic-metadata">

**Author:** [@sasa](https://discourse.processing.org/u/sasa)\
**Replies:** 2\
**Last updated:** [June 16, 2021, 7:43pm UTC](https://discourse.processing.org/t/please-help-me-it-looks-like-youre-mixing-active-and-static-modes/30743 "2021-06-16T19:43:06Z")

</div>

Robot r1; void setup(){ size(800, 600); r1 = new Robot(); r1.setPos(width/2, height/2); } void draw(){ r1.display(); } noStroke(); fill(204, 10); rect(0, 0, width, height); stroke(0); translate(transX, trans…

---

## [What is the code from the light sensor to control my waveform?](https://discourse.processing.org/t/what-is-the-code-from-the-light-sensor-to-control-my-waveform/30736)

<div class="topic-metadata">

**Author:** [@Marga](https://discourse.processing.org/u/Marga)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 11:52pm UTC](https://discourse.processing.org/t/what-is-the-code-from-the-light-sensor-to-control-my-waveform/30736 "2021-06-15T23:52:09Z")

</div>

Hi, I’m having difficulties in reaching my goal, which is with the Arduino Esplora, when I point more light to the light sensor my waveform in the processing increases and when the sensor receives less this waveform disa…

---

## [Basic Ball bouncing with mouse](https://discourse.processing.org/t/basic-ball-bouncing-with-mouse/30735)

<div class="topic-metadata">

**Author:** [@userfc](https://discourse.processing.org/u/userfc)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 10:40pm UTC](https://discourse.processing.org/t/basic-ball-bouncing-with-mouse/30735 "2021-06-15T22:40:39Z")

</div>

Hi! I need help because I don’t know where to start. I want to build a small game of tiles where you start with a grid of 5x5 balls opposed to one ball that represents the user’s cursor. The first need is to be able to h…

---

## [Coding game: catching coins and avoiding bombs](https://discourse.processing.org/t/coding-game-catching-coins-and-avoiding-bombs/30709)

<div class="topic-metadata">

**Author:** [@processinggg](https://discourse.processing.org/u/processinggg)\
**Replies:** 9\
**Last updated:** [June 15, 2021, 6:50pm UTC](https://discourse.processing.org/t/coding-game-catching-coins-and-avoiding-bombs/30709 "2021-06-15T18:50:40Z")

</div>

Hello, I have a few questions about following code. I have coins, which are being caught by the ship and b0mbs which have to be avoided. However, the b0mbs are somehow stuck with the coins and they aren’t their own objec…

---

## [Convert processing Sketch to p5.js](https://discourse.processing.org/t/convert-processing-sketch-to-p5-js/30726)

<div class="topic-metadata">

**Author:** [@momo](https://discourse.processing.org/u/momo)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 6:47pm UTC](https://discourse.processing.org/t/convert-processing-sketch-to-p5-js/30726 "2021-06-15T18:47:30Z")

</div>

Hi all, I’m a coding beginner. I was trying to convert a processing sketch into p5. I guess it is a dumb question. But please help me with this. This is the sketch I want to convert (processing) class A{ float r = r…

---

## [Curated Creative Algorithms by Raphael de Courville and Taru Muhonen](https://discourse.processing.org/t/curated-creative-algorithms-by-raphael-de-courville-and-taru-muhonen/30719)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 1\
**Last updated:** [June 15, 2021, 6:29pm UTC](https://discourse.processing.org/t/curated-creative-algorithms-by-raphael-de-courville-and-taru-muhonen/30719 "2021-06-15T18:29:58Z")

</div>

Bookmarked for your convenience. Previously there was discussion about converting a Shadertoy metaballs shader to processing. Inspired by the creative algorithms site I converted another metaball example to JRubyArt. # …

---

## [How to know within the code if I'm targeting android or java?](https://discourse.processing.org/t/how-to-know-within-the-code-if-im-targeting-android-or-java/20301)

<div class="topic-metadata">

**Author:** [@Nicholas](https://discourse.processing.org/u/Nicholas)\
**Replies:** 5\
**Last updated:** [June 15, 2021, 5:29pm UTC](https://discourse.processing.org/t/how-to-know-within-the-code-if-im-targeting-android-or-java/20301 "2021-06-15T17:29:14Z")

</div>

Ello Really enjoying Processing and how quickly I can realise and play with my ideas on my phone! I’m used to Unity which in comparison takes ages to build and deploy to handset. Buuuuuuuuut I really do prefer the imme…

---

## [Adding Score Mechanism](https://discourse.processing.org/t/adding-score-mechanism/30690)

<div class="topic-metadata">

**Author:** [@azul](https://discourse.processing.org/u/azul)\
**Replies:** 10\
**Last updated:** [June 15, 2021, 5:16pm UTC](https://discourse.processing.org/t/adding-score-mechanism/30690 "2021-06-15T17:16:43Z")

</div>

Hi, I made a simple game, yet I couldn’t add a scoring mechanism and an opening scene. When the spaceship hits one of the balls, it loses score, when it explodes the balls using mouse function, it gains scores. It would …

---

## [Adobe Illustrator blend tool simulation in Processing](https://discourse.processing.org/t/adobe-illustrator-blend-tool-simulation-in-processing/30649)

<div class="topic-metadata">

**Author:** [@borjan.pavlek](https://discourse.processing.org/u/borjan.pavlek)\
**Replies:** 4\
**Last updated:** [June 15, 2021, 9:00am UTC](https://discourse.processing.org/t/adobe-illustrator-blend-tool-simulation-in-processing/30649 "2021-06-15T09:00:12Z")

</div>

Hey everyone, just a quick question - is it possible to re-create blending tool via code in processing? It should look something like this. I am new to processing, I can understand basics and this is something I would …

---

## [Crash-Causing Error with trying to display Lives](https://discourse.processing.org/t/crash-causing-error-with-trying-to-display-lives/30706)

<div class="topic-metadata">

**Author:** [@spamelim](https://discourse.processing.org/u/spamelim)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 7:29pm UTC](https://discourse.processing.org/t/crash-causing-error-with-trying-to-display-lives/30706 "2021-06-14T19:29:35Z")

</div>

I have been trying to make a space-shooter type game, and I have been coding lives (which work until I try to display them). My code to display the life count is Player p; void draw() { text("Lives:", 100, 100); text…

---

## [Some help with Conways Game Of Life](https://discourse.processing.org/t/some-help-with-conways-game-of-life/30605)

<div class="topic-metadata">

**Author:** [@Ironbatman1](https://discourse.processing.org/u/Ironbatman1)\
**Replies:** 14\
**Last updated:** [June 14, 2021, 1:43pm UTC](https://discourse.processing.org/t/some-help-with-conways-game-of-life/30605 "2021-06-14T13:43:22Z")

</div>

Alright so I’ve been working on the game of life and have run into a weird problem. There are squares deciding to draw alive for an unknown reason. I have used print to check what the state is at those steps and I know i…

---

## [Can´t run sketches in VS Code from one day to another](https://discourse.processing.org/t/can-t-run-sketches-in-vs-code-from-one-day-to-another/30703)

<div class="topic-metadata">

**Author:** [@cheister](https://discourse.processing.org/u/cheister)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 12:55pm UTC](https://discourse.processing.org/t/can-t-run-sketches-in-vs-code-from-one-day-to-another/30703 "2021-06-14T12:55:05Z")

</div>

Hi, I installed the Processing VSCode Plugin which worked very well but from one day to another the following error occurred: Could not run the sketch (Target VM failed to initialize). It still works in the Processing I…

---

## [Lines with alpha exhibiting weird color behavior in p5.js with webgl](https://discourse.processing.org/t/lines-with-alpha-exhibiting-weird-color-behavior-in-p5-js-with-webgl/30663)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 6\
**Last updated:** [June 14, 2021, 12:14pm UTC](https://discourse.processing.org/t/lines-with-alpha-exhibiting-weird-color-behavior-in-p5-js-with-webgl/30663 "2021-06-14T12:14:34Z")

</div>

I’ve got some p5.js code where I draw lines with some amount of alpha (the last two characters on the hex code). For some reason, these lines appear as gradients from red/blue/green. function setup() { createCanvas(1…

---

## [Equirectangular sketches](https://discourse.processing.org/t/equirectangular-sketches/30626)

<div class="topic-metadata">

**Author:** [@JuanIrache](https://discourse.processing.org/u/JuanIrache)\
**Replies:** 6\
**Last updated:** [June 14, 2021, 11:03am UTC](https://discourse.processing.org/t/equirectangular-sketches/30626 "2021-06-14T11:03:18Z")

</div>

Hi, I’m trying to draw things on top of a 360 equirectangular image. The problem is, of course elements I draw won’t keep their proportions when viewed with a 360 viewer. Is there any library or technique that would he…

---

## [Generate new object (class) on button (key) hit](https://discourse.processing.org/t/generate-new-object-class-on-button-key-hit/30681)

<div class="topic-metadata">

**Author:** [@nktlst](https://discourse.processing.org/u/nktlst)\
**Replies:** 4\
**Last updated:** [June 14, 2021, 11:03am UTC](https://discourse.processing.org/t/generate-new-object-class-on-button-key-hit/30681 "2021-06-14T11:03:07Z")

</div>

I created class with animated circle and then I want to create same objects every time I hit keyboard button… Problem that when I hit button here is always same object and animation disappear when button release… On but…

---

## [Coding a composite image of images that randomly shuffle in placement](https://discourse.processing.org/t/coding-a-composite-image-of-images-that-randomly-shuffle-in-placement/30694)

<div class="topic-metadata">

**Author:** [@phanan](https://discourse.processing.org/u/phanan)\
**Replies:** 1\
**Last updated:** [June 14, 2021, 10:40am UTC](https://discourse.processing.org/t/coding-a-composite-image-of-images-that-randomly-shuffle-in-placement/30694 "2021-06-14T10:40:31Z")

</div>

I know how to code basic Python, but am brand new to Processing/p5j.s. Any help would be appreciated on the steps needed to do the following: I want to code an array of images to fill the background of a webpage, and ha…

---

## [How to control the mouse in processing?](https://discourse.processing.org/t/how-to-control-the-mouse-in-processing/30684)

<div class="topic-metadata">

**Author:** [@ProcessingTOP](https://discourse.processing.org/u/ProcessingTOP)\
**Replies:** 1\
**Last updated:** [June 14, 2021, 10:20am UTC](https://discourse.processing.org/t/how-to-control-the-mouse-in-processing/30684 "2021-06-14T10:20:37Z")

</div>

We need a library to control the mouse for processing. It is for control, not reading.

---

## [P5 Editor Not working](https://discourse.processing.org/t/p5-editor-not-working/30699)

<div class="topic-metadata">

**Author:** [@alihusainsorathiya](https://discourse.processing.org/u/alihusainsorathiya)\
**Replies:** 1\
**Last updated:** [June 14, 2021, 8:41am UTC](https://discourse.processing.org/t/p5-editor-not-working/30699 "2021-06-14T08:41:38Z")

</div>

P5 Editor is not working Can anyone confirm if they’re facing the same issue? And TAT Time to fix the same?

---

## [Am i using equation of circle right?](https://discourse.processing.org/t/am-i-using-equation-of-circle-right/22318)

<div class="topic-metadata">

**Author:** [@ARNAV\_A\_GUPTA](https://discourse.processing.org/u/ARNAV_A_GUPTA)\
**Replies:** 17\
**Last updated:** [June 14, 2021, 4:54am UTC](https://discourse.processing.org/t/am-i-using-equation-of-circle-right/22318 "2021-06-14T04:54:03Z")

</div>

I want to move an object around a circle therefore, am using equation of circle to every quadrant… I wrote this: if(keyDown(“up”) && this.guy.x \<= 600 && this.guy.x \<= 400){ //using equation of a circle \> …

---

## [3d scanner with Arduino and laser pointer](https://discourse.processing.org/t/3d-scanner-with-arduino-and-laser-pointer/30360)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 78\
**Last updated:** [June 13, 2021, 11:22pm UTC](https://discourse.processing.org/t/3d-scanner-with-arduino-and-laser-pointer/30360 "2021-06-13T23:22:13Z")

</div>

hi all i am thinking to make 3d scanner using line laser pointer with rotation table and web camera all hardware is fine with me Arduino and laser with camera mount is ok i have reach to result like this …

---

## [Move PacMan Using Arrow Key](https://discourse.processing.org/t/move-pacman-using-arrow-key/30670)

<div class="topic-metadata">

**Author:** [@MacJ](https://discourse.processing.org/u/MacJ)\
**Replies:** 6\
**Last updated:** [June 13, 2021, 10:24pm UTC](https://discourse.processing.org/t/move-pacman-using-arrow-key/30670 "2021-06-13T22:24:46Z")

</div>

Hello, here is my attempt at it any help would be much appreciated. //The variables that control everything known about the pacman float pacmanX, pacmanY; //The position of the pacman final int PACMAN\_DIAMETER =…

---

## [Como puedo mostrar en la consola números aleatorios definidos (-1,50,100,200) con Random](https://discourse.processing.org/t/como-puedo-mostrar-en-la-consola-numeros-aleatorios-definidos-1-50-100-200-con-random/30676)

<div class="topic-metadata">

**Author:** [@Aldo](https://discourse.processing.org/u/Aldo)\
**Replies:** 1\
**Last updated:** [June 13, 2021, 4:03pm UTC](https://discourse.processing.org/t/como-puedo-mostrar-en-la-consola-numeros-aleatorios-definidos-1-50-100-200-con-random/30676 "2021-06-13T16:03:14Z")

</div>

Buenos días Sres. Alguien me puede ayudar a mostrar aleatoriamente en la consola los números -1,50,100 y 200, casi al final en al función “void keyPressed()” necesito utilizar Random. De antemano gracias int \[\]\[\] MCer…

---

## [How can I implement a PlayStation Controller (with rumble)](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662)

<div class="topic-metadata">

**Author:** [@EinsMalteHH](https://discourse.processing.org/u/EinsMalteHH)\
**Replies:** 5\
**Last updated:** [June 13, 2021, 9:28am UTC](https://discourse.processing.org/t/how-can-i-implement-a-playstation-controller-with-rumble/30662 "2021-06-13T09:28:43Z")

</div>

I have tried using Game Control plus, and it worked okay… But It doesn’t seem to work for rumbling my PlayStation 4 Controller (Dual shock 4)

---

## [Help with comparing values in an array](https://discourse.processing.org/t/help-with-comparing-values-in-an-array/30668)

<div class="topic-metadata">

**Author:** [@TheBearOfJare](https://discourse.processing.org/u/TheBearOfJare)\
**Replies:** 1\
**Last updated:** [June 13, 2021, 6:17am UTC](https://discourse.processing.org/t/help-with-comparing-values-in-an-array/30668 "2021-06-13T06:17:09Z")

</div>

So, I’ve been writing various homemade neural networks, and I’ve realized that I waste a ton of time re-writing code and spending too much time writing ten billion copies of the same variable with just a different name. …

---

## [Android - Push Notification](https://discourse.processing.org/t/android-push-notification/30658)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 2\
**Last updated:** [June 13, 2021, 3:27am UTC](https://discourse.processing.org/t/android-push-notification/30658 "2021-06-13T03:27:56Z")

</div>

Hey, I wanted to ask if there is a way to send push notifications via Android processing. It does not matter whether it is Android Processing on the PC or APDE on the mobile phone. If found this Topic: Link With this …

---

## [Mapping mouse position of user screen to](https://discourse.processing.org/t/mapping-mouse-position-of-user-screen-to/30574)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 3\
**Last updated:** [June 12, 2021, 3:37pm UTC](https://discourse.processing.org/t/mapping-mouse-position-of-user-screen-to/30574 "2021-06-12T15:37:20Z")

</div>

I want to synchronize the stream projection of an environment video (youtube stream) with some geometrical objects drawn in it (e.g. little non intersecting circles) in such a way that a user on a smartphone or pc monito…

---

## [Filewriter for Android](https://discourse.processing.org/t/filewriter-for-android/28025)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 7\
**Last updated:** [June 12, 2021, 11:44am UTC](https://discourse.processing.org/t/filewriter-for-android/28025 "2021-06-12T11:44:12Z")

</div>

Not sure if there is already a simple solution to writing text files on android, so here goes. import java.io.BufferedWriter; import java.io.FileWriter; import android.os.Environment; import android.os.Build ; import an…

---

## [orbitControl() is loading super slowly](https://discourse.processing.org/t/orbitcontrol-is-loading-super-slowly/30588)

<div class="topic-metadata">

**Author:** [@tofu3000](https://discourse.processing.org/u/tofu3000)\
**Replies:** 4\
**Last updated:** [June 12, 2021, 11:06am UTC](https://discourse.processing.org/t/orbitcontrol-is-loading-super-slowly/30588 "2021-06-12T11:06:41Z")

</div>

In preload(), I have 17 images, 16 videos, and 11 3d objects (file sizes I believe are manageable… nothing exceeding 20 mb), and in setup() I am initializing webgl… In draw(), I’m calling orbitControl() and rendering th…

---

## [Beginner: how to run examples from 'The Book of Shaders'](https://discourse.processing.org/t/beginner-how-to-run-examples-from-the-book-of-shaders/4682)

<div class="topic-metadata">

**Author:** [@Hieronymus](https://discourse.processing.org/u/Hieronymus)\
**Replies:** 10\
**Last updated:** [June 12, 2021, 10:26am UTC](https://discourse.processing.org/t/beginner-how-to-run-examples-from-the-book-of-shaders/4682 "2021-06-12T10:26:35Z")

</div>

Hello and thank you, I am an absolute beginner with minimal knowledge of coding and I started working trough the examples of ‘The Book of Shaders’ ( https://thebookofshaders.com) I am trying to get the example code to …

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

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