# Latest

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

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

**Page:** 388

---

## [Circumscribe perlin cloud](https://discourse.processing.org/t/circumscribe-perlin-cloud/12152)

<div class="topic-metadata">

**Author:** [@excalibas](https://discourse.processing.org/u/excalibas)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 3:55pm UTC](https://discourse.processing.org/t/circumscribe-perlin-cloud/12152 "2020-02-29T15:55:00Z")

</div>

Hello, I am trying to draw something that looks like a cloud. I like the effect I get with using perlin noise like this: float t1 = 0.0; float t2 = 10000; void setup(){ size(700,700); noLoop(); loadPixels(); } …

---

## [It won't select colors or stroke weight when I make the draw-program only draw in a specific area](https://discourse.processing.org/t/it-wont-select-colors-or-stroke-weight-when-i-make-the-draw-program-only-draw-in-a-specific-area/18122)

<div class="topic-metadata">

**Author:** [@WeeBoEtte](https://discourse.processing.org/u/WeeBoEtte)\
**Replies:** 7\
**Last updated:** [February 29, 2020, 2:44pm UTC](https://discourse.processing.org/t/it-wont-select-colors-or-stroke-weight-when-i-make-the-draw-program-only-draw-in-a-specific-area/18122 "2020-02-29T14:44:57Z")

</div>

I am trying to make a drawing program where it only draws in a rectangle made in setup. I want to still be able to use my color, size, and clearing ability that I made, but I can’t figure it out. Any tips would be great. …

---

## [Translate all pixels of a canvas?](https://discourse.processing.org/t/translate-all-pixels-of-a-canvas/18224)

<div class="topic-metadata">

**Author:** [@Coton](https://discourse.processing.org/u/Coton)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 12:28pm UTC](https://discourse.processing.org/t/translate-all-pixels-of-a-canvas/18224 "2020-02-29T12:28:22Z")

</div>

Hi! I’m really new to P5.js and as I’m experimenting, I was wondering how to modify a pre existing file. I was looking at Daniel Shiffman’s Slit Scan here: The code is pretty simple and goes like this: // Daniel Shi…

---

## [P5.bots connect arduino to public website](https://discourse.processing.org/t/p5-bots-connect-arduino-to-public-website/18133)

<div class="topic-metadata">

**Author:** [@botbotbot](https://discourse.processing.org/u/botbotbot)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 4:51am UTC](https://discourse.processing.org/t/p5-bots-connect-arduino-to-public-website/18133 "2020-02-29T04:51:41Z")

</div>

Hi all! I’m new to networking so bear with me. I want to be able to instantly control a public website through some sensor input on an arduino. Let say I want the color of the background to change when i push a physical …

---

## [Can't find the folder for my program](https://discourse.processing.org/t/cant-find-the-folder-for-my-program/18138)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 4\
**Last updated:** [February 29, 2020, 3:41am UTC](https://discourse.processing.org/t/cant-find-the-folder-for-my-program/18138 "2020-02-29T03:41:23Z")

</div>

I’m using p5.js web editor & I’m trying to place a picture in my program, but idk where the folder is so I can place the image in the folder & then display it. I know how to display it once I get the picture in the folde…

---

## [Generating natural-looking terrain from a few known peaks](https://discourse.processing.org/t/generating-natural-looking-terrain-from-a-few-known-peaks/18233)

<div class="topic-metadata">

**Author:** [@dandotdot](https://discourse.processing.org/u/dandotdot)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 1:39am UTC](https://discourse.processing.org/t/generating-natural-looking-terrain-from-a-few-known-peaks/18233 "2020-02-29T01:39:50Z")

</div>

Hi clever people, I’m trying to find the best way to generate terrain that looks natural-ish (Which I suppose mainly means peaks descending as valleys and ridges, rather than a single plane). I know the heights of a bu…

---

## [Help with click to shoot](https://discourse.processing.org/t/help-with-click-to-shoot/18195)

<div class="topic-metadata">

**Author:** [@roguecode](https://discourse.processing.org/u/roguecode)\
**Replies:** 6\
**Last updated:** [February 28, 2020, 10:52pm UTC](https://discourse.processing.org/t/help-with-click-to-shoot/18195 "2020-02-28T22:52:33Z")

</div>

hello i need help with my code. i need to be able to click the picture with the cross hair and for it to fall but nothing ive done seems to work. if possible could you guys show me how to do it using a while loop? also h…

---

## [How do I target a specific circle in a random circle packing?](https://discourse.processing.org/t/how-do-i-target-a-specific-circle-in-a-random-circle-packing/18227)

<div class="topic-metadata">

**Author:** [@cesca](https://discourse.processing.org/u/cesca)\
**Replies:** 4\
**Last updated:** [February 29, 2020, 1:06am UTC](https://discourse.processing.org/t/how-do-i-target-a-specific-circle-in-a-random-circle-packing/18227 "2020-02-29T01:06:56Z")

</div>

I want to change the circles’ colours when the mouse hovers them (but not all at once, just that specific circle the mouse is on)? I copied this code from a tutorial so I don’t know how to code at all. var circles = \[\];…

---

## [Reinforcement learning java](https://discourse.processing.org/t/reinforcement-learning-java/18030)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 18\
**Last updated:** [February 29, 2020, 12:53am UTC](https://discourse.processing.org/t/reinforcement-learning-java/18030 "2020-02-29T00:53:20Z")

</div>

OK, I’m giving up on python. Even when I code it correct it gives me an error for no reason. So can someone point me to how to reinforcement learn in java?

---

## [High cpu while typing](https://discourse.processing.org/t/high-cpu-while-typing/18175)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [February 28, 2020, 11:11pm UTC](https://discourse.processing.org/t/high-cpu-while-typing/18175 "2020-02-28T23:11:38Z")

</div>

Not a question about code of any kind, however on the latest version of processing, using the built in ide, cpu usage will spike whilst writing. I suspect it might have something to do with the size of my program, howev…

---

## [Contribute a new translation](https://discourse.processing.org/t/contribute-a-new-translation/17405)

<div class="topic-metadata">

**Author:** [@trikaphundo](https://discourse.processing.org/u/trikaphundo)\
**Replies:** 9\
**Last updated:** [February 28, 2020, 6:03pm UTC](https://discourse.processing.org/t/contribute-a-new-translation/17405 "2020-02-28T18:03:02Z")

</div>

Hello everyone, I would like to contribute a Catalan translation to Processing development environment (the sketchbook). I couldn’t find any information or instructions on how to contribute a translation, neither in the…

---

## [OpenGL renderer for processing](https://discourse.processing.org/t/opengl-renderer-for-processing/18212)

<div class="topic-metadata">

**Author:** [@ShreyanshAnchlia](https://discourse.processing.org/u/ShreyanshAnchlia)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 2:56pm UTC](https://discourse.processing.org/t/opengl-renderer-for-processing/18212 "2020-02-28T14:56:40Z")

</div>

Hi, I’m Shreyansh, a B.Tech student from India. I would like to work on JOGL renderer for processing as a part of my GSoC project. I have worked on OpenGL previously on c++ and java to develop games. I would like to imp…

---

## [Collection of Android widgets, functions and utilities](https://discourse.processing.org/t/collection-of-android-widgets-functions-and-utilities/18217)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 0\
**Last updated:** [February 28, 2020, 2:40pm UTC](https://discourse.processing.org/t/collection-of-android-widgets-functions-and-utilities/18217 "2020-02-28T14:40:17Z")

</div>

I opened a Github repository with Android widgets, functions and utilities here. Will be updated with more in the coming days.

---

## [How to change a circle's colour when the mouse hovers it?](https://discourse.processing.org/t/how-to-change-a-circles-colour-when-the-mouse-hovers-it/18192)

<div class="topic-metadata">

**Author:** [@cesca](https://discourse.processing.org/u/cesca)\
**Replies:** 3\
**Last updated:** [February 28, 2020, 10:59am UTC](https://discourse.processing.org/t/how-to-change-a-circles-colour-when-the-mouse-hovers-it/18192 "2020-02-28T10:59:40Z")

</div>

New to Processing. I know I’m supposed to check if the distance from the mouse to the circle is less than the radius, but I don’t know how to write the code for that or where to place it. This code below is just an adapt…

---

## [Hand tracking with RealSense](https://discourse.processing.org/t/hand-tracking-with-realsense/17972)

<div class="topic-metadata">

**Author:** [@Chrou](https://discourse.processing.org/u/Chrou)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 10:34am UTC](https://discourse.processing.org/t/hand-tracking-with-realsense/17972 "2020-02-28T10:34:01Z")

</div>

Hello! I’m working on a project that involves hand tracking with a RealSense D435 camera. I’d like to implement it in Processing because it’s easier for the person who will take over once my internship ends. Is there a …

---

## [I want to make stickmans move](https://discourse.processing.org/t/i-want-to-make-stickmans-move/18204)

<div class="topic-metadata">

**Author:** [@seojin051005](https://discourse.processing.org/u/seojin051005)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 8:38am UTC](https://discourse.processing.org/t/i-want-to-make-stickmans-move/18204 "2020-02-28T08:38:57Z")

</div>

Hello, I’m currently learning how to use processing in the school for an upcoming big project- making an advertisement for sports day. For my advert, I want to make my stickman running by animating the stickmans, but I d…

---

## [Using ellipse as button to play sound file?](https://discourse.processing.org/t/using-ellipse-as-button-to-play-sound-file/18077)

<div class="topic-metadata">

**Author:** [@msugar](https://discourse.processing.org/u/msugar)\
**Replies:** 3\
**Last updated:** [February 28, 2020, 2:48am UTC](https://discourse.processing.org/t/using-ellipse-as-button-to-play-sound-file/18077 "2020-02-28T02:48:03Z")

</div>

Hi all, I’m new to p5.js (and a pretty rusty at JavaScript!) and working on building a little program that will have buttons on a map that will play sounds recorded at those points on the map. I’m attempting to use an e…

---

## [Slower and laggy Processing 3 sketch with a larger window](https://discourse.processing.org/t/slower-and-laggy-processing-3-sketch-with-a-larger-window/17975)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 1\
**Last updated:** [February 28, 2020, 1:30am UTC](https://discourse.processing.org/t/slower-and-laggy-processing-3-sketch-with-a-larger-window/17975 "2020-02-28T01:30:49Z")

</div>

I am trying to create an app that can be resized depending on the user’s preference. The app for now is going to be a grid that can be moved around. At the default (and small) size, it runs pretty well and fast. But whe…

---

## [Can someone help me? Nested for-loop](https://discourse.processing.org/t/can-someone-help-me-nested-for-loop/18179)

<div class="topic-metadata">

**Author:** [@seojin051005](https://discourse.processing.org/u/seojin051005)\
**Replies:** 5\
**Last updated:** [February 27, 2020, 10:30pm UTC](https://discourse.processing.org/t/can-someone-help-me-nested-for-loop/18179 "2020-02-27T22:30:44Z")

</div>

I want to combine these two lines but I don’t know how to. for (int x=940; x\<1001; x+=30); for (int y=53; y\<234; y+=30)

---

## [Help game code question](https://discourse.processing.org/t/help-game-code-question/18197)

<div class="topic-metadata">

**Author:** [@lupos](https://discourse.processing.org/u/lupos)\
**Replies:** 8\
**Last updated:** [February 27, 2020, 9:26pm UTC](https://discourse.processing.org/t/help-game-code-question/18197 "2020-02-27T21:26:43Z")

</div>

I am working on a game in processing for my university project but I have a problem. when the game patterns change their positions wont reset. if you let the pattern loop you will see what I mean can anyone help me? cod…

---

## [G4P.showMessage ... G4P.WARNING causes error](https://discourse.processing.org/t/g4p-showmessage-g4p-warning-causes-error/18198)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 7:46pm UTC](https://discourse.processing.org/t/g4p-showmessage-g4p-warning-causes-error/18198 "2020-02-27T19:46:25Z")

</div>

After just updating G4P Library to latest version (4.3.2) from 4.1.3, The following line of code (which worked under 4.1.3): G4P.showMessage(this, “Not a valid Patch file?”, “Bad Patch Data”, G4P.WARNING); now gives th…

---

## [ML5 Face API neural net classification](https://discourse.processing.org/t/ml5-face-api-neural-net-classification/18188)

<div class="topic-metadata">

**Author:** [@j3n](https://discourse.processing.org/u/j3n)\
**Replies:** 0\
**Last updated:** [February 27, 2020, 4:03pm UTC](https://discourse.processing.org/t/ml5-face-api-neural-net-classification/18188 "2020-02-27T16:03:42Z")

</div>

Hello, I am combining the ML5 Face API example and their new neural net functionality to make a FaceAPi classifier. The code works in terms of it is parsing the features to the brain (neural net model), training and sa…

---

## [Send video frame into OpenCV?](https://discourse.processing.org/t/send-video-frame-into-opencv/18075)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 9\
**Last updated:** [February 27, 2020, 4:02pm UTC](https://discourse.processing.org/t/send-video-frame-into-opencv/18075 "2020-02-27T16:02:52Z")

</div>

I’m trying to read the frame of a video and send it into OpenCV for blob detection, but am getting a strange error. With this simple example: import processing.video.\*; Movie mov; OpenCV cv; void setup() { size(640…

---

## [Make smiley go bigger or smaller without changing](https://discourse.processing.org/t/make-smiley-go-bigger-or-smaller-without-changing/18173)

<div class="topic-metadata">

**Author:** [@M.juliet](https://discourse.processing.org/u/M.juliet)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 3:48pm UTC](https://discourse.processing.org/t/make-smiley-go-bigger-or-smaller-without-changing/18173 "2020-02-27T15:48:09Z")

</div>

Hi, I’m writing some code where I need to draw smiley’s. Now I already have the smiley’s but I need to change the position and the size of the smiley with functions. The only thing I still need to do is change the size b…

---

## [I am getting an "expecting EOF found }" error, how do I fix this?](https://discourse.processing.org/t/i-am-getting-an-expecting-eof-found-error-how-do-i-fix-this/18115)

<div class="topic-metadata">

**Author:** [@The-Coder](https://discourse.processing.org/u/The-Coder)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 8:30pm UTC](https://discourse.processing.org/t/i-am-getting-an-expecting-eof-found-error-how-do-i-fix-this/18115 "2020-02-26T20:30:47Z")

</div>

//Asteroid Dodge void setup() { background(0, 0, 0); size(1000, 900); noLoop(); print ("press the mouse to start the game use the arrow keys to move your ship"); } void draw() { // controls game states float …

---

## [How to make text output curve in a circle range?](https://discourse.processing.org/t/how-to-make-text-output-curve-in-a-circle-range/18135)

<div class="topic-metadata">

**Author:** [@linebrinkmann](https://discourse.processing.org/u/linebrinkmann)\
**Replies:** 9\
**Last updated:** [February 27, 2020, 2:51pm UTC](https://discourse.processing.org/t/how-to-make-text-output-curve-in-a-circle-range/18135 "2020-02-27T14:51:18Z")

</div>

I have problem with making text lines output in my canvas curve in a circle move? Have anyone or can anyone do that? :smile:

---

## [Cannot build P5 sketch in React. WebpackError: ReferenceError: window is not defined](https://discourse.processing.org/t/cannot-build-p5-sketch-in-react-webpackerror-referenceerror-window-is-not-defined/18182)

<div class="topic-metadata">

**Author:** [@TimR](https://discourse.processing.org/u/TimR)\
**Replies:** 0\
**Last updated:** [February 27, 2020, 1:56pm UTC](https://discourse.processing.org/t/cannot-build-p5-sketch-in-react-webpackerror-referenceerror-window-is-not-defined/18182 "2020-02-27T13:56:37Z")

</div>

I’ve got a p5.js sketch that is included in my React project. When I build my project it throws: error "window" is not available during server side rendering. on: window.requestAnimationFrame = (function() { Webpack…

---

## [Help! Why I cannot use the P5JS](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067)

<div class="topic-metadata">

**Author:** [@impandapasta](https://discourse.processing.org/u/impandapasta)\
**Replies:** 4\
**Last updated:** [February 27, 2020, 11:57am UTC](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067 "2020-02-27T11:57:10Z")

</div>

I’m learning my Coursera courses about P5JS and I downloaded it ,however when I opened the sketch.js, (I didn’t do anything before open it .) I found there always have many errors… and when I tried to open the index.h…

---

## [Processing and Pi](https://discourse.processing.org/t/processing-and-pi/18164)

<div class="topic-metadata">

**Author:** [@John\_rodrigues](https://discourse.processing.org/u/John_rodrigues)\
**Replies:** 1\
**Last updated:** [February 27, 2020, 7:40am UTC](https://discourse.processing.org/t/processing-and-pi/18164 "2020-02-27T07:40:25Z")

</div>

Hi my processing terminal says could not load Gstreamer GLvideo requires the P2D or P3D render. even tho I have P2D in the code, I am getting that error. Kindly help and point me towards a direction Thank you in adva…

---

## [Getting started with GSOC for processing-android](https://discourse.processing.org/t/getting-started-with-gsoc-for-processing-android/18114)

<div class="topic-metadata">

**Author:** [@udhay24](https://discourse.processing.org/u/udhay24)\
**Replies:** 4\
**Last updated:** [February 27, 2020, 8:32am UTC](https://discourse.processing.org/t/getting-started-with-gsoc-for-processing-android/18114 "2020-02-27T08:32:10Z")

</div>

hello everyone, I am Udaya Kumar a final year student from India. I have been working as an android developer for the past 2 years. I am excited to start contributing to processing, partly because I started my software …

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

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