# Latest

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

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

**Page:** 108

---

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

---

## [Realtime image processing using thread(); or class extending thread](https://discourse.processing.org/t/realtime-image-processing-using-thread-or-class-extending-thread/30304)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 37\
**Last updated:** [October 21, 2022, 1:01am UTC](https://discourse.processing.org/t/realtime-image-processing-using-thread-or-class-extending-thread/30304 "2022-10-21T01:01:30Z")

</div>

hi forum i was able to do realtime image processing (color recognition )streamed from laptop camera but not succeed to use thread(); or class extending thread. need for help. thank you in advance. bellow is code without…

---

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

---

## [P5JS coding using PORTRAIT](https://discourse.processing.org/t/p5js-coding-using-portrait/39373)

<div class="topic-metadata">

**Author:** [@DaBoyez](https://discourse.processing.org/u/DaBoyez)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 6:05pm UTC](https://discourse.processing.org/t/p5js-coding-using-portrait/39373 "2022-10-20T18:05:13Z")

</div>

I’m trying to create a mobile game (one accessible on the internet), and am trying to code in a portrait orientation lock, so one can turn a device on its side and the screen remains the same instead of trying to awkward…

---

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

---

## [List of compatible libraries?](https://discourse.processing.org/t/list-of-compatible-libraries/39347)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 3\
**Last updated:** [October 20, 2022, 4:50pm UTC](https://discourse.processing.org/t/list-of-compatible-libraries/39347 "2022-10-20T16:50:03Z")

</div>

Is there a list of libraries that are compatible with Android mode? I was hoping to use G4P to develop the GUI and Pd4P3 to call libpd (the Pure Data audio engine). But after searching this forum, I see that G4P doesn’t …

---

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

---

## [Meta get Attribute problem (solved)](https://discourse.processing.org/t/meta-get-attribute-problem-solved/39355)

<div class="topic-metadata">

**Author:** [@Tasp](https://discourse.processing.org/u/Tasp)\
**Replies:** 0\
**Last updated:** [October 19, 2022, 8:19am UTC](https://discourse.processing.org/t/meta-get-attribute-problem-solved/39355 "2022-10-19T08:19:18Z")

</div>

Edit: problem was the pixel density setting set to 3 or something creating a canvas being too large. Hi there. I’m creating right now a presentation to be run on iPads and used then in a Salesforce-Veeva system, and I’…

---

## [Processing4 dark theme](https://discourse.processing.org/t/processing4-dark-theme/32462)

<div class="topic-metadata">

**Author:** [@ChildhoodAndy](https://discourse.processing.org/u/ChildhoodAndy)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 10:49am UTC](https://discourse.processing.org/t/processing4-dark-theme/32462 "2022-10-19T10:49:40Z")

</div>

I released a github repo: GitHub - xiaocai-laoniao/DarkProcessingTheme\_4.0: A dark theme for Processing 4, we can change the default blue header bar and white code theme to whole dark theme now. Enjoy!:slight\_smile:

---

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

---

## [Deprecated pi.processing.org -- why is it there?](https://discourse.processing.org/t/deprecated-pi-processing-org-why-is-it-there/38938)

<div class="topic-metadata">

**Author:** [@ubuntu-in-a-nutshell](https://discourse.processing.org/u/ubuntu-in-a-nutshell)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 4:32am UTC](https://discourse.processing.org/t/deprecated-pi-processing-org-why-is-it-there/38938 "2022-10-19T04:32:43Z")

</div>

A while back the website https://pi.processing.org/ was the website for RPI releases, now you can find that in the download page. However, I still see references to this site at the following sites. Processing Foundati…

---

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

---

## [Weird jump using \`textAscent() and \`textDescent()\`](https://discourse.processing.org/t/weird-jump-using-textascent-and-textdescent/39308)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 10:37pm UTC](https://discourse.processing.org/t/weird-jump-using-textascent-and-textdescent/39308 "2022-10-17T22:37:38Z")

</div>

From the example of textAscent() in reference I built a littel test. Actually i was going to ask a different question, but then I find a wierd behavior that I can not understand: There is a jump in values of textAscent …

---

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

---

## [ImageData scaling/size issue](https://discourse.processing.org/t/imagedata-scaling-size-issue/39314)

<div class="topic-metadata">

**Author:** [@Pieter](https://discourse.processing.org/u/Pieter)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 6:24pm UTC](https://discourse.processing.org/t/imagedata-scaling-size-issue/39314 "2022-10-17T18:24:10Z")

</div>

I’m trying to make a simple pixel drawing utility, this is easy enough to emulate using rect() calls, but I want to edit the pixel data directly. The problem seems to be that for some reason my calls to drawingContext.pu…

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

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