# Processing

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

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

**Page:** 206

---

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

---

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

---

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

---

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

---

## [Loops and object movement](https://discourse.processing.org/t/loops-and-object-movement/20384)

<div class="topic-metadata">

**Author:** [@s6277](https://discourse.processing.org/u/s6277)\
**Replies:** 6\
**Last updated:** [May 28, 2020, 10:12am UTC](https://discourse.processing.org/t/loops-and-object-movement/20384 "2020-05-28T10:12:18Z")

</div>

Hey, i’m very confused as to why my rectangle is not moving, I’ve tried everything and i still don’t get it. So i have created four rectangles going in a linear line one under each other, using the for loop. I want to be…

---

## [Change PC volume with processing](https://discourse.processing.org/t/change-pc-volume-with-processing/21343)

<div class="topic-metadata">

**Author:** [@Arnau](https://discourse.processing.org/u/Arnau)\
**Replies:** 2\
**Last updated:** [May 28, 2020, 8:10am UTC](https://discourse.processing.org/t/change-pc-volume-with-processing/21343 "2020-05-28T08:10:45Z")

</div>

I am in a project but there is a thing that I don’t know how to do. I need to change PC master volume. Is that possible? Please I need help!

---

## [About GUI Builder in Processing](https://discourse.processing.org/t/about-gui-builder-in-processing/20699)

<div class="topic-metadata">

**Author:** [@wwave](https://discourse.processing.org/u/wwave)\
**Replies:** 16\
**Last updated:** [May 28, 2020, 7:46am UTC](https://discourse.processing.org/t/about-gui-builder-in-processing/20699 "2020-05-28T07:46:38Z")

</div>

Hi everyone: I have some problems in using GUI Builder in Processing, could someone can help me solve them? Thank you. I have downlad the G4PTool V4.4.1.zip and put it in Procssing/tools folder, and I restart Procssing…

---

## [Use random() in static method](https://discourse.processing.org/t/use-random-in-static-method/21358)

<div class="topic-metadata">

**Author:** [@FallingSloth](https://discourse.processing.org/u/FallingSloth)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 3:06am UTC](https://discourse.processing.org/t/use-random-in-static-method/21358 "2020-05-28T03:06:19Z")

</div>

I have a static method where I would like to use the random function, however, I get the error Cannot make a static reference to the non-static method random(float) from the type PApplet I’ve tried to google for the …

---

## [Ubuntu Studio 19.10 / Having problem with video library](https://discourse.processing.org/t/ubuntu-studio-19-10-having-problem-with-video-library/21345)

<div class="topic-metadata">

**Author:** [@pundes](https://discourse.processing.org/u/pundes)\
**Replies:** 1\
**Last updated:** [May 27, 2020, 11:20pm UTC](https://discourse.processing.org/t/ubuntu-studio-19-10-having-problem-with-video-library/21345 "2020-05-27T23:20:29Z")

</div>

I have installed processing-3.5.4 when ever I am trying to use the video library it is showing an error message: a library used by this sketch is not installed properly. UnsatisfiedLinkError: Error looking up function…

---

## [Shape Drawing Guidance - how to draw symmetric filled curves?](https://discourse.processing.org/t/shape-drawing-guidance-how-to-draw-symmetric-filled-curves/21352)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 1\
**Last updated:** [May 27, 2020, 11:09pm UTC](https://discourse.processing.org/t/shape-drawing-guidance-how-to-draw-symmetric-filled-curves/21352 "2020-05-27T23:09:55Z")

</div>

Hey guys, I’ve used a curve vertex tool to draw these eye lids on top of a sphere but they turn out pretty asymmetric since usually you need to define points on either side as ‘training’/‘direction’ points to get symme…

---

## [A surprising glitch(?) in Processing Java](https://discourse.processing.org/t/a-surprising-glitch-in-processing-java/21204)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 7\
**Last updated:** [May 27, 2020, 7:49pm UTC](https://discourse.processing.org/t/a-surprising-glitch-in-processing-java/21204 "2020-05-27T19:49:40Z")

</div>

Good morning all, So I had a simple idea. Make a ball rotate the center of canvas draw a rect over canvas with lots of opacity, so that image fades a bit every time copy a slightly smaller part of canvas and stretch i…

---

## [Sharing code to help the community](https://discourse.processing.org/t/sharing-code-to-help-the-community/21282)

<div class="topic-metadata">

**Author:** [@Baz](https://discourse.processing.org/u/Baz)\
**Replies:** 5\
**Last updated:** [May 27, 2020, 7:16pm UTC](https://discourse.processing.org/t/sharing-code-to-help-the-community/21282 "2020-05-27T19:16:29Z")

</div>

I use processing on a regular basis to implement simple things that I think are cool. Recently, it came to my mind that people may want to see some of the things I do, or use it instead of having to make it themselves. …

---

## [P3D - Sphere translation without deforming?](https://discourse.processing.org/t/p3d-sphere-translation-without-deforming/21349)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 5\
**Last updated:** [May 27, 2020, 6:54pm UTC](https://discourse.processing.org/t/p3d-sphere-translation-without-deforming/21349 "2020-05-27T18:54:56Z")

</div>

Hi! Thanks for all the help so far, this platform has been extremely supportive. I’m creating a 3D sphere but everytime i translate it, it also seems to rotate/deform, why is this the case? Is there an easy fix or do I n…

---

## [(Noob question) why doesn't this line of code work?](https://discourse.processing.org/t/noob-question-why-doesnt-this-line-of-code-work/21284)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 15\
**Last updated:** [May 27, 2020, 5:46pm UTC](https://discourse.processing.org/t/noob-question-why-doesnt-this-line-of-code-work/21284 "2020-05-27T17:46:18Z")

</div>

Consider the ArrayList(PVector) “p”. Now let’s say I’m trying to set a vector in that list p.get(i)=p.get(i+1).copy(); When I write this it says “left hand of assignment must be variable”. How do I get around this? E…

---

## [Message Queue with oscP5 not treating messages as objects](https://discourse.processing.org/t/message-queue-with-oscp5-not-treating-messages-as-objects/21328)

<div class="topic-metadata">

**Author:** [@Merk](https://discourse.processing.org/u/Merk)\
**Replies:** 2\
**Last updated:** [May 27, 2020, 1:40pm UTC](https://discourse.processing.org/t/message-queue-with-oscp5-not-treating-messages-as-objects/21328 "2020-05-27T13:40:22Z")

</div>

Hi, Long story, but I’m trying to implement a queue handler for incoming OSC messages, as I’m getting concurrency issues. There was a really helpful example from feb 2016 on the archived forum where user GoToLoop provi…

---

## [Python help? Export OSC data to Processing](https://discourse.processing.org/t/python-help-export-osc-data-to-processing/21326)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 27, 2020, 1:20pm UTC](https://discourse.processing.org/t/python-help-export-osc-data-to-processing/21326 "2020-05-27T13:20:37Z")

</div>

Hey I’m relatively new to all of this, especially Python. But I essentially need some data from a Python program. The full code is in this github repo: https://github.com/omar178/Emotion-recognition#p1. But essentially …

---

## [Problem with bouncing numbers](https://discourse.processing.org/t/problem-with-bouncing-numbers/21098)

<div class="topic-metadata">

**Author:** [@kukukoks](https://discourse.processing.org/u/kukukoks)\
**Replies:** 4\
**Last updated:** [May 27, 2020, 10:41am UTC](https://discourse.processing.org/t/problem-with-bouncing-numbers/21098 "2020-05-27T10:41:56Z")

</div>

Hi need help with this. I have 6 png and all of them load to program and they count from 0 to 5. What to do after that count down from 5 to 0, i mean 0,1,2,3,4,5,4,3,2,1,0 PImage\[\] zdjecia=new PImage\[6\]; int i=0; void …

---

## [Rettangoli colori](https://discourse.processing.org/t/rettangoli-colori/21308)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 1\
**Last updated:** [May 26, 2020, 4:40pm UTC](https://discourse.processing.org/t/rettangoli-colori/21308 "2020-05-26T16:40:48Z")

</div>

Sto cercando di capire come mai non riesco ad inserire i miei valori float iniziali all’interno dei mie rect(). int PuntoZero = 0; float x = 300; float y1 = 300; float y2 = 500; int w = 600; int h = 600; float latoGiall…

---

## [Start Application: loading page](https://discourse.processing.org/t/start-application-loading-page/21114)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 4\
**Last updated:** [May 27, 2020, 12:08am UTC](https://discourse.processing.org/t/start-application-loading-page/21114 "2020-05-27T00:08:13Z")

</div>

Hi. I’m trying to make my Corona Viz application public. A public beta. It takes a while to load, big tables(getting bigger every day) and a lot of parsing. I want to do a loading page, with a console, to give feedback…

---

## [Where do you showcase your work?](https://discourse.processing.org/t/where-do-you-showcase-your-work/21103)

<div class="topic-metadata">

**Author:** [@enniofranco](https://discourse.processing.org/u/enniofranco)\
**Replies:** 6\
**Last updated:** [May 26, 2020, 1:52pm UTC](https://discourse.processing.org/t/where-do-you-showcase-your-work/21103 "2020-05-26T13:52:08Z")

</div>

Hi everyone, I want to start sharing samples of my work and I don’t know which platform I should pick. I am reaching out to the community to ask for your advice. I would greatly appreciate if you could share the follo…

---

## [Help with double spherical pendulum animation](https://discourse.processing.org/t/help-with-double-spherical-pendulum-animation/21229)

<div class="topic-metadata">

**Author:** [@SamuelCobb](https://discourse.processing.org/u/SamuelCobb)\
**Replies:** 9\
**Last updated:** [May 26, 2020, 12:19pm UTC](https://discourse.processing.org/t/help-with-double-spherical-pendulum-animation/21229 "2020-05-26T12:19:09Z")

</div>

Hey guys, I’m kinda new to processing and I’m struggling on a project that I’m working on. My project (as already stated in the title) is programming and animating a double spherical pendulum. I used Mathematica to sol…

---

## [Explanation for the algorithm behind this generative art piece](https://discourse.processing.org/t/explanation-for-the-algorithm-behind-this-generative-art-piece/21108)

<div class="topic-metadata">

**Author:** [@the0ne](https://discourse.processing.org/u/the0ne)\
**Replies:** 6\
**Last updated:** [May 26, 2020, 9:11am UTC](https://discourse.processing.org/t/explanation-for-the-algorithm-behind-this-generative-art-piece/21108 "2020-05-26T09:11:13Z")

</div>

I recently came across this beautiful generative art piece, ’Trunk’ by Kjetil Golid (source code). I went through the code and understand what’s being done, yet I’m unable to grasp why the algorithm works the way it doe…

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

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