# Latest

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

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

**Page:** 400

---

## ['Unable to set input source' p5.AudioIn()](https://discourse.processing.org/t/unable-to-set-input-source-p5-audioin/17373)

<div class="topic-metadata">

**Author:** [@Lucca](https://discourse.processing.org/u/Lucca)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 1:09pm UTC](https://discourse.processing.org/t/unable-to-set-input-source-p5-audioin/17373 "2020-01-27T13:09:40Z")

</div>

I am trying to grab my speakers/headphones audio in a p5 sketch I am writing to analyze the sound playing on my system. I can use the AudioIn.getSources() method to return an array of sources, the first of which is liste…

---

## [Question about using a for loop to execute a function multiple times](https://discourse.processing.org/t/question-about-using-a-for-loop-to-execute-a-function-multiple-times/17369)

<div class="topic-metadata">

**Author:** [@ZachMcMkay](https://discourse.processing.org/u/ZachMcMkay)\
**Replies:** 1\
**Last updated:** [January 27, 2020, 9:22am UTC](https://discourse.processing.org/t/question-about-using-a-for-loop-to-execute-a-function-multiple-times/17369 "2020-01-27T09:22:48Z")

</div>

I have a function that I know is running without errors if called once through the draw loop. In order to increase the “speed” of the function i ran the function in a for loop. Meaning, instead of just calling the func…

---

## [P5.js and arduino using serial.js](https://discourse.processing.org/t/p5-js-and-arduino-using-serial-js/17364)

<div class="topic-metadata">

**Author:** [@ACBRrobotics](https://discourse.processing.org/u/ACBRrobotics)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 8:00am UTC](https://discourse.processing.org/t/p5-js-and-arduino-using-serial-js/17364 "2020-01-27T08:00:00Z")

</div>

Hello! So I have been trying to reverse engineer this great example from the google team about interfacing TensorFlow models created in “teachable machine”, then using a p5.js sketch and the WebUSB library to send seria…

---

## [Creating "boundaries" for my ball using max and min](https://discourse.processing.org/t/creating-boundaries-for-my-ball-using-max-and-min/17367)

<div class="topic-metadata">

**Author:** [@AxFan](https://discourse.processing.org/u/AxFan)\
**Replies:** 3\
**Last updated:** [January 27, 2020, 6:49am UTC](https://discourse.processing.org/t/creating-boundaries-for-my-ball-using-max-and-min/17367 "2020-01-27T06:49:52Z")

</div>

So I was supposed to create this joystick like program in one of my questions but Im not sure how I can use functions max and min so the ball doesnt fly past the canvas when Im controlling it with my mouse. float lineX …

---

## [Drawing scaling based on position in window size?](https://discourse.processing.org/t/drawing-scaling-based-on-position-in-window-size/17303)

<div class="topic-metadata">

**Author:** [@AxFan](https://discourse.processing.org/u/AxFan)\
**Replies:** 1\
**Last updated:** [January 27, 2020, 6:43am UTC](https://discourse.processing.org/t/drawing-scaling-based-on-position-in-window-size/17303 "2020-01-27T06:43:43Z")

</div>

Hey guys so I want to know how a ball or drawing can be scaled as it moves from one area to the other? Say I have a ball and its being controlled by my mouse, at the bottom left corner its big, but as I move it towards t…

---

## [Defining zones in a game](https://discourse.processing.org/t/defining-zones-in-a-game/17366)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 2:02am UTC](https://discourse.processing.org/t/defining-zones-in-a-game/17366 "2020-01-27T02:02:53Z")

</div>

Hi, I would like to define zones in a game (a range of x and y) in which events could occur. If possible, I would also like to set the background color for that zone. I am using the Fisica library. It would have the str…

---

## [Draw lines through an array with a timer](https://discourse.processing.org/t/draw-lines-through-an-array-with-a-timer/17349)

<div class="topic-metadata">

**Author:** [@Ona](https://discourse.processing.org/u/Ona)\
**Replies:** 1\
**Last updated:** [January 26, 2020, 3:03pm UTC](https://discourse.processing.org/t/draw-lines-through-an-array-with-a-timer/17349 "2020-01-26T15:03:34Z")

</div>

hi, I’m writing a code for a project. At the moment my program can get lines out of a video image and display them. All the lines are displayed at once. Now I want every line to be displayed separately. So every 10 or 20…

---

## [Is the new 3.5.4 infected? \[Solved: No\]](https://discourse.processing.org/t/is-the-new-3-5-4-infected-solved-no/17346)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 2\
**Last updated:** [January 26, 2020, 1:52pm UTC](https://discourse.processing.org/t/is-the-new-3-5-4-infected-solved-no/17346 "2020-01-26T13:52:49Z")

</div>

OS: Microsoft Windows \[Version 10.0.18363.592\] VirusTotal Scan: https://www.virustotal.com/gui/file/404d86152460e4ab24f9e85cd7103790ae3b4bc74202b11d325b8573bb38e909/detection I just downloaded the new 3.5.4 version of …

---

## [What is the libpng warning?](https://discourse.processing.org/t/what-is-the-libpng-warning/17309)

<div class="topic-metadata">

**Author:** [@KEEP](https://discourse.processing.org/u/KEEP)\
**Replies:** 7\
**Last updated:** [January 26, 2020, 1:30pm UTC](https://discourse.processing.org/t/what-is-the-libpng-warning/17309 "2020-01-26T13:30:21Z")

</div>

Excuse me?How to solve the libpng warning ?please help me! thanks!

---

## [How to place Transparent glass over human body..idea request](https://discourse.processing.org/t/how-to-place-transparent-glass-over-human-body-idea-request/17273)

<div class="topic-metadata">

**Author:** [@adaptinnovative](https://discourse.processing.org/u/adaptinnovative)\
**Replies:** 8\
**Last updated:** [January 26, 2020, 1:25pm UTC](https://discourse.processing.org/t/how-to-place-transparent-glass-over-human-body-idea-request/17273 "2020-01-26T13:25:54Z")

</div>

Any idea how to get this done in processing. I can load the human figure as an .obj file but to get the transparent slab of glass to be Frontal Sagittal Transverse As seen in the image. Any ideas?

---

## [SVG shape distortion when importing back in processing](https://discourse.processing.org/t/svg-shape-distortion-when-importing-back-in-processing/17322)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 4\
**Last updated:** [January 26, 2020, 1:21pm UTC](https://discourse.processing.org/t/svg-shape-distortion-when-importing-back-in-processing/17322 "2020-01-26T13:21:12Z")

</div>

// Shape import processing.svg.\*; float lengthD; float ellipseR; float rhombusW; float rhombusH; void setup() { size(800, 800); beginRecord(SVG, "SHAPE.svg"); smooth(); noLoop(); lengthD = sqrt(pow(w…

---

## [Reference is Null, p5 load order?](https://discourse.processing.org/t/reference-is-null-p5-load-order/17330)

<div class="topic-metadata">

**Author:** [@Skranker](https://discourse.processing.org/u/Skranker)\
**Replies:** 3\
**Last updated:** [January 26, 2020, 1:22am UTC](https://discourse.processing.org/t/reference-is-null-p5-load-order/17330 "2020-01-26T01:22:05Z")

</div>

Hello, at the moment i am trying to reference a div object from my index.html witin the p5 sketch but i keep getting an object is null error. I think this happens because the script is loaded too early and the object h…

---

## [Reading Youtube API?](https://discourse.processing.org/t/reading-youtube-api/17331)

<div class="topic-metadata">

**Author:** [@iobotic](https://discourse.processing.org/u/iobotic)\
**Replies:** 2\
**Last updated:** [January 25, 2020, 11:40pm UTC](https://discourse.processing.org/t/reading-youtube-api/17331 "2020-01-25T23:40:26Z")

</div>

Hello friends, someone can you provide some example about how can I read the Youtube API to get the subscribers number? Thanks :hugs:

---

## [Accessing variables in an array of different objects](https://discourse.processing.org/t/accessing-variables-in-an-array-of-different-objects/17324)

<div class="topic-metadata">

**Author:** [@J0R1AN](https://discourse.processing.org/u/J0R1AN)\
**Replies:** 4\
**Last updated:** [January 25, 2020, 11:09pm UTC](https://discourse.processing.org/t/accessing-variables-in-an-array-of-different-objects/17324 "2020-01-25T23:09:21Z")

</div>

I am working on a bigger project with a game that has an AI and Human player. I want to expand it so I have an array of players that I can set to whatever I want. The AI and Human classes are different in logic but have …

---

## [Static bodies in Fisica](https://discourse.processing.org/t/static-bodies-in-fisica/17332)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 0\
**Last updated:** [January 25, 2020, 8:25pm UTC](https://discourse.processing.org/t/static-bodies-in-fisica/17332 "2020-01-25T20:25:23Z")

</div>

Hi, I am using the fisica library to create a game in which I have to define a set of boundaries with FBox. The problem is I am not able to disable the mouseDragged function (the player can move the boundaries, so the g…

---

## [Arranging an array of objects in a grid](https://discourse.processing.org/t/arranging-an-array-of-objects-in-a-grid/16969)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 34\
**Last updated:** [January 25, 2020, 8:23pm UTC](https://discourse.processing.org/t/arranging-an-array-of-objects-in-a-grid/16969 "2020-01-25T20:23:17Z")

</div>

I’m trying to further my understanding of how to implement an object array with this simple sketch. I created a while loop within a while loop to create the grid. I added the object array But the screen appears empty w…

---

## [Sketch 84552 don't work, error](https://discourse.processing.org/t/sketch-84552-dont-work-error/17114)

<div class="topic-metadata">

**Author:** [@motorimicro](https://discourse.processing.org/u/motorimicro)\
**Replies:** 7\
**Last updated:** [January 25, 2020, 7:10pm UTC](https://discourse.processing.org/t/sketch-84552-dont-work-error/17114 "2020-01-25T19:10:12Z")

</div>

here where download the sketch: Hi, I have just entered the world of processing and I am really a beginner, I have only a little understood how to use processing sketches by trial and error. I’m trying to run the …

---

## [Repeated alpha not reaching full opacity](https://discourse.processing.org/t/repeated-alpha-not-reaching-full-opacity/16890)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 12\
**Last updated:** [January 25, 2020, 6:20pm UTC](https://discourse.processing.org/t/repeated-alpha-not-reaching-full-opacity/16890 "2020-01-25T18:20:18Z")

</div>

Hello, I’m using a rectangle filled with white and a certain alpha value at the beginning of draw, and I would think that if done enough times that eventually the first thing drawn in setup would eventually be totally w…

---

## [How does one use XInput (Xbox Controller) inputs in Processing](https://discourse.processing.org/t/how-does-one-use-xinput-xbox-controller-inputs-in-processing/17327)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 2\
**Last updated:** [January 25, 2020, 4:32pm UTC](https://discourse.processing.org/t/how-does-one-use-xinput-xbox-controller-inputs-in-processing/17327 "2020-01-25T16:32:12Z")

</div>

Hello all I’m working on a queue manager (Check it out Here ) and thought it would be nice to add some Easter eggs that can be triggered with an Xbox Controller. Does anyone know how to detect XInput/Xbox controller inp…

---

## [CPU usage of sound and image](https://discourse.processing.org/t/cpu-usage-of-sound-and-image/17182)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 5\
**Last updated:** [January 25, 2020, 4:11pm UTC](https://discourse.processing.org/t/cpu-usage-of-sound-and-image/17182 "2020-01-25T16:11:00Z")

</div>

Hi everyone I’m working on some code where thousands of soundfiles (using the sounde library) and images are loaded, one at a time. To be precise, one image and one soundfile are loaded, then played simultaneously. The …

---

## [How can we draw a graphe from a video capture ?!](https://discourse.processing.org/t/how-can-we-draw-a-graphe-from-a-video-capture/17286)

<div class="topic-metadata">

**Author:** [@Azdn](https://discourse.processing.org/u/Azdn)\
**Replies:** 8\
**Last updated:** [January 25, 2020, 11:45am UTC](https://discourse.processing.org/t/how-can-we-draw-a-graphe-from-a-video-capture/17286 "2020-01-25T11:45:30Z")

</div>

Hi !! I want to draw a graph that processes data from a video capture something like RGB values ​​based on pixel location or brightness based on pixel location … My project is blocked in this step so i will be so tha…

---

## [React P5 loading image question. How do I pass prop values to preload image?](https://discourse.processing.org/t/react-p5-loading-image-question-how-do-i-pass-prop-values-to-preload-image/16961)

<div class="topic-metadata">

**Author:** [@eagle3y3z](https://discourse.processing.org/u/eagle3y3z)\
**Replies:** 4\
**Last updated:** [January 25, 2020, 12:15am UTC](https://discourse.processing.org/t/react-p5-loading-image-question-how-do-i-pass-prop-values-to-preload-image/16961 "2020-01-25T00:15:20Z")

</div>

I am relatively new to P5 and I just don’t quite understand how to load an image using react p5-wrapper and the prop values together. I’m gettting an error that my img variable is not being read and is undefined. The onl…

---

## [How to create an drawing evolution for a clock](https://discourse.processing.org/t/how-to-create-an-drawing-evolution-for-a-clock/17288)

<div class="topic-metadata">

**Author:** [@marcucci](https://discourse.processing.org/u/marcucci)\
**Replies:** 7\
**Last updated:** [January 24, 2020, 10:07pm UTC](https://discourse.processing.org/t/how-to-create-an-drawing-evolution-for-a-clock/17288 "2020-01-24T22:07:35Z")

</div>

Hey Guys, I’m completely new to processing and i’m trying to build a clock. I drawed a tree on illustrator which grow up over time.I don’t know what i can do. The idea of the clock is when the hour is finish, the tree …

---

## [Connect to a serial port without it crashing if the device isn't connected?](https://discourse.processing.org/t/connect-to-a-serial-port-without-it-crashing-if-the-device-isnt-connected/17290)

<div class="topic-metadata">

**Author:** [@pmorgan4801](https://discourse.processing.org/u/pmorgan4801)\
**Replies:** 3\
**Last updated:** [January 24, 2020, 9:38pm UTC](https://discourse.processing.org/t/connect-to-a-serial-port-without-it-crashing-if-the-device-isnt-connected/17290 "2020-01-24T21:38:26Z")

</div>

Hello, I am new to processing and am trying to connect processing 3 to an Arduino Nano. I am able to get it connected successfully through the standard means: import processing.serial.\*; void setup(){ port = new Seri…

---

## [How to check for opened ports on a Client/Server connection?](https://discourse.processing.org/t/how-to-check-for-opened-ports-on-a-client-server-connection/17160)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 5\
**Last updated:** [January 24, 2020, 8:47pm UTC](https://discourse.processing.org/t/how-to-check-for-opened-ports-on-a-client-server-connection/17160 "2020-01-24T20:47:51Z")

</div>

Hey bros! I’m starting coding some programs which support two-machines connection (a Server one and a Client one, using the net library); and I’m trying to do something that, like every time I post something there, I’m …

---

## [Request to update "good-first-issue" labels](https://discourse.processing.org/t/request-to-update-good-first-issue-labels/17320)

<div class="topic-metadata">

**Author:** [@mariovimal](https://discourse.processing.org/u/mariovimal)\
**Replies:** 0\
**Last updated:** [January 24, 2020, 8:15pm UTC](https://discourse.processing.org/t/request-to-update-good-first-issue-labels/17320 "2020-01-24T20:15:21Z")

</div>

Hello, I recently got to know Processing and loved working with Processing Android. I was hoping that I could start contributing to Processing Android and I got the setup done. It would be great if someone could update…

---

## [Changing color according to the y variable](https://discourse.processing.org/t/changing-color-according-to-the-y-variable/17315)

<div class="topic-metadata">

**Author:** [@PhilRandom](https://discourse.processing.org/u/PhilRandom)\
**Replies:** 6\
**Last updated:** [January 24, 2020, 7:20pm UTC](https://discourse.processing.org/t/changing-color-according-to-the-y-variable/17315 "2020-01-24T19:20:37Z")

</div>

How should one go about changing the color according to the y variable, an ombré of sorts? Please and Thank You Best, Phil

---

## [Convert into arraylist to add elements](https://discourse.processing.org/t/convert-into-arraylist-to-add-elements/17317)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 6:31pm UTC](https://discourse.processing.org/t/convert-into-arraylist-to-add-elements/17317 "2020-01-24T18:31:34Z")

</div>

Hi, I am working with a code where there is a defined number of elements N\_ATOMS proportionate to the screen size. I would like to add elements using MousePressed. However, there is no ArrayList in the code and I am not…

---

## [Problem with coding](https://discourse.processing.org/t/problem-with-coding/17295)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 5\
**Last updated:** [January 24, 2020, 4:02pm UTC](https://discourse.processing.org/t/problem-with-coding/17295 "2020-01-24T16:02:41Z")

</div>

Hello, I have a problem with coding about AxiDraw: StippleGen,line number 316; See pic: What can I do? Thank you. Christian

---

## [Arcball Library error](https://discourse.processing.org/t/arcball-library-error/17292)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 3\
**Last updated:** [January 24, 2020, 11:15am UTC](https://discourse.processing.org/t/arcball-library-error/17292 "2020-01-24T11:15:50Z")

</div>

I tried to use the Arcball library https://github.com/RandomEtc/processing-arcball I get the error: java.lang.NoSuchMethodError:processing.core.PApplet.registerMouseEvent(Ljava/lang/Object;)V Does this mean a core proc…

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

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