# Latest

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

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

**Page:** 236

---

## [Exceptions for Android](https://discourse.processing.org/t/exceptions-for-android/29210)

<div class="topic-metadata">

**Author:** [@Xyu](https://discourse.processing.org/u/Xyu)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 6:14pm UTC](https://discourse.processing.org/t/exceptions-for-android/29210 "2021-04-08T18:14:53Z")

</div>

How do I handle an exception thrown when trying to access a non-existent file? The code from here try \\ Language (API) \\ Processing 3+ does not work on Android

---

## [Shapes 4x4 screen location](https://discourse.processing.org/t/shapes-4x4-screen-location/29186)

<div class="topic-metadata">

**Author:** [@Waller](https://discourse.processing.org/u/Waller)\
**Replies:** 6\
**Last updated:** [April 8, 2021, 5:55pm UTC](https://discourse.processing.org/t/shapes-4x4-screen-location/29186 "2021-04-08T17:55:40Z")

</div>

Hey there, everyone! I’m pretty new to Processing and I’m having a hard time locating shapes on the screen. TASK Create 16 shapes, laying 4x4 on screen, filled with random colors and value of vertex of each next shape…

---

## [Horizontal wall clipping](https://discourse.processing.org/t/horizontal-wall-clipping/29226)

<div class="topic-metadata">

**Author:** [@davejr17](https://discourse.processing.org/u/davejr17)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 3:58pm UTC](https://discourse.processing.org/t/horizontal-wall-clipping/29226 "2021-04-08T15:58:01Z")

</div>

I was wondering how you would go about coding this horizontal wall clipping this is from https://fabiensanglard.net/gebbdoom.pdf on page 212. having it so it only draws on the screen where it hasn’t already been dra…

---

## [Having two different thick lines in one sketch](https://discourse.processing.org/t/having-two-different-thick-lines-in-one-sketch/29216)

<div class="topic-metadata">

**Author:** [@Estefania](https://discourse.processing.org/u/Estefania)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 1:31pm UTC](https://discourse.processing.org/t/having-two-different-thick-lines-in-one-sketch/29216 "2021-04-08T13:31:01Z")

</div>

I have a question concerning drawing different thick lines in my sketch. If I want to draw two lines and each of them should use a different stroke weight - how would I do this in Processing? My code: import processing…

---

## [Use Sensors to Play a Video Using Gestures on MacOS and Win](https://discourse.processing.org/t/use-sensors-to-play-a-video-using-gestures-on-macos-and-win/29207)

<div class="topic-metadata">

**Author:** [@JackyMao](https://discourse.processing.org/u/JackyMao)\
**Replies:** 8\
**Last updated:** [April 8, 2021, 1:04pm UTC](https://discourse.processing.org/t/use-sensors-to-play-a-video-using-gestures-on-macos-and-win/29207 "2021-04-08T13:04:57Z")

</div>

We are a few beginners in a school, we want to use Kinect to tell the computer to play a video or a bit of animation based on the movements of the person in front. We used OpenKinect Library on MacOS to try to do this, w…

---

## [Problems in interaction between Arduino and Processing](https://discourse.processing.org/t/problems-in-interaction-between-arduino-and-processing/29195)

<div class="topic-metadata">

**Author:** [@Yoollow](https://discourse.processing.org/u/Yoollow)\
**Replies:** 3\
**Last updated:** [April 8, 2021, 7:18am UTC](https://discourse.processing.org/t/problems-in-interaction-between-arduino-and-processing/29195 "2021-04-08T07:18:01Z")

</div>

Hello, I’m having problems in the following exercise: I have created a grid of 9 cells on Processing, i cyclically color in yellow the diagonal ones. From my Arduino code i want to send the information about which of …

---

## [P5 Canvas and HTML](https://discourse.processing.org/t/p5-canvas-and-html/29196)

<div class="topic-metadata">

**Author:** [@karenmsn](https://discourse.processing.org/u/karenmsn)\
**Replies:** 2\
**Last updated:** [April 7, 2021, 7:18pm UTC](https://discourse.processing.org/t/p5-canvas-and-html/29196 "2021-04-07T19:18:52Z")

</div>

Hi! Quick question about using the P5 canvas with HTML code. I understand that calling createCanvas() creates the element in the HTML side of a website, but how do I reference that canvas in my HTML code in order to mov…

---

## [How to change the pitch of the audioplayer output file in minim?](https://discourse.processing.org/t/how-to-change-the-pitch-of-the-audioplayer-output-file-in-minim/29197)

<div class="topic-metadata">

**Author:** [@yeppii](https://discourse.processing.org/u/yeppii)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 7:15pm UTC](https://discourse.processing.org/t/how-to-change-the-pitch-of-the-audioplayer-output-file-in-minim/29197 "2021-04-07T19:15:31Z")

</div>

I’m making a piano-like app, and I have a sound file. I want it to play at different pitches every time I press a key. I cant figure out how to change the pitch. How can I do this?

---

## [Select all boolean variables in one keyword](https://discourse.processing.org/t/select-all-boolean-variables-in-one-keyword/28908)

<div class="topic-metadata">

**Author:** [@freddukas](https://discourse.processing.org/u/freddukas)\
**Replies:** 3\
**Last updated:** [April 7, 2021, 6:49pm UTC](https://discourse.processing.org/t/select-all-boolean-variables-in-one-keyword/28908 "2021-04-07T18:49:53Z")

</div>

hello everyone. is there a trick or a solution to interact with all boolean variables in one keyword ? I hope something like " all.boolean == true" . I think I already saw something like this but I can’t remember exac…

---

## [Random boolean values](https://discourse.processing.org/t/random-boolean-values/29191)

<div class="topic-metadata">

**Author:** [@freddukas](https://discourse.processing.org/u/freddukas)\
**Replies:** 4\
**Last updated:** [April 7, 2021, 5:50pm UTC](https://discourse.processing.org/t/random-boolean-values/29191 "2021-04-07T17:50:12Z")

</div>

Hello, everyone. I need some random boolean variables to be changed in my draw fonction Do i have a way to code a boolean variable randomly change ? Thanks a lot

---

## [GSoC 2021 - Proposal Review](https://discourse.processing.org/t/gsoc-2021-proposal-review/29180)

<div class="topic-metadata">

**Author:** [@Rahulm2310](https://discourse.processing.org/u/Rahulm2310)\
**Replies:** 5\
**Last updated:** [April 7, 2021, 2:57pm UTC](https://discourse.processing.org/t/gsoc-2021-proposal-review/29180 "2021-04-07T14:57:02Z")

</div>

Hello everyone! I have completed my draft proposal for “Continued Development of Showcase” project and here is the link to the doc. Please open the link and request view access to the doc. I would really appreciate any …

---

## [Tower Hanoi - Why recursive draw only first and last steps?](https://discourse.processing.org/t/tower-hanoi-why-recursive-draw-only-first-and-last-steps/28923)

<div class="topic-metadata">

**Author:** [@dyehuda](https://discourse.processing.org/u/dyehuda)\
**Replies:** 4\
**Last updated:** [April 7, 2021, 3:07pm UTC](https://discourse.processing.org/t/tower-hanoi-why-recursive-draw-only-first-and-last-steps/28923 "2021-04-07T15:07:39Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int h=50; int w=100; int size=3; int flag=0; int\[\]\[\] Array = { {1,2,3}, {0,0,0}, {0,0,0 } }; int\[\] Top={ 0, -1, 2, 2}; void setup() { size(1200,…

---

## [Music video, visuals use the sound as input](https://discourse.processing.org/t/music-video-visuals-use-the-sound-as-input/27750)

<div class="topic-metadata">

**Author:** [@OMG](https://discourse.processing.org/u/OMG)\
**Replies:** 2\
**Last updated:** [April 7, 2021, 2:34pm UTC](https://discourse.processing.org/t/music-video-visuals-use-the-sound-as-input/27750 "2021-04-07T14:34:29Z")

</div>

---

## [Updating pixels on a live video stream](https://discourse.processing.org/t/updating-pixels-on-a-live-video-stream/29187)

<div class="topic-metadata">

**Author:** [@bandhavya](https://discourse.processing.org/u/bandhavya)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 1:31pm UTC](https://discourse.processing.org/t/updating-pixels-on-a-live-video-stream/29187 "2021-04-07T13:31:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Here is my code. https://editor.p5js.org/bandhavya/sketches/BCFYuQzS- Im unable to update the pixels of a live video. Please suggest how to pro…

---

## [Piano on arduino and processing](https://discourse.processing.org/t/piano-on-arduino-and-processing/29159)

<div class="topic-metadata">

**Author:** [@sugievlos](https://discourse.processing.org/u/sugievlos)\
**Replies:** 5\
**Last updated:** [April 7, 2021, 1:30pm UTC](https://discourse.processing.org/t/piano-on-arduino-and-processing/29159 "2021-04-07T13:30:17Z")

</div>

Hello everyone! I have a problem with a project and I was wondering if one of you could help me, im new to processing :smile:. I have to do a piano on arduino, and with processing, play the note on my computers’s speake…

---

## [Qualtrics and p5.js](https://discourse.processing.org/t/qualtrics-and-p5-js/29184)

<div class="topic-metadata">

**Author:** [@Jwebstercrowd](https://discourse.processing.org/u/Jwebstercrowd)\
**Replies:** 2\
**Last updated:** [April 7, 2021, 11:52am UTC](https://discourse.processing.org/t/qualtrics-and-p5-js/29184 "2021-04-07T11:52:04Z")

</div>

Hey! I was wondering if anyone has had any success with implenting a p5 sketch inside of a Qualtrics survey? I have been unable to get it to work thus far, and now I’m wondering if it is even possible. I added the p5 lib…

---

## [Jittery Collision Bug](https://discourse.processing.org/t/jittery-collision-bug/29181)

<div class="topic-metadata">

**Author:** [@Tasperen](https://discourse.processing.org/u/Tasperen)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 10:25am UTC](https://discourse.processing.org/t/jittery-collision-bug/29181 "2021-04-07T10:25:05Z")

</div>

I’m getting a Jitter effect on my collision system. I have a guess but not completely sure. I’ve been researching collisions for a month now and finally got my code working with a very basic solution. Unfortunately, with…

---

## [P5.js basic webworkers tutorial](https://discourse.processing.org/t/p5-js-basic-webworkers-tutorial/29155)

<div class="topic-metadata">

**Author:** [@kris.dpd](https://discourse.processing.org/u/kris.dpd)\
**Replies:** 4\
**Last updated:** [April 7, 2021, 9:36am UTC](https://discourse.processing.org/t/p5-js-basic-webworkers-tutorial/29155 "2021-04-07T09:36:06Z")

</div>

Hi! I am having a bit of trouble getting webworkers to properly work with P5.js is anyone familiar with a basic getting started tutorial in P5.js? Here is a basic sketch but somehow the old response gets stuck in the b…

---

## [(GSoC) Adding to p5.js FES: Request for reviews and suggestions](https://discourse.processing.org/t/gsoc-adding-to-p5-js-fes-request-for-reviews-and-suggestions/29162)

<div class="topic-metadata">

**Author:** [@Aloneduckling](https://discourse.processing.org/u/Aloneduckling)\
**Replies:** 4\
**Last updated:** [April 7, 2021, 7:25am UTC](https://discourse.processing.org/t/gsoc-adding-to-p5-js-fes-request-for-reviews-and-suggestions/29162 "2021-04-07T07:25:16Z")

</div>

Hello everyone, I am shantanu Kaushik, a student at Hansraj College, Delhi University. I am planning to work on p5.js’s FES functionality. Your suggestions and reviews would be really helpful. here is my draft proposa…

---

## [Processing 4.0 release date?](https://discourse.processing.org/t/processing-4-0-release-date/29179)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 6:12am UTC](https://discourse.processing.org/t/processing-4-0-release-date/29179 "2021-04-07T06:12:12Z")

</div>

Hi, exists any estimated dato to Processing 4.0 release?

---

## [GSoC '21 Query for Processing on Android](https://discourse.processing.org/t/gsoc-21-query-for-processing-on-android/28602)

<div class="topic-metadata">

**Author:** [@Abhinavtdk](https://discourse.processing.org/u/Abhinavtdk)\
**Replies:** 2\
**Last updated:** [April 5, 2021, 9:23pm UTC](https://discourse.processing.org/t/gsoc-21-query-for-processing-on-android/28602 "2021-04-05T21:23:14Z")

</div>

The project under Processing for Android in the project list is the same as that of the previous year. Is this a continuation of last year’s project or should it be started from scratch? Any help from mentors will be app…

---

## [Catch The Target Game (WIP)](https://discourse.processing.org/t/catch-the-target-game-wip/29176)

<div class="topic-metadata">

**Author:** [@JustinJohnson](https://discourse.processing.org/u/JustinJohnson)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 2:14am UTC](https://discourse.processing.org/t/catch-the-target-game-wip/29176 "2021-04-07T02:14:44Z")

</div>

Click here to play on OpenProcessing This was a game I came up with about 5 years ago, around the time I first started using Processing. I finally came around to building it out in p5js for others to try out! Rules: U…

---

## [Socket tetris clone](https://discourse.processing.org/t/socket-tetris-clone/29172)

<div class="topic-metadata">

**Author:** [@kgroves](https://discourse.processing.org/u/kgroves)\
**Replies:** 0\
**Last updated:** [April 6, 2021, 11:02pm UTC](https://discourse.processing.org/t/socket-tetris-clone/29172 "2021-04-06T23:02:12Z")

</div>

It’s a basic Client/Server setup for playing tetris over a network. I had fun making it, and I’m hoping someone else wants to play with it or contribute. https://github.com/keithagroves/tetris

---

## [Rotate and flipY axis of multiple RGBpixels images](https://discourse.processing.org/t/rotate-and-flipy-axis-of-multiple-rgbpixels-images/27445)

<div class="topic-metadata">

**Author:** [@ashk](https://discourse.processing.org/u/ashk)\
**Replies:** 3\
**Last updated:** [April 6, 2021, 11:58pm UTC](https://discourse.processing.org/t/rotate-and-flipy-axis-of-multiple-rgbpixels-images/27445 "2021-04-06T23:58:58Z")

</div>

\< I have created 4 images from pixels in a grid format. I want to flip two images in x and y axis. Rotate one image on its own places and keep one as it is. Please help. PImage source, imgFlipxaxis, imgFlipyaxis, imgFl…

---

## [Processing examples: Reach2](https://discourse.processing.org/t/processing-examples-reach2/29143)

<div class="topic-metadata">

**Author:** [@pokelan](https://discourse.processing.org/u/pokelan)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 10:15pm UTC](https://discourse.processing.org/t/processing-examples-reach2/29143 "2021-04-06T22:15:08Z")

</div>

Hi all I am trying to understand this Processing example: https://processing.org/examples/reach2.html And some parts confuse me. reachSegment(0, mouseX, mouseY); for(int i=1; i\<numSegments; i++) { reachSegment(…

---

## [GSOC 2021 Showcase draft proposal](https://discourse.processing.org/t/gsoc-2021-showcase-draft-proposal/28919)

<div class="topic-metadata">

**Author:** [@ReyzArtz](https://discourse.processing.org/u/ReyzArtz)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 10:14pm UTC](https://discourse.processing.org/t/gsoc-2021-showcase-draft-proposal/28919 "2021-04-06T22:14:55Z")

</div>

Hello, everyone! here is my draft proposal for " Continued development of p5.js Showcase" please take a look and any feedback would be highly appreciated Proposal Link @kjhollen @lmccart @jeremydouglass @saberkhan

---

## [Glitch effect with or without pixels](https://discourse.processing.org/t/glitch-effect-with-or-without-pixels/13556)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 14\
**Last updated:** [April 6, 2021, 9:47pm UTC](https://discourse.processing.org/t/glitch-effect-with-or-without-pixels/13556 "2021-04-06T21:47:45Z")

</div>

I’ve been working on a project which has been developed with pure p5js code, but I wanna have a glitch effect as a reaction to sound though, as I know the actual glitch effect works much better on image pixels (although …

---

## [Cursor and mouse position alignment](https://discourse.processing.org/t/cursor-and-mouse-position-alignment/29116)

<div class="topic-metadata">

**Author:** [@Criste44](https://discourse.processing.org/u/Criste44)\
**Replies:** 1\
**Last updated:** [April 6, 2021, 9:43pm UTC](https://discourse.processing.org/t/cursor-and-mouse-position-alignment/29116 "2021-04-06T21:43:34Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to highlight tiles, that are hovered by the mouse. This is my code: void Update () { Ray ray = Camera.main.ScreenPointToRay(Input.m…

---

## [GSOC 2021 - Autocomplete Project of p5.js-web-editor](https://discourse.processing.org/t/gsoc-2021-autocomplete-project-of-p5-js-web-editor/28675)

<div class="topic-metadata">

**Author:** [@rt1301](https://discourse.processing.org/u/rt1301)\
**Replies:** 5\
**Last updated:** [April 1, 2021, 5:34pm UTC](https://discourse.processing.org/t/gsoc-2021-autocomplete-project-of-p5-js-web-editor/28675 "2021-04-01T17:34:41Z")

</div>

Hello everyone, I am Rishabh Taparia an undergraduate student of NIT Trichy, India. I have been doing some research on Tern.js library for the autocompletion functionality of p5.js-web-editor. Codemirror (the editor use…

---

## [Creating screen boundaries](https://discourse.processing.org/t/creating-screen-boundaries/28855)

<div class="topic-metadata">

**Author:** [@NewProgrammer123](https://discourse.processing.org/u/NewProgrammer123)\
**Replies:** 22\
**Last updated:** [April 6, 2021, 6:30pm UTC](https://discourse.processing.org/t/creating-screen-boundaries/28855 "2021-04-06T18:30:41Z")

</div>

Hello, I am making a simple game but as a beginner I cannot find a way to do the following. It a moving square but I want to write an IF statement so that when it hits the edge of the window for the game to restart. I al…

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

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