# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=125

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

**Page:** 126

---

## [How to do other sides](https://discourse.processing.org/t/how-to-do-other-sides/30878)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 7:18pm UTC](https://discourse.processing.org/t/how-to-do-other-sides/30878 "2021-06-23T19:18:01Z")

</div>

i cant figure out how to use this code in other directions. this line of code checks if something on its west side is in range and then it presses z. this works but i cant seem to figure out how to do it for its northwe…

---

## [Loading multiple images with a wildcard?](https://discourse.processing.org/t/loading-multiple-images-with-a-wildcard/30866)

<div class="topic-metadata">

**Author:** [@Mat100](https://discourse.processing.org/u/Mat100)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 2:11pm UTC](https://discourse.processing.org/t/loading-multiple-images-with-a-wildcard/30866 "2021-06-23T14:11:14Z")

</div>

Hi, How do I load images numbered 0000 - 0100? I have a series of images "frame-0000.png to “frame-0100.png” If I use this code… for (int i = 0; i \< images.length; i ++ ) { images\[i\] = loadImage( "frame-000" + i …

---

## [Illegal modifier for the local class Notepad; only abstract or final is permitted](https://discourse.processing.org/t/illegal-modifier-for-the-local-class-notepad-only-abstract-or-final-is-permitted/30831)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 6:34am UTC](https://discourse.processing.org/t/illegal-modifier-for-the-local-class-notepad-only-abstract-or-final-is-permitted/30831 "2021-06-23T06:34:33Z")

</div>

why does my code return the error: Illegal modifier for the local class Notepad; only abstract or final is permitted this is the code: \`int x=1; int y=1; color ring1 = color(0,0,0); color ring2 = color(0,0,0); color r…

---

## [Rectangle button](https://discourse.processing.org/t/rectangle-button/30846)

<div class="topic-metadata">

**Author:** [@PARINAZ129](https://discourse.processing.org/u/PARINAZ129)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 1:38am UTC](https://discourse.processing.org/t/rectangle-button/30846 "2021-06-23T01:38:22Z")

</div>

Dear As a beginner, I wanted to create 4 buttons that show different colors when being pressed, however, when I press each of them they don’t work individually. Additionally, I have a serious problem with writing distan…

---

## [How to disable window maximization](https://discourse.processing.org/t/how-to-disable-window-maximization/30713)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 5\
**Last updated:** [June 22, 2021, 8:52pm UTC](https://discourse.processing.org/t/how-to-disable-window-maximization/30713 "2021-06-22T20:52:36Z")

</div>

Hello, Every time I create a new processing sketch it adds a maximize screen button to the running window. I know its possible to just use void draw(){ surface.setSize(500,500); } to keep the window at a constant si…

---

## [Need help for a grid](https://discourse.processing.org/t/need-help-for-a-grid/30851)

<div class="topic-metadata">

**Author:** [@sympathetic](https://discourse.processing.org/u/sympathetic)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 2:20pm UTC](https://discourse.processing.org/t/need-help-for-a-grid/30851 "2021-06-22T14:20:16Z")

</div>

Hi, my english is not that good i hope you understand. So I have a grid with a for cycle and wanted it to map the brightness of an ellipse, but don’t really know how to code it. int a = 20; void setup () { size(800, 8…

---

## [Is "StringBuffer" deprecated?](https://discourse.processing.org/t/is-stringbuffer-deprecated/30844)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 7:05am UTC](https://discourse.processing.org/t/is-stringbuffer-deprecated/30844 "2021-06-22T07:05:24Z")

</div>

Hi everyone, I was watching this video about L-Systems and Daniel used “StringBuffer” in his code, but I can’t find anything about “StringBuffer” in Processing reference. Is this data type deprecated? Thanks!

---

## [Does anyone know K2P3Toolkit?](https://discourse.processing.org/t/does-anyone-know-k2p3toolkit/30547)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 10\
**Last updated:** [June 22, 2021, 1:59am UTC](https://discourse.processing.org/t/does-anyone-know-k2p3toolkit/30547 "2021-06-22T01:59:40Z")

</div>

Hello guys! I was researching the K2P3Toolkit library in win10 recently, and I found that it can only be applied to the openkinect library on the mac. I tried to modify the code using the kinectPV2 library, but it runs a…

---

## [Peasycam 3d Rendering Issue mac](https://discourse.processing.org/t/peasycam-3d-rendering-issue-mac/30823)

<div class="topic-metadata">

**Author:** [@nfranczak](https://discourse.processing.org/u/nfranczak)\
**Replies:** 3\
**Last updated:** [June 21, 2021, 10:52pm UTC](https://discourse.processing.org/t/peasycam-3d-rendering-issue-mac/30823 "2021-06-21T22:52:09Z")

</div>

hi all, i am totally new to processing3 so i apologize in advance if this is a simple issue. i am trying to render the lorenz attractor. I am able to model it in 2D with this code float x = 0.01; float y = 0; float z …

---

## [Continuous Random Line](https://discourse.processing.org/t/continuous-random-line/30377)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 16\
**Last updated:** [June 21, 2021, 5:21pm UTC](https://discourse.processing.org/t/continuous-random-line/30377 "2021-06-21T17:21:57Z")

</div>

Hi there! I would like to create a drawing with a line with random points , something similar to the picture attached. I have found a Code and I am trying but It does not work. Can you please help me with that and te…

---

## [How do I loop the methods in my game?](https://discourse.processing.org/t/how-do-i-loop-the-methods-in-my-game/30821)

<div class="topic-metadata">

**Author:** [@Metin](https://discourse.processing.org/u/Metin)\
**Replies:** 10\
**Last updated:** [June 21, 2021, 1:50pm UTC](https://discourse.processing.org/t/how-do-i-loop-the-methods-in-my-game/30821 "2021-06-21T13:50:12Z")

</div>

Hello guys! I am in need of your help. I am currently working on a game that is similar to Pac-Man without the walls and stuff. Doing it while being a beginner in coding and Processing. You will also see that I am sti…

---

## [Comparing serial Arduino inputs with Strings in if-statements don´t work](https://discourse.processing.org/t/comparing-serial-arduino-inputs-with-strings-in-if-statements-don-t-work/30791)

<div class="topic-metadata">

**Author:** [@Simon44](https://discourse.processing.org/u/Simon44)\
**Replies:** 4\
**Last updated:** [June 21, 2021, 11:21am UTC](https://discourse.processing.org/t/comparing-serial-arduino-inputs-with-strings-in-if-statements-don-t-work/30791 "2021-06-21T11:21:45Z")

</div>

Hello Community, I´m working on my first Arduino + Processing project. The Arduino microcontroller is built as an “roll the dice” game. When I push a button on the board random numbers between 1-6 are rolled and display…

---

## [Check x&y when they are the correct color](https://discourse.processing.org/t/check-x-y-when-they-are-the-correct-color/30830)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 5\
**Last updated:** [June 21, 2021, 11:00am UTC](https://discourse.processing.org/t/check-x-y-when-they-are-the-correct-color/30830 "2021-06-21T11:00:57Z")

</div>

this code prints the word same if the color on coordinates x,y is the same as one of the team colors. how do i check what x and y are at the moment that they are one of the team colors and place a circle there. int x=1;…

---

## [Get resized window size?](https://discourse.processing.org/t/get-resized-window-size/30808)

<div class="topic-metadata">

**Author:** [@Sayochi](https://discourse.processing.org/u/Sayochi)\
**Replies:** 8\
**Last updated:** [June 20, 2021, 8:22pm UTC](https://discourse.processing.org/t/get-resized-window-size/30808 "2021-06-20T20:22:14Z")

</div>

I’m making a 2d noise map generator in processing js. I’m doing this with pixels\[\] in my sketch and when I resize my window it doesn’t behave in the way i want. what I want is creating wider map if window width is increa…

---

## [Split-screen with Green library](https://discourse.processing.org/t/split-screen-with-green-library/30817)

<div class="topic-metadata">

**Author:** [@RatdeMare](https://discourse.processing.org/u/RatdeMare)\
**Replies:** 0\
**Last updated:** [June 20, 2021, 6:05pm UTC](https://discourse.processing.org/t/split-screen-with-green-library/30817 "2021-06-20T18:05:15Z")

</div>

Hi, I’ve been using the Processing’s Green library for about a week now and it’s super to make up my first own little multiplayer spaceship shooter game EXCEPT that I absolutely can’t find how to chose where in the windo…

---

## [Help me please, I can't save my images](https://discourse.processing.org/t/help-me-please-i-cant-save-my-images/30811)

<div class="topic-metadata">

**Author:** [@manu1306](https://discourse.processing.org/u/manu1306)\
**Replies:** 4\
**Last updated:** [June 20, 2021, 4:55pm UTC](https://discourse.processing.org/t/help-me-please-i-cant-save-my-images/30811 "2021-06-20T16:55:11Z")

</div>

Hello I am new to the processing software I found a code on github but I would have liked to add the function of saving the image for each image made by the algorithm can you help me please thank you because I do not can…

---

## [Contour rectangle with an ellipse](https://discourse.processing.org/t/contour-rectangle-with-an-ellipse/30408)

<div class="topic-metadata">

**Author:** [@guidoDimasi](https://discourse.processing.org/u/guidoDimasi)\
**Replies:** 2\
**Last updated:** [June 20, 2021, 1:33pm UTC](https://discourse.processing.org/t/contour-rectangle-with-an-ellipse/30408 "2021-06-20T13:33:05Z")

</div>

Hi, there a simple way to contour a rectangle with an ellipse? i’ve tried vertex, curvedvertex but nothing work well what i’m trying to accomplish is a way to apply some sort of a circle mask to a underlyng object,sha…

---

## [Save and write an odt file](https://discourse.processing.org/t/save-and-write-an-odt-file/30239)

<div class="topic-metadata">

**Author:** [@SimonAbitbol](https://discourse.processing.org/u/SimonAbitbol)\
**Replies:** 8\
**Last updated:** [June 20, 2021, 12:28pm UTC](https://discourse.processing.org/t/save-and-write-an-odt-file/30239 "2021-06-20T12:28:56Z")

</div>

Hi, I would like to write and save a file with open office. Is this feasible ?

---

## [Grid of circles made with images randomly selected](https://discourse.processing.org/t/grid-of-circles-made-with-images-randomly-selected/30802)

<div class="topic-metadata">

**Author:** [@userfc](https://discourse.processing.org/u/userfc)\
**Replies:** 5\
**Last updated:** [June 19, 2021, 10:42pm UTC](https://discourse.processing.org/t/grid-of-circles-made-with-images-randomly-selected/30802 "2021-06-19T22:42:11Z")

</div>

https://editor.p5js.org/rfcanas/sketches/X-c\_v8L9n Hi! I’m starting a little school project and I’m quite a newbie to Processing. I do not know if I can ask in this forum, but our work if or if we should do it in p5.js.…

---

## [Creating an I2C address for a RPi slave](https://discourse.processing.org/t/creating-an-i2c-address-for-a-rpi-slave/30732)

<div class="topic-metadata">

**Author:** [@TheDek](https://discourse.processing.org/u/TheDek)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 9:00pm UTC](https://discourse.processing.org/t/creating-an-i2c-address-for-a-rpi-slave/30732 "2021-06-19T21:00:18Z")

</div>

I am trying to connect two Raspberry Pi’s using an I2C connection. I planned to use one as the slave sending data, and the other as the master. When I do i2cdetect -y 1 on my system the two pi’s can see each other, but n…

---

## [How to improve frequency detection? with mini library, or with a an other library?](https://discourse.processing.org/t/how-to-improve-frequency-detection-with-mini-library-or-with-a-an-other-library/30665)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [June 19, 2021, 5:41pm UTC](https://discourse.processing.org/t/how-to-improve-frequency-detection-with-mini-library-or-with-a-an-other-library/30665 "2021-06-19T17:41:53Z")

</div>

Hello, I work on a machine whose movement is actualized with certain frequencies of a music. You can see an exemple here: I started with the beat detect example from the minim library. But the detection i…

---

## [Trying to target an area of square to apply noise function](https://discourse.processing.org/t/trying-to-target-an-area-of-square-to-apply-noise-function/30786)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 4\
**Last updated:** [June 19, 2021, 4:47pm UTC](https://discourse.processing.org/t/trying-to-target-an-area-of-square-to-apply-noise-function/30786 "2021-06-19T16:47:34Z")

</div>

I am trying to target selected areas of a square. In the code below I have targeted the top edge of the shape. Am I on the right path? It seems like this current iteration should work, but it’s not. Any guidance is mos…

---

## ["Wait until" function](https://discourse.processing.org/t/wait-until-function/30792)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 2:14pm UTC](https://discourse.processing.org/t/wait-until-function/30792 "2021-06-19T14:14:39Z")

</div>

Hi! I developing a game when I realised a “wait until” function would be interesting. Is there any way to do it other than (I want to use delay() with it, since it will be used in thread(""):wink: while(condition == fal…

---

## [Why a= a\* -1 doesn't work here?](https://discourse.processing.org/t/why-a-a-1-doesnt-work-here/30794)

<div class="topic-metadata">

**Author:** [@karenChip](https://discourse.processing.org/u/karenChip)\
**Replies:** 4\
**Last updated:** [June 19, 2021, 12:40pm UTC](https://discourse.processing.org/t/why-a-a-1-doesnt-work-here/30794 "2021-06-19T12:40:38Z")

</div>

Hi, I just made a rectangle which moves along the width and height of the window. I managed to make one but during the process, i encountered a problem that ‘a = a \* -1’ can’t work. I couldn’t figure it out the reason. …

---

## [Keypress in other application](https://discourse.processing.org/t/keypress-in-other-application/30783)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [June 18, 2021, 10:50pm UTC](https://discourse.processing.org/t/keypress-in-other-application/30783 "2021-06-18T22:50:03Z")

</div>

Is there any way to have a program press a key in another application?

---

## [Declare and use array of colors](https://discourse.processing.org/t/declare-and-use-array-of-colors/30785)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 2\
**Last updated:** [June 18, 2021, 10:15pm UTC](https://discourse.processing.org/t/declare-and-use-array-of-colors/30785 "2021-06-18T22:15:01Z")

</div>

I have a list of rgb colors. I want to store them in an array, and while running, choose randomly index. since the fill function require 3 numbers, I wonder how to declare it and use it

---

## [Println() prints incorrect text](https://discourse.processing.org/t/println-prints-incorrect-text/30614)

<div class="topic-metadata">

**Author:** [@lzo](https://discourse.processing.org/u/lzo)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 7:33pm UTC](https://discourse.processing.org/t/println-prints-incorrect-text/30614 "2021-06-18T19:33:14Z")

</div>

Hello all, Running processing 3.5.4 under Window 10, println() prints incorrect text to the console. For example void setup(){ println("XYZ!"); } produces the following output: VWX/ I chose ‘XYZ’ because I noticed t…

---

## [Mouse event unwantedly interferes with button click](https://discourse.processing.org/t/mouse-event-unwantedly-interferes-with-button-click/30664)

<div class="topic-metadata">

**Author:** [@mmuylle](https://discourse.processing.org/u/mmuylle)\
**Replies:** 2\
**Last updated:** [June 18, 2021, 1:09pm UTC](https://discourse.processing.org/t/mouse-event-unwantedly-interferes-with-button-click/30664 "2021-06-18T13:09:13Z")

</div>

Part of a sketch uses a button and a mouse event where the mouse event should only occur within the border of a rectangle. Unfortunately, my code forces the user to click the button twice before taking any action. This i…

---

## [How to stop moving the slider until the key is released](https://discourse.processing.org/t/how-to-stop-moving-the-slider-until-the-key-is-released/30775)

<div class="topic-metadata">

**Author:** [@noobcoderxx](https://discourse.processing.org/u/noobcoderxx)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 8:02am UTC](https://discourse.processing.org/t/how-to-stop-moving-the-slider-until-the-key-is-released/30775 "2021-06-18T08:02:42Z")

</div>

class slider { int y = 0; void draw() { keyPressed(); keyReleased(); //not going out of frame if(y \< 0) y += 25; if(y \> height-25) y -= 25; rect(width-30, y, 10, rectSize); } void k…

---

## [Stop A Timer (10 second timer)](https://discourse.processing.org/t/stop-a-timer-10-second-timer/30764)

<div class="topic-metadata">

**Author:** [@UrguitaLoka](https://discourse.processing.org/u/UrguitaLoka)\
**Replies:** 1\
**Last updated:** [June 17, 2021, 6:36pm UTC](https://discourse.processing.org/t/stop-a-timer-10-second-timer/30764 "2021-06-17T18:36:37Z")

</div>

I am trying to build a Clicks Per Second Test (CPS), but I can’t make the timer stop at the 10-second mark. This would allow gamemode-2 to be activated and calculate the actual clicks per second. My attempt of doing that…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=124)

[Next page](https://discourse.processing.org/c/processing/6.md?page=126)
