# Latest

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

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

**Page:** 301

---

## [Idk why but I get this error message: Expected an assignment or function call and instead saw an expression](https://discourse.processing.org/t/idk-why-but-i-get-this-error-message-expected-an-assignment-or-function-call-and-instead-saw-an-expression/24311)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 2\
**Last updated:** [October 3, 2020, 5:01pm UTC](https://discourse.processing.org/t/idk-why-but-i-get-this-error-message-expected-an-assignment-or-function-call-and-instead-saw-an-expression/24311 "2020-10-03T17:01:51Z")

</div>

if (timer = 98){ xd1 == xd1 \* -1; yd1 == yd1 \* -1; }

---

## [Similar community forum for html?](https://discourse.processing.org/t/similar-community-forum-for-html/24308)

<div class="topic-metadata">

**Author:** [@r8th](https://discourse.processing.org/u/r8th)\
**Replies:** 1\
**Last updated:** [October 3, 2020, 3:14pm UTC](https://discourse.processing.org/t/similar-community-forum-for-html/24308 "2020-10-03T15:14:23Z")

</div>

Hi, I’m curious if anyone using this forum uses a similar forum (similar meaning as helpful, as accessible, as reliable) for HTML user support. I see this post does not fit exactly the preferred topics for this categor…

---

## [Why directionallight cannot show anything](https://discourse.processing.org/t/why-directionallight-cannot-show-anything/24305)

<div class="topic-metadata">

**Author:** [@yyf](https://discourse.processing.org/u/yyf)\
**Replies:** 5\
**Last updated:** [October 3, 2020, 2:33pm UTC](https://discourse.processing.org/t/why-directionallight-cannot-show-anything/24305 "2020-10-03T14:33:15Z")

</div>

void draw() { background(0,0,0); translate(400,400,-mouseY); fill(0,255,0); directionalLight(255,0,0,10,0,0); noStroke(); sphere(100.0); }

---

## [Which renderer?](https://discourse.processing.org/t/which-renderer/24307)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 0\
**Last updated:** [October 3, 2020, 1:51pm UTC](https://discourse.processing.org/t/which-renderer/24307 "2020-10-03T13:51:56Z")

</div>

Hi All Just asking what renderers people are using for their Android apps. I tend to use P2D instead of the default as I get a slightly better frame rate. I have just tried FX2D too, but that doesn’t seem to work. What…

---

## [Developing a Fractal Shader](https://discourse.processing.org/t/developing-a-fractal-shader/24306)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 3, 2020, 9:38am UTC](https://discourse.processing.org/t/developing-a-fractal-shader/24306 "2020-10-03T09:38:29Z")

</div>

Previously I presented a Newton fractal sketch using ruby Complex numbers. Then I explored shadertoy and converted a sketch to Picrate. This gave me the confidence to develop my own variant:- Here is the PiCrate code:…

---

## [Petit problème d'animation](https://discourse.processing.org/t/petit-probleme-danimation/24295)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.processing.org/u/nina)\
**Replies:** 4\
**Last updated:** [October 3, 2020, 8:14am UTC](https://discourse.processing.org/t/petit-probleme-danimation/24295 "2020-10-03T08:14:57Z")

</div>

Bonjour , j’ai un petit souci je voudrais faire une animation sur processing. Le concept est la suivante , je voudrais faire de la pluie mais, je n’y arrive pas s’il vous plait aidez-moi . voici le programme que j’ai fa…

---

## [Constrain() function / mouse click on button](https://discourse.processing.org/t/constrain-function-mouse-click-on-button/24299)

<div class="topic-metadata">

**Author:** [@bigjoebob](https://discourse.processing.org/u/bigjoebob)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 11:32pm UTC](https://discourse.processing.org/t/constrain-function-mouse-click-on-button/24299 "2020-10-02T23:32:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi!! I need help in understanding how to use the constrain() function. I want to be able to click on a rectangle and have it change colors, howe…

---

## [keyPressed and keyReleased](https://discourse.processing.org/t/keypressed-and-keyreleased/24296)

<div class="topic-metadata">

**Author:** [@jaspervb](https://discourse.processing.org/u/jaspervb)\
**Replies:** 3\
**Last updated:** [October 2, 2020, 11:23pm UTC](https://discourse.processing.org/t/keypressed-and-keyreleased/24296 "2020-10-02T23:23:59Z")

</div>

Hello there, I need some help with processing. I am using the following code to lock and unlock rectangles with keycode. This works perfectly… In this case i want to add the following posibility: when you press a key …

---

## [Example: running UNIX command from processing to execute python scripts](https://discourse.processing.org/t/example-running-unix-command-from-processing-to-execute-python-scripts/24285)

<div class="topic-metadata">

**Author:** [@stephanschulz](https://discourse.processing.org/u/stephanschulz)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 10:11pm UTC](https://discourse.processing.org/t/example-running-unix-command-from-processing-to-execute-python-scripts/24285 "2020-10-02T22:11:22Z")

</div>

This is not a question. I wanted to use the AxiDraw with processing. There are some libraries out there but none had a nice trajectory planning build in. So I followed the the install steps for the AxiDraw pytho…

---

## [Processing-style documentation for other projects](https://discourse.processing.org/t/processing-style-documentation-for-other-projects/24268)

<div class="topic-metadata">

**Author:** [@22samurai](https://discourse.processing.org/u/22samurai)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 8:40pm UTC](https://discourse.processing.org/t/processing-style-documentation-for-other-projects/24268 "2020-10-02T20:40:47Z")

</div>

I used Processing several years ago and really appreciated the documentation website with the interactive examples as a way to learn quickly about the language. pico8 is a lua-based “fantasy console” and the first thing…

---

## [P5.js and P5js-Sound on Android Studio with Webview](https://discourse.processing.org/t/p5-js-and-p5js-sound-on-android-studio-with-webview/24288)

<div class="topic-metadata">

**Author:** [@nxmusic](https://discourse.processing.org/u/nxmusic)\
**Replies:** 0\
**Last updated:** [October 2, 2020, 3:16pm UTC](https://discourse.processing.org/t/p5-js-and-p5js-sound-on-android-studio-with-webview/24288 "2020-10-02T15:16:17Z")

</div>

Hi! Only p5.js in Webview with android studio works ok, but when I add p5sound code only appears the loading… message Anyone have experience using p5 sound in android studio? Thaaaaaaanks

---

## [Contents Of The Folder Not Being Copied With It](https://discourse.processing.org/t/contents-of-the-folder-not-being-copied-with-it/24293)

<div class="topic-metadata">

**Author:** [@Charlie\_Dev](https://discourse.processing.org/u/Charlie_Dev)\
**Replies:** 0\
**Last updated:** [October 2, 2020, 7:56pm UTC](https://discourse.processing.org/t/contents-of-the-folder-not-being-copied-with-it/24293 "2020-10-02T19:56:26Z")

</div>

I am copying files, but I need to copy folders. When I try to copy a folder the folder gets duplicated but there is nothing inside of it. I think there are 2 solutions but I don’t know how to do either. I could either fi…

---

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

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 5\
**Last updated:** [October 2, 2020, 6:11pm UTC](https://discourse.processing.org/t/newton-fractal-sketch/24211 "2020-10-02T18:11:53Z")

</div>

@villares @solub @tabreturn Jörg Kantel has been at it again on his blog, I picked up his NewtonFractal sketch and translated it for JRubyArt here:- # frozen\_string\_literal: true IMGX = 512 IMGY = 512 MAXIT = 20 # max …

---

## [Why Can't Processing Do Basic Math lol](https://discourse.processing.org/t/why-cant-processing-do-basic-math-lol/24277)

<div class="topic-metadata">

**Author:** [@wyattsworlddd](https://discourse.processing.org/u/wyattsworlddd)\
**Replies:** 8\
**Last updated:** [October 2, 2020, 4:32pm UTC](https://discourse.processing.org/t/why-cant-processing-do-basic-math-lol/24277 "2020-10-02T16:32:36Z")

</div>

Hey yall! I’m building a model that can simulate the trading that occurs across a liquidity pool and to experiment with how I can use a balancer contract account to tend the pool and keep a stable currency ratio. The iss…

---

## [Processing video library can't display human figure in a video with green background(solved)](https://discourse.processing.org/t/processing-video-library-cant-display-human-figure-in-a-video-with-green-background-solved/24270)

<div class="topic-metadata">

**Author:** [@Kenny](https://discourse.processing.org/u/Kenny)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 2:03pm UTC](https://discourse.processing.org/t/processing-video-library-cant-display-human-figure-in-a-video-with-green-background-solved/24270 "2020-10-02T14:03:43Z")

</div>

Hi everyone, I am using the following code to play the welcoming p5js video which is green background with human figures talking. The problem is that I can only see green canvas (and hear voices) without human figures. …

---

## [keyPressed to change image color, help!](https://discourse.processing.org/t/keypressed-to-change-image-color-help/24244)

<div class="topic-metadata">

**Author:** [@iwanttobelieve](https://discourse.processing.org/u/iwanttobelieve)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 10:22pm UTC](https://discourse.processing.org/t/keypressed-to-change-image-color-help/24244 "2020-10-01T22:22:58Z")

</div>

Hey there! I was tasked to recreate the bouncing DVD logo screen - however I’m meant to make it so that when a key is pressed, the image changes a random color. I’ve tried a bunch of different combinations, and can’t se…

---

## [Tablet friendly drawing program: how to lock canvas down or make fullscreen-feeling](https://discourse.processing.org/t/tablet-friendly-drawing-program-how-to-lock-canvas-down-or-make-fullscreen-feeling/24206)

<div class="topic-metadata">

**Author:** [@kirkjerk](https://discourse.processing.org/u/kirkjerk)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 9:14pm UTC](https://discourse.processing.org/t/tablet-friendly-drawing-program-how-to-lock-canvas-down-or-make-fullscreen-feeling/24206 "2020-10-01T21:14:34Z")

</div>

Any suggestions on how to “lock” down the canvas on a mobile device? I’d like to make a drawing doodle program but most gestures drag the screen with it. I thought I was close by using CSS to make the Canvas parent “pos…

---

## [Shadertoy gems from the master](https://discourse.processing.org/t/shadertoy-gems-from-the-master/24276)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 7:36pm UTC](https://discourse.processing.org/t/shadertoy-gems-from-the-master/24276 "2020-10-01T19:36:07Z")

</div>

Inigo Quilez has recently posted an article that will find interest with anyone thinking of coding glsl shaders (for processing or anything else). Here I have adapted one of his examples to PiCrate, ruby-processing for t…

---

## [Kinect PV2 record color point cloud](https://discourse.processing.org/t/kinect-pv2-record-color-point-cloud/10939)

<div class="topic-metadata">

**Author:** [@phaidon](https://discourse.processing.org/u/phaidon)\
**Replies:** 8\
**Last updated:** [October 1, 2020, 6:32pm UTC](https://discourse.processing.org/t/kinect-pv2-record-color-point-cloud/10939 "2020-10-01T18:32:13Z")

</div>

Hello, i am trying to record the point cloud with color using this Kinect PV2 library, apparenty the getPointCloudColorPos() returns - INFINITY values, so i used 3 buffers two for the represantation in the processing s…

---

## [Sketch not working in Chrome](https://discourse.processing.org/t/sketch-not-working-in-chrome/24272)

<div class="topic-metadata">

**Author:** [@alsumwas](https://discourse.processing.org/u/alsumwas)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 3:24pm UTC](https://discourse.processing.org/t/sketch-not-working-in-chrome/24272 "2020-10-01T15:24:51Z")

</div>

I made this simple sketch and it will not open in Chrome after I export it from the p5.js web editor. Any suggestions? http://do.art.gvsu.edu/interactive21/sound/index.html

---

## [Button not working as expected](https://discourse.processing.org/t/button-not-working-as-expected/24273)

<div class="topic-metadata">

**Author:** [@alsumwas](https://discourse.processing.org/u/alsumwas)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 3:31pm UTC](https://discourse.processing.org/t/button-not-working-as-expected/24273 "2020-10-01T15:31:24Z")

</div>

The sketch below works fine in the p5.js web editor but when I export it and upload it to the server the buttons do not work properly. Button c and d are the colors I want them to be but a, b, e, and f are the default c…

---

## [Web editor p5.js logging problem](https://discourse.processing.org/t/web-editor-p5-js-logging-problem/24275)

<div class="topic-metadata">

**Author:** [@ivan\_abreu](https://discourse.processing.org/u/ivan_abreu)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 5:45pm UTC](https://discourse.processing.org/t/web-editor-p5-js-logging-problem/24275 "2020-10-01T17:45:51Z")

</div>

Do you have problems logging into the web editor of p5.js? : ( I teach my creative code classes on that platform Does anyone know what happens?

---

## [Want a portfolio website for your p5.js sketches?](https://discourse.processing.org/t/want-a-portfolio-website-for-your-p5-js-sketches/24271)

<div class="topic-metadata">

**Author:** [@pigeonsailor](https://discourse.processing.org/u/pigeonsailor)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 2:29pm UTC](https://discourse.processing.org/t/want-a-portfolio-website-for-your-p5-js-sketches/24271 "2020-10-01T14:29:49Z")

</div>

Hey there – I was looking for scaffolding for a simple but slick p5.js website so I could show off my sketches, but I couldn’t find one. So I built one as a Gatsby starter. Here’s a link to the Gatsby starter in the Gat…

---

## [Trouble with code linking to JSON file in p5.js?](https://discourse.processing.org/t/trouble-with-code-linking-to-json-file-in-p5-js/24241)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 5\
**Last updated:** [October 1, 2020, 1:45pm UTC](https://discourse.processing.org/t/trouble-with-code-linking-to-json-file-in-p5-js/24241 "2020-10-01T13:45:51Z")

</div>

Hi everyone, so I’ve just changed my JSON data so that I can link it my “date” as well as the “hours”. So I wrote out this section two lines to get the data working, but so far no luck. Was wondering if anyone can help? …

---

## [Why? My class exists!](https://discourse.processing.org/t/why-my-class-exists/24269)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 9\
**Last updated:** [October 1, 2020, 1:55pm UTC](https://discourse.processing.org/t/why-my-class-exists/24269 "2020-10-01T13:55:00Z")

</div>

The compiler says… the class “Circle” does not exist …but it does. Code: Circle circle = new Circle(10,color(0),color(255,0,0),0,new PVector(400,400),new PVector(0,0),new PVector(0,0)); class Circle{ float diamete…

---

## [Item Generator for D&D](https://discourse.processing.org/t/item-generator-for-d-d/24250)

<div class="topic-metadata">

**Author:** [@Artra97](https://discourse.processing.org/u/Artra97)\
**Replies:** 3\
**Last updated:** [September 30, 2020, 9:17pm UTC](https://discourse.processing.org/t/item-generator-for-d-d/24250 "2020-09-30T21:17:33Z")

</div>

Hello! Since I would like to start playing D&D, and also want to make things easier for me in the long run, I’m planning on making an item creator. The code I have so far allows me to write out an item, and save the da…

---

## [How to create infinite zoom with image mosaic](https://discourse.processing.org/t/how-to-create-infinite-zoom-with-image-mosaic/24264)

<div class="topic-metadata">

**Author:** [@newbie](https://discourse.processing.org/u/newbie)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 11:29am UTC](https://discourse.processing.org/t/how-to-create-infinite-zoom-with-image-mosaic/24264 "2020-10-01T11:29:23Z")

</div>

Hello everyone, I am new with the Processing language. I am trying to make processing animation with infinite zoom of image mosaic. I saw a discussion about this in the discourse processing foundation titled as “2001 A S…

---

## [Creating vertical lines](https://discourse.processing.org/t/creating-vertical-lines/24251)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 6\
**Last updated:** [October 1, 2020, 8:04am UTC](https://discourse.processing.org/t/creating-vertical-lines/24251 "2020-10-01T08:04:17Z")

</div>

Create a user defined function called drawLines() that has a strokeWeight(3) and a random r, g, b value with lower red, medium green and higher blue values. \*\*\*\*What is it telling me to do with the colors? This is what…

---

## [Shader that matches filter(DILATE)?](https://discourse.processing.org/t/shader-that-matches-filter-dilate/24257)

<div class="topic-metadata">

**Author:** [@DanielH](https://discourse.processing.org/u/DanielH)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 7:21am UTC](https://discourse.processing.org/t/shader-that-matches-filter-dilate/24257 "2020-10-01T07:21:43Z")

</div>

Anyone know if such a thing exists? Would be nice to provide shader equivalents for the basic filters included in p5js so that users can easily switch between 2D/filters and WEBGL

---

## [BufferedAudio does not exist Minim](https://discourse.processing.org/t/bufferedaudio-does-not-exist-minim/24239)

<div class="topic-metadata">

**Author:** [@rookieCookie](https://discourse.processing.org/u/rookieCookie)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 5:24am UTC](https://discourse.processing.org/t/bufferedaudio-does-not-exist-minim/24239 "2020-10-01T05:24:01Z")

</div>

Hello, I have an Arduino project for which I’m trying to downsample an mp3 track. To do so, I came across Processing and similar project. However, this is the error that I’m stuck with “The variable “BufferedAudio” does…

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

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