# Latest

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

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

**Page:** 343

---

## [Use youtube live stream in p5.js](https://discourse.processing.org/t/use-youtube-live-stream-in-p5-js/21417)

<div class="topic-metadata">

**Author:** [@Andrew387](https://discourse.processing.org/u/Andrew387)\
**Replies:** 2\
**Last updated:** [May 30, 2020, 11:18am UTC](https://discourse.processing.org/t/use-youtube-live-stream-in-p5-js/21417 "2020-05-30T11:18:49Z")

</div>

Hello all, I am interested in working with a live stream video from youtube in p5.js. Is there a specific way to access the video content? I have only managed to embed the video using Javascript for now, but I would want…

---

## [Issue with a texture from createGraphics()](https://discourse.processing.org/t/issue-with-a-texture-from-creategraphics/21421)

<div class="topic-metadata">

**Author:** [@d128](https://discourse.processing.org/u/d128)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 10:38am UTC](https://discourse.processing.org/t/issue-with-a-texture-from-creategraphics/21421 "2020-05-30T10:38:48Z")

</div>

Hi everyone, I’m applying a texture in a box from a createGraphics() with a rotating sphere. When I’m doing this, the sphere on the texture starts to ‘dissapear’ (something similar when the background isn’t updated). I’…

---

## [Sound Popping/Crackling While Panning with p5.sound](https://discourse.processing.org/t/sound-popping-crackling-while-panning-with-p5-sound/21375)

<div class="topic-metadata">

**Author:** [@umutreldem](https://discourse.processing.org/u/umutreldem)\
**Replies:** 9\
**Last updated:** [May 29, 2020, 10:06pm UTC](https://discourse.processing.org/t/sound-popping-crackling-while-panning-with-p5-sound/21375 "2020-05-29T22:06:03Z")

</div>

I am trying to learn p5.sound by loading a sound, and panning it with a slider. When I move the slider, especially if I move it too far too suddenly, the sound begins to crackle. Crackling while panning does not happen …

---

## [How to show xy coordinate scale itself](https://discourse.processing.org/t/how-to-show-xy-coordinate-scale-itself/21383)

<div class="topic-metadata">

**Author:** [@suvir](https://discourse.processing.org/u/suvir)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 9:30pm UTC](https://discourse.processing.org/t/how-to-show-xy-coordinate-scale-itself/21383 "2020-05-29T21:30:03Z")

</div>

I am drawing a spectrum graph, like the one from fft example. Code looks bit like below and draws fine: for (let i = 0; i \< data.getRowCount() / 1; i++) { let x = p.map(i, 0, data.getRowCount() / 1, 0, p.width); …

---

## [Hooman - Processing inspired API for PyGame](https://discourse.processing.org/t/hooman-processing-inspired-api-for-pygame/21412)

<div class="topic-metadata">

**Author:** [@appinv](https://discourse.processing.org/u/appinv)\
**Replies:** 0\
**Last updated:** [May 29, 2020, 6:12pm UTC](https://discourse.processing.org/t/hooman-processing-inspired-api-for-pygame/21412 "2020-05-29T18:12:29Z")

</div>

Released a package on pypi called Hooman. It’s tagline is “~pygame for humans”. You can install it via pip install hooman and docs are on github. Here’s a glipse of the feel: from hooman import Hooman import pygame h…

---

## [Fluctuating Signals - Filtering](https://discourse.processing.org/t/fluctuating-signals-filtering/21388)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 5:17pm UTC](https://discourse.processing.org/t/fluctuating-signals-filtering/21388 "2020-05-29T17:17:35Z")

</div>

I’m receiving a realtime continuous set of float values from a measurement, I need to be able to detect large changes however there are several small fluctuations too that aren’t due to any underlying pattern other than …

---

## [Wall isn't working](https://discourse.processing.org/t/wall-isnt-working/21399)

<div class="topic-metadata">

**Author:** [@till](https://discourse.processing.org/u/till)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 4:25pm UTC](https://discourse.processing.org/t/wall-isnt-working/21399 "2020-05-29T16:25:23Z")

</div>

float spieler\_x; float spieler\_y; float ball\_x; float ball\_y; float ball\_speed\_x; float ball\_speed\_y; int runde; void setup(){ spieler\_x = 20; spieler\_y = 20; //\*\*Ball starting position\*\* ball\_x = 500; …

---

## [Please help with set() and get()](https://discourse.processing.org/t/please-help-with-set-and-get/21403)

<div class="topic-metadata">

**Author:** [@noob](https://discourse.processing.org/u/noob)\
**Replies:** 3\
**Last updated:** [May 29, 2020, 3:39pm UTC](https://discourse.processing.org/t/please-help-with-set-and-get/21403 "2020-05-29T15:39:52Z")

</div>

Hello good people, I have been writing code to manipulate an image in p5.js. The effect that I want to achieve is simple. But I can’t get around to find a way to do it. Currently, the result from my code is that the ima…

---

## [How can i combine a random made background with a moving Object without redrawing?](https://discourse.processing.org/t/how-can-i-combine-a-random-made-background-with-a-moving-object-without-redrawing/21395)

<div class="topic-metadata">

**Author:** [@JohnQED](https://discourse.processing.org/u/JohnQED)\
**Replies:** 3\
**Last updated:** [May 29, 2020, 3:21pm UTC](https://discourse.processing.org/t/how-can-i-combine-a-random-made-background-with-a-moving-object-without-redrawing/21395 "2020-05-29T15:21:23Z")

</div>

Hello i am trying to make a starsky where i generate the background and the positions of the stars randomly. I now want to make some fallen stars currently trying todo it with arrays. The problem is that it always redr…

---

## [Moving figures in z-coordinate (z-axis)](https://discourse.processing.org/t/moving-figures-in-z-coordinate-z-axis/21310)

<div class="topic-metadata">

**Author:** [@Nis](https://discourse.processing.org/u/Nis)\
**Replies:** 31\
**Last updated:** [May 29, 2020, 3:19pm UTC](https://discourse.processing.org/t/moving-figures-in-z-coordinate-z-axis/21310 "2020-05-29T15:19:16Z")

</div>

Can someone please tell me, how can I make figures move in(on) the z-axis in p5.js? Like, ‘X-axis’ makes things move ‘Right-Left’ and ‘Y-axis’ makes things move ‘Up-Down’. But both of them I know. I am frustrated at th…

---

## [Solo Exhibition, Selfie + CODE I and II (Typographic Selfie + CODE)](https://discourse.processing.org/t/solo-exhibition-selfie-code-i-and-ii-typographic-selfie-code/21302)

<div class="topic-metadata">

**Author:** [@ayheng](https://discourse.processing.org/u/ayheng)\
**Replies:** 3\
**Last updated:** [May 29, 2020, 1:05pm UTC](https://discourse.processing.org/t/solo-exhibition-selfie-code-i-and-ii-typographic-selfie-code/21302 "2020-05-29T13:05:21Z")

</div>

Dear All, How are you? I hope that you are well. I would like to share my virtual solo exhibition, Selfie + CODE, at http://www.selfieandcode.com. It is a collection of my generative selfies since 2015 by using Processi…

---

## [Posenet & P5js - classification of poses to trigger sounds](https://discourse.processing.org/t/posenet-p5js-classification-of-poses-to-trigger-sounds/21363)

<div class="topic-metadata">

**Author:** [@jhyde](https://discourse.processing.org/u/jhyde)\
**Replies:** 11\
**Last updated:** [May 29, 2020, 11:33am UTC](https://discourse.processing.org/t/posenet-p5js-classification-of-poses-to-trigger-sounds/21363 "2020-05-29T11:33:25Z")

</div>

Hi there! I’m a newbie to P5js and looking for some help. So what I am trying to do is use the outputs of a trained Posenet model to trigger sound files playing. I’m following Dan Shiffman’s ‘Posenet Classification’, tut…

---

## [Correct way to use ES6 modules and import classes](https://discourse.processing.org/t/correct-way-to-use-es6-modules-and-import-classes/21386)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 8:34am UTC](https://discourse.processing.org/t/correct-way-to-use-es6-modules-and-import-classes/21386 "2020-05-29T08:34:18Z")

</div>

Hi, I am making a project in p5.js where I have a simple class called Stone that I want to import into another file using ES6 modules. So I used export default : // js/src/Stone.js export default class Stone { con…

---

## [Library (again)](https://discourse.processing.org/t/library-again/21288)

<div class="topic-metadata">

**Author:** [@MartinGo](https://discourse.processing.org/u/MartinGo)\
**Replies:** 7\
**Last updated:** [May 29, 2020, 5:52am UTC](https://discourse.processing.org/t/library-again/21288 "2020-05-29T05:52:27Z")

</div>

Hi everyone, I have a question that probably was made a lot of times but I need an updated answer. How do I make a library? I want to make a tilemap library for Processing but I don’t know how to proceed. I found a lot…

---

## [Simple Assembly](https://discourse.processing.org/t/simple-assembly/21330)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 5:45am UTC](https://discourse.processing.org/t/simple-assembly/21330 "2020-05-29T05:45:37Z")

</div>

\*\*Hello There, I just need a simple way to install assembly code in certain routines as long as Processing puts its variables in it’s Stack I am good 2 go I really don’t need a lot of stuff just to read and write to mem…

---

## [Stacker game: how do I loop the rectangles](https://discourse.processing.org/t/stacker-game-how-do-i-loop-the-rectangles/21341)

<div class="topic-metadata">

**Author:** [@justkayy](https://discourse.processing.org/u/justkayy)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 4:49am UTC](https://discourse.processing.org/t/stacker-game-how-do-i-loop-the-rectangles/21341 "2020-05-29T04:49:09Z")

</div>

So the aim is to: Add a background for the game in the form of a grid. The grid “cell” must be 90 pixels in size in both dimensions when the screen is 1280x720. Note: Do not draw your grid with rectangles or squares, dr…

---

## [Randomly pick one variable](https://discourse.processing.org/t/randomly-pick-one-variable/21304)

<div class="topic-metadata">

**Author:** [@Adi](https://discourse.processing.org/u/Adi)\
**Replies:** 14\
**Last updated:** [May 29, 2020, 12:04am UTC](https://discourse.processing.org/t/randomly-pick-one-variable/21304 "2020-05-29T00:04:16Z")

</div>

Is there a way to randomly pick between two values. For example, randomly pick a or b, not anything in between, and if possible, do this when a = -1 and b = 1?

---

## [Processing GAME! Online and Multiplayer. STRESS SERVER. 10h](https://discourse.processing.org/t/processing-game-online-and-multiplayer-stress-server-10h/21350)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 9:22pm UTC](https://discourse.processing.org/t/processing-game-online-and-multiplayer-stress-server-10h/21350 "2020-05-28T21:22:34Z")

</div>

Hello community! Today I bring you a small game that we have developed in the studio to test the real viability of a massive multiplayer Android / Windows / Macosx / Linux game. It is an all against all playing the clas…

---

## [Issue with P5js Server loading](https://discourse.processing.org/t/issue-with-p5js-server-loading/21380)

<div class="topic-metadata">

**Author:** [@jhyde](https://discourse.processing.org/u/jhyde)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 8:37pm UTC](https://discourse.processing.org/t/issue-with-p5js-server-loading/21380 "2020-05-28T20:37:58Z")

</div>

apologies if I put this in the wrong section, but having some trouble seeing the canvas loaded on the server I’m running from Atom. I’ve attached how my script looks in Atom and what I copy and pasted from the Reference.…

---

## [Friendly names for Processing Sketches like the p5.js web editor](https://discourse.processing.org/t/friendly-names-for-processing-sketches-like-the-p5-js-web-editor/20986)

<div class="topic-metadata">

**Author:** [@KartikSoneji](https://discourse.processing.org/u/KartikSoneji)\
**Replies:** 41\
**Last updated:** [May 28, 2020, 8:37pm UTC](https://discourse.processing.org/t/friendly-names-for-processing-sketches-like-the-p5-js-web-editor/20986 "2020-05-28T20:37:00Z")

</div>

Hi everyone! I heard of Processing through Daniel Shiffman’s videos, and while I do not use it personally, I feel the it is a great tool for teaching and creative coding. I would love to contribute to the development of…

---

## [Failing to follow cursor](https://discourse.processing.org/t/failing-to-follow-cursor/21370)

<div class="topic-metadata">

**Author:** [@vtr](https://discourse.processing.org/u/vtr)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 7:53pm UTC](https://discourse.processing.org/t/failing-to-follow-cursor/21370 "2020-05-28T19:53:45Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi all, I am a newbie. I was trying to create a trapezoid that follows the cursor. Yet, I failed. I have given it many tries but it seems that …

---

## [Highlighting an arc in P5](https://discourse.processing.org/t/highlighting-an-arc-in-p5/21267)

<div class="topic-metadata">

**Author:** [@viniciusfersil](https://discourse.processing.org/u/viniciusfersil)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 7:10pm UTC](https://discourse.processing.org/t/highlighting-an-arc-in-p5/21267 "2020-05-28T19:10:37Z")

</div>

Hello to you all :slight\_smile: . I am trying to develop a pizza-like graph. Each “slice” of the full circle represents an element that will have some data attached to it. I am having trouble to acess each slice “individ…

---

## [Easy animation (rookie question)](https://discourse.processing.org/t/easy-animation-rookie-question/21379)

<div class="topic-metadata">

**Author:** [@Jack\_LK](https://discourse.processing.org/u/Jack_LK)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 5:41pm UTC](https://discourse.processing.org/t/easy-animation-rookie-question/21379 "2020-05-28T17:41:50Z")

</div>

Hey guys, I’m a very rookie at processing and something come up that I can not solve. I want to move a rect() pixel by pixel from left to right if the key ‘x’ is pressed. My code looks like this so far: color cl; floa…

---

## [Processing 3.5.4 PDE and driver installations](https://discourse.processing.org/t/processing-3-5-4-pde-and-driver-installations/21332)

<div class="topic-metadata">

**Author:** [@Reimington](https://discourse.processing.org/u/Reimington)\
**Replies:** 2\
**Last updated:** [May 28, 2020, 5:34pm UTC](https://discourse.processing.org/t/processing-3-5-4-pde-and-driver-installations/21332 "2020-05-28T17:34:44Z")

</div>

Hello Processing community. i downloaded the Processing 3.5.4 and I tried to look follow the videos of of most users. to my surprise my processing windows where much different from what i saw on mine. And i also would l…

---

## [Using loadTable with correct types in typescript with p5js](https://discourse.processing.org/t/using-loadtable-with-correct-types-in-typescript-with-p5js/21236)

<div class="topic-metadata">

**Author:** [@suvir](https://discourse.processing.org/u/suvir)\
**Replies:** 9\
**Last updated:** [May 28, 2020, 5:04pm UTC](https://discourse.processing.org/t/using-loadtable-with-correct-types-in-typescript-with-p5js/21236 "2020-05-28T17:04:19Z")

</div>

I am loading a csv file using the p5.js function, loadTable in typescript. It seems that its not reading the csv file at all, maybe i am missing something in my approach. I have all the type definition in typescript for …

---

## [Size() not working Processing 3.5.4](https://discourse.processing.org/t/size-not-working-processing-3-5-4/21317)

<div class="topic-metadata">

**Author:** [@aradeea](https://discourse.processing.org/u/aradeea)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 4:33pm UTC](https://discourse.processing.org/t/size-not-working-processing-3-5-4/21317 "2020-05-28T16:33:31Z")

</div>

Hi there, I’ve been reading several topics here about a similar issue but I couldn’t figure out what my problem is. Size() is not working in my Processing 3.5.4 sketch. This gives me a sketch that takes up the space of …

---

## [Camera distance to 3D points in parallel projection](https://discourse.processing.org/t/camera-distance-to-3d-points-in-parallel-projection/21312)

<div class="topic-metadata">

**Author:** [@recurs](https://discourse.processing.org/u/recurs)\
**Replies:** 5\
**Last updated:** [May 28, 2020, 3:20pm UTC](https://discourse.processing.org/t/camera-distance-to-3d-points-in-parallel-projection/21312 "2020-05-28T15:20:55Z")

</div>

I have a central function that I use to project 3D {x, y, z} coordinates onto a 2D picture plane. For a number of reasons, I can’t use any of Processing’s 3D functionality for what I’m doing. I’m hoping to find a way to…

---

## [Protocol communication beginner - how to use OSC to output from a python program to processing sketch?](https://discourse.processing.org/t/protocol-communication-beginner-how-to-use-osc-to-output-from-a-python-program-to-processing-sketch/21285)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 3:18pm UTC](https://discourse.processing.org/t/protocol-communication-beginner-how-to-use-osc-to-output-from-a-python-program-to-processing-sketch/21285 "2020-05-28T15:18:56Z")

</div>

Hi, I’m a total beginner in using OSC, I don’t fully understand how it works even. Could someone please explain how I could output values from a Python program and receive them in my processing sketch. For example, a pyt…

---

## [What do I put in the HTML file?](https://discourse.processing.org/t/what-do-i-put-in-the-html-file/21373)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.processing.org/u/Rahul)\
**Replies:** 10\
**Last updated:** [May 28, 2020, 2:49pm UTC](https://discourse.processing.org/t/what-do-i-put-in-the-html-file/21373 "2020-05-28T14:49:13Z")

</div>

I’m learning Processing and want to be able to write it in a text editor on my computer. I downloaded processing.js and have written a quick sketch called program.pde: void setup() { size(200, 200); fill(200); …

---

## [Processing.io PWM noob question](https://discourse.processing.org/t/processing-io-pwm-noob-question/21213)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 6\
**Last updated:** [May 28, 2020, 1:53pm UTC](https://discourse.processing.org/t/processing-io-pwm-noob-question/21213 "2020-05-28T13:53:10Z")

</div>

Hi all, I’ve just discovered the processing.io library, and I’m having a tough time with PWM. I’m running Processing on a Raspberry Pi Zero, and I’m wanting to interface with it’s IO pins. The page says to “Use the Sof…

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

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