# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&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 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…

---

## [Using Processing to control strips](https://discourse.processing.org/t/using-processing-to-control-strips/30710)

<div class="topic-metadata">

**Author:** [@dlewin](https://discourse.processing.org/u/dlewin)\
**Replies:** 4\
**Last updated:** [June 17, 2021, 6:30pm UTC](https://discourse.processing.org/t/using-processing-to-control-strips/30710 "2021-06-17T18:30:36Z")

</div>

Hi, I have 12 Dotstar strips from Adafruit https://learn.adafruit.com/adafruit-dotstar-leds?view=all and I’d like to use them as a big matrix to display animated images or animations. Therefore my question is : how to …

---

## [Distance between two objects](https://discourse.processing.org/t/distance-between-two-objects/30751)

<div class="topic-metadata">

**Author:** [@MacJ](https://discourse.processing.org/u/MacJ)\
**Replies:** 3\
**Last updated:** [June 17, 2021, 5:25pm UTC](https://discourse.processing.org/t/distance-between-two-objects/30751 "2021-06-17T17:25:40Z")

</div>

Hello i want to calculate the distance between the centre of Pac-Man and the centre of the treat and If this distance is less than the radius of Pac-Man, we will consider Pac-Man to have “eaten” the treat. When Pac-Man …

---

## [Change size of G4P controls](https://discourse.processing.org/t/change-size-of-g4p-controls/30722)

<div class="topic-metadata">

**Author:** [@gyula](https://discourse.processing.org/u/gyula)\
**Replies:** 14\
**Last updated:** [June 17, 2021, 5:08pm UTC](https://discourse.processing.org/t/change-size-of-g4p-controls/30722 "2021-06-17T17:08:46Z")

</div>

I’d like to be able to rearrange my G4P controls with the mouse. I’ve found an easy way to move them around with moveTo(newX, newY): //G4P library import g4p\_controls.\*; GButton button; GTextField textField; ArrayList\<…

---

## [Make two sketches comunicate](https://discourse.processing.org/t/make-two-sketches-comunicate/30755)

<div class="topic-metadata">

**Author:** [@fatou](https://discourse.processing.org/u/fatou)\
**Replies:** 2\
**Last updated:** [June 17, 2021, 4:53pm UTC](https://discourse.processing.org/t/make-two-sketches-comunicate/30755 "2021-06-17T16:53:33Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello everyone! I´m working on a project that consists of two sketches that communicate. In the first one, you can draw with the mouse, and whe…

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

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