# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=240

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

**Page:** 241

---

## [New to processing, I need some help with classes](https://discourse.processing.org/t/new-to-processing-i-need-some-help-with-classes/17156)

<div class="topic-metadata">

**Author:** [@bugotc14](https://discourse.processing.org/u/bugotc14)\
**Replies:** 11\
**Last updated:** [January 28, 2020, 3:03pm UTC](https://discourse.processing.org/t/new-to-processing-i-need-some-help-with-classes/17156 "2020-01-28T15:03:16Z")

</div>

yesterday I tried to make a program that displays a cool ellipse with ellipses around it and I made it and everything worked fine, I made a class named DotsArray and made the ellipse array an object, I even added a feat…

---

## [java.lang.UnsatisfiedLinkError](https://discourse.processing.org/t/java-lang-unsatisfiedlinkerror/16848)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 9\
**Last updated:** [January 28, 2020, 5:22am UTC](https://discourse.processing.org/t/java-lang-unsatisfiedlinkerror/16848 "2020-01-28T05:22:23Z")

</div>

I am developing a Processing Sketch in Eclipse that uses USB by means of the serial port emulator in jssc.jar. It charts data received over the serial port as lines on a graph. When the program is run, the sketch window …

---

## [Video library: grab specific frame of a movie](https://discourse.processing.org/t/video-library-grab-specific-frame-of-a-movie/17387)

<div class="topic-metadata">

**Author:** [@keithhandy](https://discourse.processing.org/u/keithhandy)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 4:07am UTC](https://discourse.processing.org/t/video-library-grab-specific-frame-of-a-movie/17387 "2020-01-28T04:07:02Z")

</div>

Hi, I have been trying to write code to grab a specific frame from a movie file using the Movie object and the “jump” method, but I am unable to jump to a specific point in the movie unless the movie is playing. The onl…

---

## [Query regarding best practices to credit original developers](https://discourse.processing.org/t/query-regarding-best-practices-to-credit-original-developers/17042)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 6\
**Last updated:** [January 14, 2020, 9:54pm UTC](https://discourse.processing.org/t/query-regarding-best-practices-to-credit-original-developers/17042 "2020-01-14T21:54:42Z")

</div>

Hello Everyone, I have created a processing library rainbow, its about creating an abstraction layer over fun challenges of Coding train. So you can play around with different examples. For that I have taken code from c…

---

## [Recognize bodies involved in collision's class](https://discourse.processing.org/t/recognize-bodies-involved-in-collisions-class/17384)

<div class="topic-metadata">

**Author:** [@MCGFP](https://discourse.processing.org/u/MCGFP)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 8:56pm UTC](https://discourse.processing.org/t/recognize-bodies-involved-in-collisions-class/17384 "2020-01-27T20:56:31Z")

</div>

Hi, I am using Fisica library for a game. I have different types of FCircle (circle2, circle2) of different size and one type of FBox rectangle1. I am able to generate actions when a circle collides with a rectangle (ma…

---

## [Storing Point in a variable](https://discourse.processing.org/t/storing-point-in-a-variable/17381)

<div class="topic-metadata">

**Author:** [@prathmesh](https://discourse.processing.org/u/prathmesh)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 9:26pm UTC](https://discourse.processing.org/t/storing-point-in-a-variable/17381 "2020-01-27T21:26:13Z")

</div>

Hello All, Why is the statement below invalid: float x = point(a,b); it gives me the error : void cannot be matched with int.(interesting!!) Is it not possible to store a point in a variable? I came across this while …

---

## [How to code a YOUTUBE subscriber counter?](https://discourse.processing.org/t/how-to-code-a-youtube-subscriber-counter/17004)

<div class="topic-metadata">

**Author:** [@iobotic](https://discourse.processing.org/u/iobotic)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 5:10pm UTC](https://discourse.processing.org/t/how-to-code-a-youtube-subscriber-counter/17004 "2020-01-27T17:10:25Z")

</div>

Hello Friends! My name is Hugo, I’m a new for here and I’m happy to join the community. :hugs: I would like to know how can I make a Youtube Subs Counter using processing? :star\_struck: My Idea is to use a Raspberry Pi…

---

## [Output to PDF every 5 Seconds](https://discourse.processing.org/t/output-to-pdf-every-5-seconds/17125)

<div class="topic-metadata">

**Author:** [@FutureDays](https://discourse.processing.org/u/FutureDays)\
**Replies:** 2\
**Last updated:** [January 21, 2020, 4:25pm UTC](https://discourse.processing.org/t/output-to-pdf-every-5-seconds/17125 "2020-01-21T16:25:28Z")

</div>

Hello, I am a total newbie to Processing but am loving the learning. I have a question, how do I write a line of code that outputs a PDF to a folder on the desktop every 5 seconds. I have placed my code here for refer…

---

## [Unable to write data in a text file](https://discourse.processing.org/t/unable-to-write-data-in-a-text-file/17374)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 2:43pm UTC](https://discourse.processing.org/t/unable-to-write-data-in-a-text-file/17374 "2020-01-27T14:43:55Z")

</div>

File getting created successfully but data is not getting written in file. code:- PrintWriter output; void setup() { // Create a new file in the sketch directory output = createWriter(“positions.txt”); } void draw…

---

## [Why Ain't my Code working?](https://discourse.processing.org/t/why-aint-my-code-working/16800)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 2:05pm UTC](https://discourse.processing.org/t/why-aint-my-code-working/16800 "2020-01-27T14:05:05Z")

</div>

I’m trying to make a card game, but when I try to get the player’s hand in the correct spot. All 5 cards go to the last spot instead of staying where they suppose to. here setup Table enemyT; TableRow tr; int s = 75; A…

---

## [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…

---

## [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…

---

## [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 …

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=239)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=241)
