# Processing

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

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

**Page:** 205

---

## [About G4P GUI Builder](https://discourse.processing.org/t/about-g4p-gui-builder/21492)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [June 2, 2020, 10:30pm UTC](https://discourse.processing.org/t/about-g4p-gui-builder/21492 "2020-06-02T22:30:43Z")

</div>

So here is the thing I want to combine both of the windows. Is there a way

---

## [Can I make my own library with my assembly code inside it and how would I do it](https://discourse.processing.org/t/can-i-make-my-own-library-with-my-assembly-code-inside-it-and-how-would-i-do-it/21515)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 4:14pm UTC](https://discourse.processing.org/t/can-i-make-my-own-library-with-my-assembly-code-inside-it-and-how-would-i-do-it/21515 "2020-06-03T16:14:51Z")

</div>

So what I need is to somehow include assembly instructions into my project I don’t have time for a lot of complicated things that I cannot understand. If building a library is the easies way to do it then I have to take …

---

## [Is there an easier way to get the updated Pixels](https://discourse.processing.org/t/is-there-an-easier-way-to-get-the-updated-pixels/21485)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 6\
**Last updated:** [June 3, 2020, 3:15pm UTC](https://discourse.processing.org/t/is-there-an-easier-way-to-get-the-updated-pixels/21485 "2020-06-03T15:15:46Z")

</div>

I want to get the pixels that were updated in code between a and b without comparing loadPixels () at a with loadPixels() at b. Is that possible? (-\> and how is that possible?)

---

## [Control volume with Minim Library](https://discourse.processing.org/t/control-volume-with-minim-library/21055)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 2:56pm UTC](https://discourse.processing.org/t/control-volume-with-minim-library/21055 "2020-06-03T14:56:59Z")

</div>

Hello, I would like to set volume of different audio output with mini library. Thanks

---

## [Problems with this code (Help please)](https://discourse.processing.org/t/problems-with-this-code-help-please/21517)

<div class="topic-metadata">

**Author:** [@panic](https://discourse.processing.org/u/panic)\
**Replies:** 2\
**Last updated:** [June 3, 2020, 5:12am UTC](https://discourse.processing.org/t/problems-with-this-code-help-please/21517 "2020-06-03T05:12:58Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am new to processing and am having trouble creating code. I’m using a face detector, but instead of a square I want the face to pixel that are…

---

## [PApplet call order (multi-threading thread safety)](https://discourse.processing.org/t/papplet-call-order-multi-threading-thread-safety/21447)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 9\
**Last updated:** [June 1, 2020, 10:48am UTC](https://discourse.processing.org/t/papplet-call-order-multi-threading-thread-safety/21447 "2020-06-01T10:48:36Z")

</div>

what is the call order for the following methods: setup() draw() mousePressed() mouseDragged() mouseReleased() // related keyboard methods in particular: am i correct to assume that draw() will pause during the run o…

---

## [Making a light inside the room](https://discourse.processing.org/t/making-a-light-inside-the-room/21164)

<div class="topic-metadata">

**Author:** [@alkyonemis](https://discourse.processing.org/u/alkyonemis)\
**Replies:** 14\
**Last updated:** [June 3, 2020, 7:00am UTC](https://discourse.processing.org/t/making-a-light-inside-the-room/21164 "2020-06-03T07:00:03Z")

</div>

Hi, I am a new coder on processing. Normally, my code is 1000 lines.However, I prepared for you a simple code that I can modify on my code. The project last date is very soon. So, please be poilte and gentle. The code wh…

---

## [Save drawn Constructs](https://discourse.processing.org/t/save-drawn-constructs/21473)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 9\
**Last updated:** [June 2, 2020, 3:20pm UTC](https://discourse.processing.org/t/save-drawn-constructs/21473 "2020-06-02T15:20:00Z")

</div>

Hello. I want to save drawn constructs, if they are too big to recalculate every tick. I don’t know exactly how it works, but I think it works with PMatrix. My Idea was: ConstructXY x; void setup(){ x = new ConstructXY…

---

## [Size() Bug in Processing 3.5.4](https://discourse.processing.org/t/size-bug-in-processing-3-5-4/21431)

<div class="topic-metadata">

**Author:** [@brent](https://discourse.processing.org/u/brent)\
**Replies:** 5\
**Last updated:** [June 2, 2020, 3:13pm UTC](https://discourse.processing.org/t/size-bug-in-processing-3-5-4/21431 "2020-06-02T15:13:38Z")

</div>

I’m trying to position rectangles for the UI of a basic painting program in relation to the Width and Height of the window. I’ve looked elsewhere and found I should introduce ‘size()’ in ‘settings()’ as opposed to ‘setup…

---

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

<div class="topic-metadata">

**Author:** [@panic](https://discourse.processing.org/u/panic)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 12:57pm UTC](https://discourse.processing.org/t/why-doesnt-this-code-work-noob-question/21483 "2020-06-02T12:57:45Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am new to processing and I had doubts when creating a code for a project. I want that detecting the face with the camera produces changes in …

---

## [Passing a parameter through a thread](https://discourse.processing.org/t/passing-a-parameter-through-a-thread/21498)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [June 2, 2020, 8:06am UTC](https://discourse.processing.org/t/passing-a-parameter-through-a-thread/21498 "2020-06-02T08:06:33Z")

</div>

Hi again everyone, currently stuck on a problem, I wish to create multiple threads to maximize cpu usage as I understand processing only uses the one thread by default, (perhaps this is java by default). I have done some…

---

## [FrameRate drop when I play movie](https://discourse.processing.org/t/framerate-drop-when-i-play-movie/21480)

<div class="topic-metadata">

**Author:** [@OohYuma](https://discourse.processing.org/u/OohYuma)\
**Replies:** 4\
**Last updated:** [June 2, 2020, 7:43am UTC](https://discourse.processing.org/t/framerate-drop-when-i-play-movie/21480 "2020-06-02T07:43:40Z")

</div>

ArrayList\<Integer\> x = new ArrayList\<Integer\>(), y = new ArrayList\<Integer\>(); import processing.sound.\*; SoundFile file; import processing.video.\*; Movie movie; void setup() { size(400, 450); background(0); x.add…

---

## [Easy question from new user! +Parallel lines drawing](https://discourse.processing.org/t/easy-question-from-new-user-parallel-lines-drawing/21464)

<div class="topic-metadata">

**Author:** [@Ateroma](https://discourse.processing.org/u/Ateroma)\
**Replies:** 1\
**Last updated:** [June 1, 2020, 6:23pm UTC](https://discourse.processing.org/t/easy-question-from-new-user-parallel-lines-drawing/21464 "2020-06-01T18:23:18Z")

</div>

Hello! I’m new here and I just found this incredible software during the quarantine. I’m reading the Processing: A Programming Handbook for Visual Designers and Artists book for learning, but I remained stuck while try…

---

## [Random words from text file - how to avoid duplicate index numbers?](https://discourse.processing.org/t/random-words-from-text-file-how-to-avoid-duplicate-index-numbers/21456)

<div class="topic-metadata">

**Author:** [@Jonathan\_2](https://discourse.processing.org/u/Jonathan_2)\
**Replies:** 5\
**Last updated:** [June 1, 2020, 3:14pm UTC](https://discourse.processing.org/t/random-words-from-text-file-how-to-avoid-duplicate-index-numbers/21456 "2020-06-01T15:14:04Z")

</div>

Hey. I am quite new to processing so excuse me if my explanation of this is in the wrong terms or if things are slightly misunderstood. I am working on a code that write random words from a text on the screen every tim…

---

## [About public voids / functions](https://discourse.processing.org/t/about-public-voids-functions/21469)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 4\
**Last updated:** [June 1, 2020, 2:04pm UTC](https://discourse.processing.org/t/about-public-voids-functions/21469 "2020-06-01T14:04:34Z")

</div>

Hi. Do I have to place Public Voids into void draw if I want to use it repeatedly ??

---

## [Is it possible to add charts or some values into a new window created by G4P?](https://discourse.processing.org/t/is-it-possible-to-add-charts-or-some-values-into-a-new-window-created-by-g4p/21472)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 2\
**Last updated:** [June 1, 2020, 10:09am UTC](https://discourse.processing.org/t/is-it-possible-to-add-charts-or-some-values-into-a-new-window-created-by-g4p/21472 "2020-06-01T10:09:39Z")

</div>

I could manage to open a new window with G4P. But I couldnt figure out how to add values or charts boxes or something. Is there a way

---

## [PImage object from current sketch state](https://discourse.processing.org/t/pimage-object-from-current-sketch-state/21433)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 4\
**Last updated:** [June 1, 2020, 3:26am UTC](https://discourse.processing.org/t/pimage-object-from-current-sketch-state/21433 "2020-06-01T03:26:58Z")

</div>

Hi, Can I create a PImage object from the pixels in the sketch rather than by loading an image from disk? Thanks

---

## [What causes a graphical sketch to start glitching out?](https://discourse.processing.org/t/what-causes-a-graphical-sketch-to-start-glitching-out/21458)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 3\
**Last updated:** [May 31, 2020, 7:20pm UTC](https://discourse.processing.org/t/what-causes-a-graphical-sketch-to-start-glitching-out/21458 "2020-05-31T19:20:39Z")

</div>

Hey forum, sometimes when I’m working on a particularly graphics oriented sketch it will all of a sudden start to behave very strange with no apparent cause. Has this ever happened to anyone else? I have a sketch that’s…

---

## [Embedding Processing 3 Sketch Into Swing](https://discourse.processing.org/t/embedding-processing-3-sketch-into-swing/21410)

<div class="topic-metadata">

**Author:** [@Xenthera](https://discourse.processing.org/u/Xenthera)\
**Replies:** 3\
**Last updated:** [May 31, 2020, 5:16pm UTC](https://discourse.processing.org/t/embedding-processing-3-sketch-into-swing/21410 "2020-05-31T17:16:20Z")

</div>

Whether I need to do this or not (IE use a gui framework in processing) is not what i’m asking. I have reasons why I would like to do this, from proof of concept all the way to using processing to do visual rendering ins…

---

## [Homework Help! Getting random string from array](https://discourse.processing.org/t/homework-help-getting-random-string-from-array/21420)

<div class="topic-metadata">

**Author:** [@JoshuaStark](https://discourse.processing.org/u/JoshuaStark)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 6:23am UTC](https://discourse.processing.org/t/homework-help-getting-random-string-from-array/21420 "2020-05-30T06:23:14Z")

</div>

I need to get a random greeting from my array using their index and display that random greeting when I press the button and it needs to be done in my greeting function. import controlP5.\*; ControlP5 cp5; controlP5.Bu…

---

## [How to make repeating 3D ball on Y-coordinate?](https://discourse.processing.org/t/how-to-make-repeating-3d-ball-on-y-coordinate/21435)

<div class="topic-metadata">

**Author:** [@processingart](https://discourse.processing.org/u/processingart)\
**Replies:** 4\
**Last updated:** [May 31, 2020, 12:23pm UTC](https://discourse.processing.org/t/how-to-make-repeating-3d-ball-on-y-coordinate/21435 "2020-05-31T12:23:51Z")

</div>

Hello, I was making an animation on processing. Then, I confused about on a problem. I prepare a simple code for you. Also, I think the question can helpfull for beginners. :revolving\_hearts: :smiling\_face\_with\_three\_hea…

---

## [Help with space bar movement of ellipses](https://discourse.processing.org/t/help-with-space-bar-movement-of-ellipses/21428)

<div class="topic-metadata">

**Author:** [@s6277](https://discourse.processing.org/u/s6277)\
**Replies:** 5\
**Last updated:** [May 31, 2020, 11:51am UTC](https://discourse.processing.org/t/help-with-space-bar-movement-of-ellipses/21428 "2020-05-31T11:51:20Z")

</div>

Hi, im new to processing and i was wondering if anyone could help me out me in this task. I want to move an ellipse up and down, and basically every time i press the space bar the previous ellipse stops on its spot and a…

---

## [Processing input microphone](https://discourse.processing.org/t/processing-input-microphone/21440)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 1\
**Last updated:** [May 31, 2020, 11:49am UTC](https://discourse.processing.org/t/processing-input-microphone/21440 "2020-05-31T11:49:08Z")

</div>

Hi! I want to use my microphone (audio input) and then calculate the amplitude (volume) and frequency of my voice (the idea is using this values and then map them). I’ve been researching in minim library but i’m a littl…

---

## [Using JNI to talk to C struct](https://discourse.processing.org/t/using-jni-to-talk-to-c-struct/21381)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 3:18am UTC](https://discourse.processing.org/t/using-jni-to-talk-to-c-struct/21381 "2020-05-31T03:18:16Z")

</div>

I barely understand what a struct is other than sorta like a class in java. I want to use processing and java to provide the input and then get the result back to java. I went to this link and found some code I want to…

---

## [Having proplems with string arrays](https://discourse.processing.org/t/having-proplems-with-string-arrays/21436)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 10:13pm UTC](https://discourse.processing.org/t/having-proplems-with-string-arrays/21436 "2020-05-30T22:13:47Z")

</div>

I set my array to a size 1000000 and initialized its contents with: (int I=0;i\<1000000;i++) mytext\[I\] =" "; so why when I use something like: rec\[I\] = mytext\[I\]; to get a temporary instance of the mytext\[I\] that the …

---

## [About Processing's serial port](https://discourse.processing.org/t/about-processings-serial-port/21432)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [May 30, 2020, 9:26pm UTC](https://discourse.processing.org/t/about-processings-serial-port/21432 "2020-05-30T21:26:30Z")

</div>

Hi there It’s me again so Here is a photo about the issue. . So as you can see (here is the code btw import processing.serial.\*; import controlP5.\*; ///////////////// int interval = 0; int end = 10; String received…

---

## [Compute Shaders in Processing](https://discourse.processing.org/t/compute-shaders-in-processing/21400)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 5\
**Last updated:** [May 30, 2020, 12:16pm UTC](https://discourse.processing.org/t/compute-shaders-in-processing/21400 "2020-05-30T12:16:35Z")

</div>

I’m working on a gradient library for Processing and I am exploring the use of colour spaces other than RGB to use as the basis to interpolate between different colors (to generate the gradient). One of these alternativ…

---

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

---

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

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

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