# Processing

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

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

**Page:** 63

---

## [controlP5 Slider and Buttons as arrays](https://discourse.processing.org/t/controlp5-slider-and-buttons-as-arrays/39405)

<div class="topic-metadata">

**Author:** [@andy](https://discourse.processing.org/u/andy)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 11:24pm UTC](https://discourse.processing.org/t/controlp5-slider-and-buttons-as-arrays/39405 "2022-10-23T23:24:19Z")

</div>

Using controlP5, I need to create 40 sliders and 40 buttons, I use to use Delphi and could create an array of scrollbars with associated buttons. Can I do the same with processing, if so, can anyone could shed some ligh…

---

## [Sound Library bugs? (lagging, noise/choppy)](https://discourse.processing.org/t/sound-library-bugs-lagging-noise-choppy/4718)

<div class="topic-metadata">

**Author:** [@kumouni](https://discourse.processing.org/u/kumouni)\
**Replies:** 3\
**Last updated:** [October 23, 2022, 11:02am UTC](https://discourse.processing.org/t/sound-library-bugs-lagging-noise-choppy/4718 "2022-10-23T11:02:20Z")

</div>

Hi, I am new to the Sound Library, and I’m experiencing an issue - while playing an mp3 repeatedly, the audio becomes increasingly choppy / play noise(?) as time passes. I would really really appreciate it if you can h…

---

## [Image Heightmap out of recursive circles](https://discourse.processing.org/t/image-heightmap-out-of-recursive-circles/39394)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 5:31pm UTC](https://discourse.processing.org/t/image-heightmap-out-of-recursive-circles/39394 "2022-10-23T17:31:52Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m wondering how to make a P3D heightmap out of the following grid of recursive circles? Is it possible since the circles aren’t a uniform …

---

## [Video Crashes with JNA: could not detach thread](https://discourse.processing.org/t/video-crashes-with-jna-could-not-detach-thread/14889)

<div class="topic-metadata">

**Author:** [@NilsK](https://discourse.processing.org/u/NilsK)\
**Replies:** 11\
**Last updated:** [October 23, 2022, 7:08am UTC](https://discourse.processing.org/t/video-crashes-with-jna-could-not-detach-thread/14889 "2022-10-23T07:08:36Z")

</div>

Hello together, I’ve recently started using the video functions of processing for a uni project. Sadly I seem to run into the mentioned error on all maschines I’m working on. Even with the most basic version on the pla…

---

## [Fullscreen recursion](https://discourse.processing.org/t/fullscreen-recursion/39393)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 2:10am UTC](https://discourse.processing.org/t/fullscreen-recursion/39393 "2022-10-23T02:10:34Z")

</div>

Hi, I am trying to recreate this recursive circular pattern (via Daniel Shiffman’s book “Learning Processing”). How do I get the recursive pattern to fill the frame of the screen? As you can see, my code doesn’t include …

---

## [Borderless Window](https://discourse.processing.org/t/borderless-window/39385)

<div class="topic-metadata">

**Author:** [@5x9x7x2x7x9](https://discourse.processing.org/u/5x9x7x2x7x9)\
**Replies:** 1\
**Last updated:** [October 22, 2022, 6:34pm UTC](https://discourse.processing.org/t/borderless-window/39385 "2022-10-22T18:34:20Z")

</div>

How could I create a borderless window, Like discord?

---

## [How to iterate video.pixels.length for random area of image](https://discourse.processing.org/t/how-to-iterate-video-pixels-length-for-random-area-of-image/39367)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 31\
**Last updated:** [October 21, 2022, 11:43pm UTC](https://discourse.processing.org/t/how-to-iterate-video-pixels-length-for-random-area-of-image/39367 "2022-10-21T23:43:47Z")

</div>

assume the image as following top left, rectangular with 4 columns and 5 rows how do i iterate within for loop for yellow rectangular (1,2,5,6,9,10,13,14) to fetch rgb values if my array is 1D (bellow rectangular) wi…

---

## [Number guessing game](https://discourse.processing.org/t/number-guessing-game/39364)

<div class="topic-metadata">

**Author:** [@OutLite](https://discourse.processing.org/u/OutLite)\
**Replies:** 3\
**Last updated:** [October 21, 2022, 10:34am UTC](https://discourse.processing.org/t/number-guessing-game/39364 "2022-10-21T10:34:54Z")

</div>

I’m new to processing and have an homework assignment to make a number guessing game. I have no idea where to start and i cant find anything online. Can anyone help me?

---

## [How to make circles grow and shrink, but each circle to have a delay?](https://discourse.processing.org/t/how-to-make-circles-grow-and-shrink-but-each-circle-to-have-a-delay/39277)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 4\
**Last updated:** [October 20, 2022, 9:30pm UTC](https://discourse.processing.org/t/how-to-make-circles-grow-and-shrink-but-each-circle-to-have-a-delay/39277 "2022-10-20T21:30:34Z")

</div>

The best I have is this—I don’t know what I am missing. I want for each circle to have a delay or something, because right now all the circles grow at the same time. int size = 300; float theta; void setup() { noFill…

---

## [Javax swing JFrame in the main processing PApplet](https://discourse.processing.org/t/javax-swing-jframe-in-the-main-processing-papplet/16122)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 3\
**Last updated:** [October 21, 2022, 1:45am UTC](https://discourse.processing.org/t/javax-swing-jframe-in-the-main-processing-papplet/16122 "2022-10-21T01:45:30Z")

</div>

Hello i search somewhere the example of the menu in the main processing sketch, but when i want to add something more, like buttons, labels etc. it cant render or display it… how to make it working ? Menu\_bar mp; void s…

---

## [\[JAVA\] Is there no 'scroll function' library?](https://discourse.processing.org/t/java-is-there-no-scroll-function-library/39296)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 11:42pm UTC](https://discourse.processing.org/t/java-is-there-no-scroll-function-library/39296 "2022-10-20T23:42:36Z")

</div>

\[JAVA\] Is there no ‘scroll function’ library? hello. Thanks for clicking on my article. As an example, I upload a picture (program picture). As shown in the figure, you can view or input multiple data through ‘scro…

---

## [Break and for-loops](https://discourse.processing.org/t/break-and-for-loops/39374)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 4\
**Last updated:** [October 20, 2022, 6:03pm UTC](https://discourse.processing.org/t/break-and-for-loops/39374 "2022-10-20T18:03:56Z")

</div>

Just a quick question. I am new to using “break” and I am making a program that checks an integer grid if the number 1 is in an entry. Obviously I don’t want to check the rest of the grid if I have found an entry that is…

---

## [How to read a csv file that is constantly updated](https://discourse.processing.org/t/how-to-read-a-csv-file-that-is-constantly-updated/39372)

<div class="topic-metadata">

**Author:** [@ALCOHOLICBRY](https://discourse.processing.org/u/ALCOHOLICBRY)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 4:32pm UTC](https://discourse.processing.org/t/how-to-read-a-csv-file-that-is-constantly-updated/39372 "2022-10-20T16:32:35Z")

</div>

This is the goal I want to achieve: As soon as I write the text in a csv file and save it, processing will display it instantly. But now, if I save the csv file while running the code, Error will show up. Here is the…

---

## [Scan the QRcode on phone to type words, and the text will appear like marquee on Computer](https://discourse.processing.org/t/scan-the-qrcode-on-phone-to-type-words-and-the-text-will-appear-like-marquee-on-computer/39357)

<div class="topic-metadata">

**Author:** [@ALCOHOLICBRY](https://discourse.processing.org/u/ALCOHOLICBRY)\
**Replies:** 6\
**Last updated:** [October 20, 2022, 10:39am UTC](https://discourse.processing.org/t/scan-the-qrcode-on-phone-to-type-words-and-the-text-will-appear-like-marquee-on-computer/39357 "2022-10-20T10:39:22Z")

</div>

Hello Everyone, This is my first post XD I have some questions that I would like to ask all of you great experts~ Hope to get some directions Here is the Question: (1) How to collect data from difference devices? …

---

## [Background turns black when resizing](https://discourse.processing.org/t/background-turns-black-when-resizing/39359)

<div class="topic-metadata">

**Author:** [@Katsucchi](https://discourse.processing.org/u/Katsucchi)\
**Replies:** 10\
**Last updated:** [October 19, 2022, 10:27pm UTC](https://discourse.processing.org/t/background-turns-black-when-resizing/39359 "2022-10-19T22:27:49Z")

</div>

I have homework where i was supposed to make recreate a drawing from a famous painter. The assignment now is to make the window resizable. I came up with this solution: void setup() { background(255, 255, 255); size…

---

## [Capture doesn't work ! (mac M1)](https://discourse.processing.org/t/capture-doesnt-work-mac-m1/38781)

<div class="topic-metadata">

**Author:** [@ledondodo](https://discourse.processing.org/u/ledondodo)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 6:20pm UTC](https://discourse.processing.org/t/capture-doesnt-work-mac-m1/38781 "2022-10-19T18:20:06Z")

</div>

Hello, I’m trying to use my camera with Capture for the first time and I got some issues… I’m on a MacBook Pro with the M1 chip. I’ve downloaded the “Video Library for Processing 4” developed by The Processing Foundati…

---

## [Problem with live video feed in Processing](https://discourse.processing.org/t/problem-with-live-video-feed-in-processing/39328)

<div class="topic-metadata">

**Author:** [@thinh.pham](https://discourse.processing.org/u/thinh.pham)\
**Replies:** 9\
**Last updated:** [October 19, 2022, 10:15am UTC](https://discourse.processing.org/t/problem-with-live-video-feed-in-processing/39328 "2022-10-19T10:15:14Z")

</div>

Hello, I’m learning Processing and currently having problem with displaying video from webcam using Processing Video library. the console shows this: Processing video library using bundled GStreamer 1.20.3 Scanning GSt…

---

## [How to Iterate over 2D region with 1D pixels array](https://discourse.processing.org/t/how-to-iterate-over-2d-region-with-1d-pixels-array/39336)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 24\
**Last updated:** [October 19, 2022, 5:28am UTC](https://discourse.processing.org/t/how-to-iterate-over-2d-region-with-1d-pixels-array/39336 "2022-10-19T05:28:01Z")

</div>

the snippet code below is doing color tracking and get the average position and draw circle on it, the screen size (640, 480). how to do iteration in one dimensional array in for loop within part of the screen, for examp…

---

## [Using the try{} catch() {}](https://discourse.processing.org/t/using-the-try-catch/26108)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 10\
**Last updated:** [December 16, 2020, 10:24am UTC](https://discourse.processing.org/t/using-the-try-catch/26108 "2020-12-16T10:24:56Z")

</div>

Hi! I recently saw a function try{ } catch() { } I am curently working on a “game of life” project. I use the int\[\]\[\] grid = new int\[w\]\[h\]. It is annoying if I have to use if(i \> 0) { grid\[i-1\]\[j\] } everytime I …

---

## [Exporting to .exe doesnt work](https://discourse.processing.org/t/exporting-to-exe-doesnt-work/39345)

<div class="topic-metadata">

**Author:** [@wudy](https://discourse.processing.org/u/wudy)\
**Replies:** 1\
**Last updated:** [October 18, 2022, 8:32pm UTC](https://discourse.processing.org/t/exporting-to-exe-doesnt-work/39345 "2022-10-18T20:32:18Z")

</div>

Hello! My program works fine, but I can’t get the export to work. I get the windows-amd64 folder, but there is no exe file in there. I have no idea what I’m doing wrong. Any help is appreciated!! I’m using processing 4…

---

## [Background overwrites mouseClicked for bubbles (Fish tank)](https://discourse.processing.org/t/background-overwrites-mouseclicked-for-bubbles-fish-tank/39263)

<div class="topic-metadata">

**Author:** [@LeckereKrokette](https://discourse.processing.org/u/LeckereKrokette)\
**Replies:** 9\
**Last updated:** [October 18, 2022, 5:04pm UTC](https://discourse.processing.org/t/background-overwrites-mouseclicked-for-bubbles-fish-tank/39263 "2022-10-18T17:04:59Z")

</div>

Hello everyone, I’m relatively new to Processing. My first project will be a fish tank. I would like the bubbles to rise from bottom to top when I click my mouse, this should happen every click. At the moment it only wor…

---

## [Generating sin wave output values to serial port](https://discourse.processing.org/t/generating-sin-wave-output-values-to-serial-port/39297)

<div class="topic-metadata">

**Author:** [@andy](https://discourse.processing.org/u/andy)\
**Replies:** 5\
**Last updated:** [October 18, 2022, 4:48pm UTC](https://discourse.processing.org/t/generating-sin-wave-output-values-to-serial-port/39297 "2022-10-18T16:48:36Z")

</div>

Good evening to you all. Forgive me, my first day with processing on windows and looking for some pointers to get me started. I have 8 bit DtoA converters connected to my serial port that take an 8 bit address and 8 bi…

---

## [Fixing video error on new Big Sur macOS with M1 chip](https://discourse.processing.org/t/fixing-video-error-on-new-big-sur-macos-with-m1-chip/29732)

<div class="topic-metadata">

**Author:** [@Matt1](https://discourse.processing.org/u/Matt1)\
**Replies:** 3\
**Last updated:** [October 18, 2022, 1:47pm UTC](https://discourse.processing.org/t/fixing-video-error-on-new-big-sur-macos-with-m1-chip/29732 "2022-10-18T13:47:55Z")

</div>

This video shows how to fix the error associated with processing video library

---

## [Save and print (on paper) multiple images](https://discourse.processing.org/t/save-and-print-on-paper-multiple-images/39333)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 2\
**Last updated:** [October 18, 2022, 9:40am UTC](https://discourse.processing.org/t/save-and-print-on-paper-multiple-images/39333 "2022-10-18T09:40:22Z")

</div>

Hi, Using this tutorial, I’m able to print images on paper ones they’re saved. What it does now though, is overwrite the previous existing image everytime. I would like to save all the images so I’m using this code as…

---

## [Clean up my code & retry button](https://discourse.processing.org/t/clean-up-my-code-retry-button/39321)

<div class="topic-metadata">

**Author:** [@ArcJAVA](https://discourse.processing.org/u/ArcJAVA)\
**Replies:** 4\
**Last updated:** [October 18, 2022, 5:27am UTC](https://discourse.processing.org/t/clean-up-my-code-retry-button/39321 "2022-10-18T05:27:01Z")

</div>

Hi, i need to make a game where i pick up treasure. but i have quite a lot of unnecesery or dubble code. so i was wondering if someone could help me with making my code less complicated and easier for others to copy if i…

---

## [Can I fill an array by using a for loop?](https://discourse.processing.org/t/can-i-fill-an-array-by-using-a-for-loop/39330)

<div class="topic-metadata">

**Author:** [@ExplodingWhale](https://discourse.processing.org/u/ExplodingWhale)\
**Replies:** 3\
**Last updated:** [October 18, 2022, 12:47am UTC](https://discourse.processing.org/t/can-i-fill-an-array-by-using-a-for-loop/39330 "2022-10-18T00:47:03Z")

</div>

If i want to store values of integers from 0 to 1000 with increments of 20, what would be the easiest way to put those values into the array? And what about a 2D-array? there has to be an easier way than this, right?: …

---

## [What happened to the primitive "short"?](https://discourse.processing.org/t/what-happened-to-the-primitive-short/39332)

<div class="topic-metadata">

**Author:** [@echamp](https://discourse.processing.org/u/echamp)\
**Replies:** 1\
**Last updated:** [October 18, 2022, 12:39am UTC](https://discourse.processing.org/t/what-happened-to-the-primitive-short/39332 "2022-10-18T00:39:31Z")

</div>

Just curious why the primitive “short” isn’t being shown in any of the references, but does work in the Processing editor? Noticed it is documented in the Learning Processing book. Thank in advance!

---

## [If I have a grid of 50x50 rectangles how can I randomly place an image in only a few of them?](https://discourse.processing.org/t/if-i-have-a-grid-of-50x50-rectangles-how-can-i-randomly-place-an-image-in-only-a-few-of-them/39326)

<div class="topic-metadata">

**Author:** [@ExplodingWhale](https://discourse.processing.org/u/ExplodingWhale)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 9:44pm UTC](https://discourse.processing.org/t/if-i-have-a-grid-of-50x50-rectangles-how-can-i-randomly-place-an-image-in-only-a-few-of-them/39326 "2022-10-17T21:44:21Z")

</div>

I could use a for loop for the amount of images but how do i make the random function match the exact location of the rectangles?

---

## [Displaying part of an image causes flipping a blurs](https://discourse.processing.org/t/displaying-part-of-an-image-causes-flipping-a-blurs/39232)

<div class="topic-metadata">

**Author:** [@Exister](https://discourse.processing.org/u/Exister)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 8:52pm UTC](https://discourse.processing.org/t/displaying-part-of-an-image-causes-flipping-a-blurs/39232 "2022-10-17T20:52:52Z")

</div>

Hello! I was trying to set up the basis for a game engine and wanted to load a sprite sheet that would then display only parts of itself at a time. Did some research and found this which looked to have exactly what I wan…

---

## [How do I add collision between player projectile and enemies?](https://discourse.processing.org/t/how-do-i-add-collision-between-player-projectile-and-enemies/39238)

<div class="topic-metadata">

**Author:** [@Marfmamow](https://discourse.processing.org/u/Marfmamow)\
**Replies:** 10\
**Last updated:** [October 17, 2022, 4:21pm UTC](https://discourse.processing.org/t/how-do-i-add-collision-between-player-projectile-and-enemies/39238 "2022-10-17T16:21:08Z")

</div>

I’m making a 2d tile based game, and I have implemented collision between the player and wall tiles. I did this by placing each tile in an array, and then giving the player’s position an index in the array However, thi…

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

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