# Latest

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

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

**Page:** 188

---

## [🎂 Celebrating Processing 20th Anniversary](https://discourse.processing.org/t/celebrating-processing-20th-anniversary/30797)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 14\
**Last updated:** [October 7, 2021, 2:42pm UTC](https://discourse.processing.org/t/celebrating-processing-20th-anniversary/30797 "2021-10-07T14:42:11Z")

</div>

Hi everyone :wave: As you may already know, this year is 20th anniversary of Processing! We think it’s nice to do something as a community towards August when Processing was “born” :hatching\_chick: :baby\_chick: Do you …

---

## [Connecting Arduino with Android - Bluetooth](https://discourse.processing.org/t/connecting-arduino-with-android-bluetooth/32605)

<div class="topic-metadata">

**Author:** [@Kagami](https://discourse.processing.org/u/Kagami)\
**Replies:** 16\
**Last updated:** [October 7, 2021, 2:39pm UTC](https://discourse.processing.org/t/connecting-arduino-with-android-bluetooth/32605 "2021-10-07T14:39:48Z")

</div>

Hi, Im trying to run this code (/dev/jarzebski: Przetwarzanie i wizualizacja danych) but with gyroscope instead of joystick. While connecting my arduino with PC via Bluetooth it works, but when i try connecting arduino…

---

## [Problem with ControlP5 library - Button not working](https://discourse.processing.org/t/problem-with-controlp5-library-button-not-working/32573)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 2:01pm UTC](https://discourse.processing.org/t/problem-with-controlp5-library-button-not-working/32573 "2021-10-07T14:01:48Z")

</div>

Hello everyone! I’m working on a GUI for a project I’m working on, and I thought about using ControlP5 as a library to help me adding GUI features (like buttons, sliders and others). I looked up on how it works, impleme…

---

## [How to export a p5.js animation in high quality video](https://discourse.processing.org/t/how-to-export-a-p5-js-animation-in-high-quality-video/32655)

<div class="topic-metadata">

**Author:** [@camilleroux](https://discourse.processing.org/u/camilleroux)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 7:43pm UTC](https://discourse.processing.org/t/how-to-export-a-p5-js-animation-in-high-quality-video/32655 "2021-10-06T19:43:14Z")

</div>

Hi, I’d like to export p5.js animation in high quality videos. I tried the export function of OpenProcessing, but the video is very compressed. Thanks

---

## [Basic loadStrings() Question](https://discourse.processing.org/t/basic-loadstrings-question/32663)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 12:04pm UTC](https://discourse.processing.org/t/basic-loadstrings-question/32663 "2021-10-07T12:04:45Z")

</div>

Hello all, So I’m messing around with some data and I came across an issue. I would like to get the table from the following URL However the following code produces an error. Table testtable; void setup(){ testta…

---

## [Hello, some question from a beginner (drip effect)](https://discourse.processing.org/t/hello-some-question-from-a-beginner-drip-effect/32041)

<div class="topic-metadata">

**Author:** [@asacool](https://discourse.processing.org/u/asacool)\
**Replies:** 14\
**Last updated:** [October 7, 2021, 9:30am UTC](https://discourse.processing.org/t/hello-some-question-from-a-beginner-drip-effect/32041 "2021-10-07T09:30:04Z")

</div>

Hi, I want to do spray paint effect,but how to cancel the point of the drip effect? (just want only "line "drip) sorry,I just the beginner. thanks!! my code: final int maxIterations = 20; // float x=0; float y=0; …

---

## [Issues adding libraries to Processing for Linux](https://discourse.processing.org/t/issues-adding-libraries-to-processing-for-linux/32656)

<div class="topic-metadata">

**Author:** [@PhineasGreene](https://discourse.processing.org/u/PhineasGreene)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 7:47am UTC](https://discourse.processing.org/t/issues-adding-libraries-to-processing-for-linux/32656 "2021-10-07T07:47:08Z")

</div>

I installed Processing from the Arch Linux AUR, and it works fine except for adding external libraries. When I use the Add Library GUI, I always get an error saying Could not download \[githuburl\] to /tmp/download\[numbers…

---

## [Translate PGS Shape](https://discourse.processing.org/t/translate-pgs-shape/32652)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 7:14am UTC](https://discourse.processing.org/t/translate-pgs-shape/32652 "2021-10-07T07:14:45Z")

</div>

Hi friends, I’m trying to translate a shape with the PGS library. But this code give me no results, the shape does’nt move. It’s the same problem with all function from PGS\_Transformation class. Where I’m wrong ? im…

---

## [Using PShader and GLSL to make swaying grass](https://discourse.processing.org/t/using-pshader-and-glsl-to-make-swaying-grass/32666)

<div class="topic-metadata">

**Author:** [@Vertexia](https://discourse.processing.org/u/Vertexia)\
**Replies:** 5\
**Last updated:** [October 7, 2021, 6:45am UTC](https://discourse.processing.org/t/using-pshader-and-glsl-to-make-swaying-grass/32666 "2021-10-07T06:45:23Z")

</div>

I’m trying to add swaying grass using both a vector and a fragment shader in a 2d game, and I’m up to the point where i need to add the image to the fragment shader. Right now I’m using image() to render the image, but t…

---

## [Let syntax error](https://discourse.processing.org/t/let-syntax-error/32662)

<div class="topic-metadata">

**Author:** [@Arche](https://discourse.processing.org/u/Arche)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 3:34am UTC](https://discourse.processing.org/t/let-syntax-error/32662 "2021-10-07T03:34:35Z")

</div>

I am new to processing and java and was trying to use let but when I compile it says syntax error. Do I have to add a plugin for that and how do I do it?

---

## [Video Pixels Changing While I Process Them](https://discourse.processing.org/t/video-pixels-changing-while-i-process-them/32589)

<div class="topic-metadata">

**Author:** [@stevensrmiller](https://discourse.processing.org/u/stevensrmiller)\
**Replies:** 15\
**Last updated:** [October 6, 2021, 6:52pm UTC](https://discourse.processing.org/t/video-pixels-changing-while-i-process-them/32589 "2021-10-06T18:52:37Z")

</div>

I’m using the Video 2.0 library with Processing 3.5.4 on Windows 10. I start capturing from my laptop’s camera, and just do an xor against 0xFFFFFF for every pixel. The output should look like this: But every so ofte…

---

## [Get random seed value in p5.js?](https://discourse.processing.org/t/get-random-seed-value-in-p5-js/32635)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 5\
**Last updated:** [October 6, 2021, 3:54pm UTC](https://discourse.processing.org/t/get-random-seed-value-in-p5-js/32635 "2021-10-06T15:54:56Z")

</div>

I’ve looked at the source code for the p5.js randomSeed() function but can’t quite figure this out: is it possible to get the seed value currently being used by the random() function? I’d like to grab this is setup() so …

---

## [Need to Hire someone for reactive audio](https://discourse.processing.org/t/need-to-hire-someone-for-reactive-audio/32651)

<div class="topic-metadata">

**Author:** [@patcantin](https://discourse.processing.org/u/patcantin)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 1:28pm UTC](https://discourse.processing.org/t/need-to-hire-someone-for-reactive-audio/32651 "2021-10-06T13:28:26Z")

</div>

Hi, I’m having a project where I need it to react with my audio file. Can someone help me? thanks Pat

---

## [Trying to make objects move away from cursor](https://discourse.processing.org/t/trying-to-make-objects-move-away-from-cursor/27915)

<div class="topic-metadata">

**Author:** [@spamelim](https://discourse.processing.org/u/spamelim)\
**Replies:** 10\
**Last updated:** [October 6, 2021, 12:29pm UTC](https://discourse.processing.org/t/trying-to-make-objects-move-away-from-cursor/27915 "2021-10-06T12:29:28Z")

</div>

I have a class called ball and I’m creating 100 ellipses using an array and for loop in main. My goal is to make them all move away from the cursor and so far this is what I have: void cursor() { if(dist(x,y,mouse…

---

## [Creating voronoi patterns](https://discourse.processing.org/t/creating-voronoi-patterns/14635)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 16\
**Last updated:** [October 6, 2021, 10:34am UTC](https://discourse.processing.org/t/creating-voronoi-patterns/14635 "2021-10-06T10:34:01Z")

</div>

Hi again everyone, I’m trying to code a program to generate voronoi diagrams, however I’m having issues generating the function that draws arcs in between each line. Voronoi generation is supposed to produce this type …

---

## [Help websocket IOS](https://discourse.processing.org/t/help-websocket-ios/32647)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 7:04am UTC](https://discourse.processing.org/t/help-websocket-ios/32647 "2021-10-06T07:04:38Z")

</div>

Amnyone know becouse websocket not work on IOS but Android yes?? Tankyou

---

## [Shapes inside other shapes](https://discourse.processing.org/t/shapes-inside-other-shapes/32619)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [October 6, 2021, 2:01am UTC](https://discourse.processing.org/t/shapes-inside-other-shapes/32619 "2021-10-06T02:01:25Z")

</div>

Hi there! I have done a loop of vertical lines, but I don’t want them to leak out the rhombus behind. Is there a (easy) way to draw the lines inside the yellow rhombus as you can see in the picture below? size(1000,1…

---

## [Mask with Android App](https://discourse.processing.org/t/mask-with-android-app/32644)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 0\
**Last updated:** [October 5, 2021, 10:44pm UTC](https://discourse.processing.org/t/mask-with-android-app/32644 "2021-10-05T22:44:30Z")

</div>

Hi there! Someone so kind as helped me with a mask that I need. The Code works perfectly on the pc, but not in the android app . Can you please help me with that? Thanks! PGraphics mask, buffer; void setup() { size(…

---

## [Pick Random Number Based on Preceding Number](https://discourse.processing.org/t/pick-random-number-based-on-preceding-number/32558)

<div class="topic-metadata">

**Author:** [@alenmartel](https://discourse.processing.org/u/alenmartel)\
**Replies:** 12\
**Last updated:** [October 3, 2021, 11:40am UTC](https://discourse.processing.org/t/pick-random-number-based-on-preceding-number/32558 "2021-10-03T11:40:56Z")

</div>

Good morning all; I’m trying to write a random number generator that generates twelve different random numbers and displays them in a column. However, what random number can follow each other one is limited to certain n…

---

## [Android transparency and windows transparency](https://discourse.processing.org/t/android-transparency-and-windows-transparency/32574)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 6:37pm UTC](https://discourse.processing.org/t/android-transparency-and-windows-transparency/32574 "2021-10-05T18:37:39Z")

</div>

Came across a weird problem with the transparency the same code produces different results in android vs windows. I’m coding some themes for the windows and would like to include transparency. It works in windows, but no…

---

## [Let/var behaviour inside function vs outside](https://discourse.processing.org/t/let-var-behaviour-inside-function-vs-outside/32639)

<div class="topic-metadata">

**Author:** [@ADG](https://discourse.processing.org/u/ADG)\
**Replies:** 3\
**Last updated:** [October 5, 2021, 6:03pm UTC](https://discourse.processing.org/t/let-var-behaviour-inside-function-vs-outside/32639 "2021-10-05T18:03:41Z")

</div>

Probably a dumb question, but in this example: var angle = 0.0; function setup() { createCanvas(120, 120); background(204); } function draw() { translate(mouseX, mouseY); rotate(angle); rect(-15, -15, 30, 30); angle += …

---

## [PGS point in Shape - eratic behavior](https://discourse.processing.org/t/pgs-point-in-shape-eratic-behavior/32633)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 1:57pm UTC](https://discourse.processing.org/t/pgs-point-in-shape-eratic-behavior/32633 "2021-10-05T13:57:46Z")

</div>

Hi, I’m trying to see if my mouse is inside a shape with the PGS library. There’s maybe something wrong, I’ve got sometimes “ok” in the console. Here’s my code : import micycle.pgs.\*; PShape sh; void setup() { sh …

---

## [Why isn't the box in the center of the screen?](https://discourse.processing.org/t/why-isnt-the-box-in-the-center-of-the-screen/32580)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 10\
**Last updated:** [October 5, 2021, 1:50pm UTC](https://discourse.processing.org/t/why-isnt-the-box-in-the-center-of-the-screen/32580 "2021-10-05T13:50:02Z")

</div>

float x=height/2; float y=width/2; float z=0; void setup(){ size(400,400,P3D); } void draw(){ print(x,y,z); background(255); translate(x, y, z); noFill(); box(160); print(z); z++; }

---

## [A Processing Quine](https://discourse.processing.org/t/a-processing-quine/31332)

<div class="topic-metadata">

**Author:** [@TomD](https://discourse.processing.org/u/TomD)\
**Replies:** 16\
**Last updated:** [October 5, 2021, 1:29pm UTC](https://discourse.processing.org/t/a-processing-quine/31332 "2021-10-05T13:29:20Z")

</div>

Hi There, Earlier I made a Quine in Processing, that is code that prints it’s source code without any input. It works, it prints to the canvas what I can see in the text editor. I am wondering if anyone can see any fu…

---

## [Export sound and gif from a sketch](https://discourse.processing.org/t/export-sound-and-gif-from-a-sketch/32628)

<div class="topic-metadata">

**Author:** [@matteo](https://discourse.processing.org/u/matteo)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 11:37am UTC](https://discourse.processing.org/t/export-sound-and-gif-from-a-sketch/32628 "2021-10-05T11:37:07Z")

</div>

Hi, I’ve put together a very easy sketch which uses the Sound library to create a basic show which i then visualize on the sketch. What i would like to achive: Export the sound Save the visual as a gif (i’ve been rea…

---

## [Use a fragment and vertex shader through GL4](https://discourse.processing.org/t/use-a-fragment-and-vertex-shader-through-gl4/32585)

<div class="topic-metadata">

**Author:** [@honeyjar](https://discourse.processing.org/u/honeyjar)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 8:46am UTC](https://discourse.processing.org/t/use-a-fragment-and-vertex-shader-through-gl4/32585 "2021-10-05T08:46:01Z")

</div>

I’m attempting to set up a fragment and vertex shader where the vertex shader outputs a quad that covers the entire screen and the fragment shader draws a signed distance function on it. I know that you can attach fragm…

---

## [I can't seem to use a uniform shader variable if I name it "uAmbientColor"](https://discourse.processing.org/t/i-cant-seem-to-use-a-uniform-shader-variable-if-i-name-it-uambientcolor/32593)

<div class="topic-metadata">

**Author:** [@modusponens](https://discourse.processing.org/u/modusponens)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 8:25pm UTC](https://discourse.processing.org/t/i-cant-seem-to-use-a-uniform-shader-variable-if-i-name-it-uambientcolor/32593 "2021-10-04T20:25:44Z")

</div>

Just as the title says, if I make a p5 sketch with WEBGL enabled and all that, and I make a shader and try to give it a uniform variable called uAmbientColor, I am unable to use it correctly. Regard this humble sketch: …

---

## [Could not run the sketch (Target VM failed to initialize)](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize/1841)

<div class="topic-metadata">

**Author:** [@jkarlos4](https://discourse.processing.org/u/jkarlos4)\
**Replies:** 6\
**Last updated:** [October 5, 2021, 2:54am UTC](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize/1841 "2021-10-05T02:54:33Z")

</div>

Help, I am getting this error message every time a run a code: Could not run the sketch (Target VM failed to initialize). have tried to run other included examples and they work pretty well, but not my code. here it is: …

---

## [Can you do GPS tracking with Processing?](https://discourse.processing.org/t/can-you-do-gps-tracking-with-processing/32601)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [October 4, 2021, 11:04pm UTC](https://discourse.processing.org/t/can-you-do-gps-tracking-with-processing/32601 "2021-10-04T23:04:47Z")

</div>

can you do gps tracking with processing? I plan on using android and maybe apple

---

## [How to have all platforms stay?](https://discourse.processing.org/t/how-to-have-all-platforms-stay/32610)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 9:33pm UTC](https://discourse.processing.org/t/how-to-have-all-platforms-stay/32610 "2021-10-04T21:33:47Z")

</div>

how to have all of the platforms stay visible? //visual PImage shrek; boolean invert= false; PImage\[\] soldier= new PImage\[3\]; platform platform; //timer //moving float charx=0; float chary=563-100; boolean jumping= fal…

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

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