# Latest

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

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

**Page:** 293

---

## [How can I put html text on top of a p5.js script?](https://discourse.processing.org/t/how-can-i-put-html-text-on-top-of-a-p5-js-script/24930)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 0\
**Last updated:** [October 26, 2020, 6:31pm UTC](https://discourse.processing.org/t/how-can-i-put-html-text-on-top-of-a-p5-js-script/24930 "2020-10-26T18:31:45Z")

</div>

How can put text on top of a p5js sketch in html?

---

## [I need help solving this strange variable scope error](https://discourse.processing.org/t/i-need-help-solving-this-strange-variable-scope-error/24929)

<div class="topic-metadata">

**Author:** [@monster\_master10](https://discourse.processing.org/u/monster_master10)\
**Replies:** 2\
**Last updated:** [October 26, 2020, 6:30pm UTC](https://discourse.processing.org/t/i-need-help-solving-this-strange-variable-scope-error/24929 "2020-10-26T18:30:47Z")

</div>

So, we all know the common error “local variable ‘yVel’ referenced before assignment”. I got this error, but this time it is different. I am referencing my “yVel” variable outside of the processing draw function, and ins…

---

## [OpenCV detection problem (solved)](https://discourse.processing.org/t/opencv-detection-problem-solved/24771)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 5:09pm UTC](https://discourse.processing.org/t/opencv-detection-problem-solved/24771 "2020-10-26T17:09:12Z")

</div>

So I’m doing a videogame where you use your face to move the gun and blink to shot. Mi first attempt was doing it like this: setup() { camara = new Capture( this, ancho, alto ); camara.start(); opencv = new Open…

---

## [Collisions on moving objects](https://discourse.processing.org/t/collisions-on-moving-objects/24912)

<div class="topic-metadata">

**Author:** [@MaxMax](https://discourse.processing.org/u/MaxMax)\
**Replies:** 15\
**Last updated:** [October 26, 2020, 4:31pm UTC](https://discourse.processing.org/t/collisions-on-moving-objects/24912 "2020-10-26T16:31:09Z")

</div>

Hello, I am new to processing and I have to work on a school project. For my project, I need objects that are falling down to collide with my own moving character. I have been searching quite a bit but I can’t find how t…

---

## [Pan Video audio](https://discourse.processing.org/t/pan-video-audio/24924)

<div class="topic-metadata">

**Author:** [@Mountainoftwigs](https://discourse.processing.org/u/Mountainoftwigs)\
**Replies:** 0\
**Last updated:** [October 26, 2020, 4:06pm UTC](https://discourse.processing.org/t/pan-video-audio/24924 "2020-10-26T16:06:26Z")

</div>

Hello, i trying to pan audio from a video using the standard processing video player. I want to be able to pan audio of a video based on the position of mouseX position. There is no video.pan option in the standard vid…

---

## [Overlay sketch on movie](https://discourse.processing.org/t/overlay-sketch-on-movie/23857)

<div class="topic-metadata">

**Author:** [@petermakesnoise](https://discourse.processing.org/u/petermakesnoise)\
**Replies:** 3\
**Last updated:** [October 26, 2020, 3:35pm UTC](https://discourse.processing.org/t/overlay-sketch-on-movie/23857 "2020-10-26T15:35:15Z")

</div>

Hi, I’m trying to overlay a drawing sketch on a movie. The sketch I’m using is “RandomWalkLevy” from Daniel Shiffman’s “The Nature of Code”, which calls two functions in the main draw() block. However, the trace of the …

---

## [Turn sound off on movie playback](https://discourse.processing.org/t/turn-sound-off-on-movie-playback/24920)

<div class="topic-metadata">

**Author:** [@petermakesnoise](https://discourse.processing.org/u/petermakesnoise)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 3:27pm UTC](https://discourse.processing.org/t/turn-sound-off-on-movie-playback/24920 "2020-10-26T15:27:51Z")

</div>

Hi, Is it possible to switch the sound off on movie playback in Processing? There doesn’t seem to be an argument for that in the documentation.

---

## [How can I place the dates of my data inside my ellipses?](https://discourse.processing.org/t/how-can-i-place-the-dates-of-my-data-inside-my-ellipses/24853)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 3\
**Last updated:** [October 26, 2020, 1:39pm UTC](https://discourse.processing.org/t/how-can-i-place-the-dates-of-my-data-inside-my-ellipses/24853 "2020-10-26T13:39:18Z")

</div>

Hello, I’m writing the code so the ellipses fall in to a grid according to the data of my steps. This code has them all bunched up, but it’s in the works so I’m leaving it as I write the data so that’s okay! So my questi…

---

## [Select only one shape](https://discourse.processing.org/t/select-only-one-shape/24646)

<div class="topic-metadata">

**Author:** [@karbon](https://discourse.processing.org/u/karbon)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 1:12pm UTC](https://discourse.processing.org/t/select-only-one-shape/24646 "2020-10-26T13:12:13Z")

</div>

My code needs some minor adjustments. I couldn’t find any tutorials to only select one shape. I have a 3 button system. The dragging element (still trying to figure out how to make it visible) is slightly under my desire…

---

## [Image Loader / Explorer Dialog Box (Android 10 update at bottom)](https://discourse.processing.org/t/image-loader-explorer-dialog-box-android-10-update-at-bottom/15849)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 54\
**Last updated:** [October 26, 2020, 12:40pm UTC](https://discourse.processing.org/t/image-loader-explorer-dialog-box-android-10-update-at-bottom/15849 "2020-10-26T12:40:34Z")

</div>

Edit: You must give Read permission! Following short code will let you choose your favorite Image Explorer, where you can select your file which will be loaded in the pixels\[\] array. Please comment if any error. impor…

---

## [Probabilistic based drawing working for single object, breaking for \>1 objects](https://discourse.processing.org/t/probabilistic-based-drawing-working-for-single-object-breaking-for-1-objects/24876)

<div class="topic-metadata">

**Author:** [@watershed](https://discourse.processing.org/u/watershed)\
**Replies:** 7\
**Last updated:** [October 26, 2020, 12:31pm UTC](https://discourse.processing.org/t/probabilistic-based-drawing-working-for-single-object-breaking-for-1-objects/24876 "2020-10-26T12:31:11Z")

</div>

Hi, I am trying to write a program to render a brick-wall like pattern. At a high level, fixed length paths will be created as the wall ‘grows,’ which new paths being added as the current ones become ‘filled’ with the p…

---

## [Processing Memory Game](https://discourse.processing.org/t/processing-memory-game/24855)

<div class="topic-metadata">

**Author:** [@Itekai](https://discourse.processing.org/u/Itekai)\
**Replies:** 2\
**Last updated:** [October 26, 2020, 12:08pm UTC](https://discourse.processing.org/t/processing-memory-game/24855 "2020-10-26T12:08:32Z")

</div>

Hi, I’m a little stuck in my code. I’m trying to shuffle my deck, but it’s taking ages, to draw them. I waited for like 15 min and there is still no results. Does anyone has an idea how I can fix this? :frowning:

---

## [Rotate Snake Head](https://discourse.processing.org/t/rotate-snake-head/24903)

<div class="topic-metadata">

**Author:** [@Mischief-Managed](https://discourse.processing.org/u/Mischief-Managed)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 10:05am UTC](https://discourse.processing.org/t/rotate-snake-head/24903 "2020-10-26T10:05:24Z")

</div>

Hello! I am making the game snake and I am trying to rotate the snakehead, but I am stuck. Should I use the rotate function or should I redraw each eye under each conditional? Right now I have a class that consists of bo…

---

## [Filling a curveVertex shape](https://discourse.processing.org/t/filling-a-curvevertex-shape/24871)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 6\
**Last updated:** [October 25, 2020, 8:01pm UTC](https://discourse.processing.org/t/filling-a-curvevertex-shape/24871 "2020-10-25T20:01:14Z")

</div>

Hoping to get some help on a problem that has been baffling me for hours. There are two parts to the problem which may or may not be connected. The code below will execute, but only after a length pause which I believe …

---

## [Pixel arrays and performance issues in p5 and processing](https://discourse.processing.org/t/pixel-arrays-and-performance-issues-in-p5-and-processing/24891)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 6\
**Last updated:** [October 25, 2020, 10:55pm UTC](https://discourse.processing.org/t/pixel-arrays-and-performance-issues-in-p5-and-processing/24891 "2020-10-25T22:55:59Z")

</div>

This mainly applies to p5.js, but also Processing Java. Running this simple script in the p5 web editor gets me 3 frames per second, at only 400x400 resolution. What is it about this script that is so slow, and is there…

---

## [Online Everest Pipkin visiting artist talk presented by Minneapolis College of Art and Design](https://discourse.processing.org/t/online-everest-pipkin-visiting-artist-talk-presented-by-minneapolis-college-of-art-and-design/24902)

<div class="topic-metadata">

**Author:** [@bmoren](https://discourse.processing.org/u/bmoren)\
**Replies:** 0\
**Last updated:** [October 25, 2020, 10:53pm UTC](https://discourse.processing.org/t/online-everest-pipkin-visiting-artist-talk-presented-by-minneapolis-college-of-art-and-design/24902 "2020-10-25T22:53:53Z")

</div>

Tuesday, October 27, 2020, 1:00 p.m.–2:00 p.m. Online \[Link above\], Central Daylight Time Everest Pipkin is a drawing and software artist from Bee Caves, Texas, who produces intimate work with large data sets. Throug…

---

## [How to delay part of the code in draw()?](https://discourse.processing.org/t/how-to-delay-part-of-the-code-in-draw/24872)

<div class="topic-metadata">

**Author:** [@IpNeNaEcRe](https://discourse.processing.org/u/IpNeNaEcRe)\
**Replies:** 3\
**Last updated:** [October 25, 2020, 8:31pm UTC](https://discourse.processing.org/t/how-to-delay-part-of-the-code-in-draw/24872 "2020-10-25T20:31:35Z")

</div>

I code a polarline function and use a Slider class to control the number of the lines. When I use delay() to make the image change slowly, the Slider gets slowly and hard to drag. So how can I slowly the image changing r…

---

## [Understanding what Libraries can be added - advice/info resource recommendations](https://discourse.processing.org/t/understanding-what-libraries-can-be-added-advice-info-resource-recommendations/24888)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 1:35pm UTC](https://discourse.processing.org/t/understanding-what-libraries-can-be-added-advice-info-resource-recommendations/24888 "2020-10-25T13:35:52Z")

</div>

Hi all, I’m confused about whether it is possible/advisable to import normal Java libraries into Processing. (I’m not a Java person really (at the moment) so can’t draw on any common sense knowledge about whether this …

---

## [Need help creating a function that delays draw()](https://discourse.processing.org/t/need-help-creating-a-function-that-delays-draw/24839)

<div class="topic-metadata">

**Author:** [@The\_Rogue12](https://discourse.processing.org/u/The_Rogue12)\
**Replies:** 7\
**Last updated:** [October 25, 2020, 6:47pm UTC](https://discourse.processing.org/t/need-help-creating-a-function-that-delays-draw/24839 "2020-10-25T18:47:19Z")

</div>

I am currently working on a small game, and am trying to figure out how to delay the draw() function for about 6 seconds so that I can write some text on the screen in time with a song. I have the code set up so that the…

---

## [Hello. I am just a beginner. I want to know how to complete a jump](https://discourse.processing.org/t/hello-i-am-just-a-beginner-i-want-to-know-how-to-complete-a-jump/24754)

<div class="topic-metadata">

**Author:** [@mengtong](https://discourse.processing.org/u/mengtong)\
**Replies:** 13\
**Last updated:** [October 25, 2020, 6:45pm UTC](https://discourse.processing.org/t/hello-i-am-just-a-beginner-i-want-to-know-how-to-complete-a-jump/24754 "2020-10-25T18:45:49Z")

</div>

please format code with \</\> button \* homework policy \* asking questions My current code, when I press another keycode in the middle of a jump, it changes the direction of the jump, instead of waiting for a jump to end …

---

## [RPi 4 B GPIO.INPUT\_PULLUP does not work](https://discourse.processing.org/t/rpi-4-b-gpio-input-pullup-does-not-work/24877)

<div class="topic-metadata">

**Author:** [@AlexAlex](https://discourse.processing.org/u/AlexAlex)\
**Replies:** 1\
**Last updated:** [October 25, 2020, 6:01pm UTC](https://discourse.processing.org/t/rpi-4-b-gpio-input-pullup-does-not-work/24877 "2020-10-25T18:01:41Z")

</div>

Hello everyone ! I was trying to make the example on processing page: import processing.io.\*; // On the Raspberry Pi GPIO 4 is physical pin 7 on the header void setup() { // INPUT\_PULLUP enables the built-in pull…

---

## [Can't use P3D, can't follow an example, on Linux](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874)

<div class="topic-metadata">

**Author:** [@raboytniksings](https://discourse.processing.org/u/raboytniksings)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 2:24pm UTC](https://discourse.processing.org/t/cant-use-p3d-cant-follow-an-example-on-linux/24874 "2020-10-25T14:24:38Z")

</div>

I am new to Processing, I have a goal in mind and I have found some tutorials on youtube that I think I can use to reach my goal. Here’s the code I’d like to tweak: int amount = 300; int\[\] x = new int\[amount\]; int\[\] y …

---

## [My solution for trigger events in iOS, Android and Desktop](https://discourse.processing.org/t/my-solution-for-trigger-events-in-ios-android-and-desktop/24882)

<div class="topic-metadata">

**Author:** [@rvalla](https://discourse.processing.org/u/rvalla)\
**Replies:** 0\
**Last updated:** [October 24, 2020, 10:18pm UTC](https://discourse.processing.org/t/my-solution-for-trigger-events-in-ios-android-and-desktop/24882 "2020-10-24T22:18:17Z")

</div>

I fought all day looking for a way to trigger events which works in all browsers and systems. I was unexpected, but mousePressed() seems to not work in Safari in iOS if you define a doubleClicked() function. You could u…

---

## [Scatter Rectangles From the Center - No Overlap](https://discourse.processing.org/t/scatter-rectangles-from-the-center-no-overlap/24867)

<div class="topic-metadata">

**Author:** [@DonaldZhu](https://discourse.processing.org/u/DonaldZhu)\
**Replies:** 2\
**Last updated:** [October 24, 2020, 10:55pm UTC](https://discourse.processing.org/t/scatter-rectangles-from-the-center-no-overlap/24867 "2020-10-24T22:55:57Z")

</div>

Hi, I have seen codes that scatter circles all over the canvas without overlaps (https://www.youtube.com/watch?v=XATr\_jdh-44&feature=youtu.be), but if the total number of circles is low, then there’s a chance that the cl…

---

## [RXTX mismatch on chromebook /dev/ttyusb0](https://discourse.processing.org/t/rxtx-mismatch-on-chromebook-dev-ttyusb0/24335)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 5\
**Last updated:** [October 24, 2020, 5:25am UTC](https://discourse.processing.org/t/rxtx-mismatch-on-chromebook-dev-ttyusb0/24335 "2020-10-24T05:25:57Z")

</div>

I seem to get dumber with each new error I encounter. I’m using a chromebook running linux in a container and then I run the processing-3.5.3 IDE on that. For some time now, I have been trying to connect an Arduino run…

---

## [Mouse x y coordinates (ControlP5)](https://discourse.processing.org/t/mouse-x-y-coordinates-controlp5/24774)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 6\
**Last updated:** [October 24, 2020, 10:35pm UTC](https://discourse.processing.org/t/mouse-x-y-coordinates-controlp5/24774 "2020-10-24T22:35:52Z")

</div>

Thank you for reading this. The following is a summary of the current code. I have an array of circles that represent LEDs. I have radio buttons, using the P5 library, to select a colour. What I’d like to do is click …

---

## [Processing freezes with every sketch](https://discourse.processing.org/t/processing-freezes-with-every-sketch/24558)

<div class="topic-metadata">

**Author:** [@Ere](https://discourse.processing.org/u/Ere)\
**Replies:** 3\
**Last updated:** [October 24, 2020, 8:53pm UTC](https://discourse.processing.org/t/processing-freezes-with-every-sketch/24558 "2020-10-24T20:53:47Z")

</div>

Hi! I’m working on MacBook Air 2019 Mojave 10.14.6 and every sketch, even examples, freezes eventually, the computer is unresponsive and I have to shut down, sometimes the canvas blink. Other programs work fine. I’m not…

---

## [How to get full float number expression?](https://discourse.processing.org/t/how-to-get-full-float-number-expression/24859)

<div class="topic-metadata">

**Author:** [@Duhovny](https://discourse.processing.org/u/Duhovny)\
**Replies:** 1\
**Last updated:** [October 24, 2020, 4:50pm UTC](https://discourse.processing.org/t/how-to-get-full-float-number-expression/24859 "2020-10-24T16:50:07Z")

</div>

Hello, first post here from me! I am a beginner in real programming, had some visual scripting experience as a hobby. I have a general question about floating point representation. I tested some things and found that a…

---

## [Passing voice data to Processing](https://discourse.processing.org/t/passing-voice-data-to-processing/24640)

<div class="topic-metadata">

**Author:** [@humus](https://discourse.processing.org/u/humus)\
**Replies:** 23\
**Last updated:** [October 24, 2020, 5:56pm UTC](https://discourse.processing.org/t/passing-voice-data-to-processing/24640 "2020-10-24T17:56:48Z")

</div>

Hi, I am a beginner in using Processing. I would like to make a project where voice commands (given at a real time) by the microphone of the notebook/tablet/smartphone are passed to Processing to display events linked w…

---

## [2d array movement help](https://discourse.processing.org/t/2d-array-movement-help/24851)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.processing.org/u/Lilith)\
**Replies:** 4\
**Last updated:** [October 24, 2020, 8:36am UTC](https://discourse.processing.org/t/2d-array-movement-help/24851 "2020-10-24T08:36:03Z")

</div>

Hello guys, I’m trying to create a game using an 2d array to create a grid of (invisible) squares to put items in them. I’m having trouble moving the grid of squares down because I don’t want them to fit the screen. Le…

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

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