# Beginners

**URL:** https://discourse.processing.org/c/processing/processing-beginners/14.md?page=18

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

**Page:** 19

---

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

---

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

---

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

---

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

---

## [Formula does work on paper however not in my very simple program](https://discourse.processing.org/t/formula-does-work-on-paper-however-not-in-my-very-simple-program/30141)

<div class="topic-metadata">

**Author:** [@Nino](https://discourse.processing.org/u/Nino)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 8:28pm UTC](https://discourse.processing.org/t/formula-does-work-on-paper-however-not-in-my-very-simple-program/30141 "2021-06-10T20:28:00Z")

</div>

I’m running into an issue where it seems like processing is wrongly calculating my formulas. The idea is simple I draw a line and I want to draw n number of points on that line, evenly distributed. So I came up with a …

---

## [Fix NullPointerException error](https://discourse.processing.org/t/fix-nullpointerexception-error/30632)

<div class="topic-metadata">

**Author:** [@Chencho](https://discourse.processing.org/u/Chencho)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 7:21pm UTC](https://discourse.processing.org/t/fix-nullpointerexception-error/30632 "2021-06-10T19:21:13Z")

</div>

I have an error in my code and I’m not sure how to fix it.I’m relatively new to Arrays. I want to sort the numbers given in Arreglo into two other arrays, one for positive numbers and the other for negative. Error is o…

---

## [I don't even know how to ask for help with this i must just be missing something obvious](https://discourse.processing.org/t/i-dont-even-know-how-to-ask-for-help-with-this-i-must-just-be-missing-something-obvious/30604)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 7\
**Last updated:** [June 9, 2021, 5:27pm UTC](https://discourse.processing.org/t/i-dont-even-know-how-to-ask-for-help-with-this-i-must-just-be-missing-something-obvious/30604 "2021-06-09T17:27:47Z")

</div>

???

---

## [I don't find the saveFrame file (set its path)](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 6\
**Last updated:** [June 8, 2021, 9:01pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579 "2021-06-08T21:01:12Z")

</div>

I was looking for a way to save the image, so I found this sample code. I run it, but no file were saved on my hard drive. What am I missing? int x = 0; void draw() { background(204); if (x \< 100) { line(x, 0, x…

---

## [Squares and circles (grid) (recursion vs. nested for-loops)](https://discourse.processing.org/t/squares-and-circles-grid-recursion-vs-nested-for-loops/30433)

<div class="topic-metadata">

**Author:** [@goner88](https://discourse.processing.org/u/goner88)\
**Replies:** 15\
**Last updated:** [June 2, 2021, 10:43pm UTC](https://discourse.processing.org/t/squares-and-circles-grid-recursion-vs-nested-for-loops/30433 "2021-06-02T22:43:52Z")

</div>

Hey I want to create a window with squares that have circles inside of them on the whole window. anyone has done this before ? Should I use a recursive function here? Appreciate the help and thank you

---

## [Export large scale print file + web file](https://discourse.processing.org/t/export-large-scale-print-file-web-file/30380)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 11\
**Last updated:** [June 1, 2021, 4:05pm UTC](https://discourse.processing.org/t/export-large-scale-print-file-web-file/30380 "2021-06-01T16:05:01Z")

</div>

Hey processing community, is it possible to export 2 files at the same time for web and print? Thanks a lot in advance,

---

## [Difference between typography and strings?](https://discourse.processing.org/t/difference-between-typography-and-strings/30332)

<div class="topic-metadata">

**Author:** [@Dun](https://discourse.processing.org/u/Dun)\
**Replies:** 3\
**Last updated:** [May 28, 2021, 1:43pm UTC](https://discourse.processing.org/t/difference-between-typography-and-strings/30332 "2021-05-28T13:43:43Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m new to Processing and coding in general. What is the difference between strings generated class of text versus the typography text() fea…

---

## [Animation layers](https://discourse.processing.org/t/animation-layers/30247)

<div class="topic-metadata">

**Author:** [@WUW](https://discourse.processing.org/u/WUW)\
**Replies:** 6\
**Last updated:** [May 24, 2021, 5:24pm UTC](https://discourse.processing.org/t/animation-layers/30247 "2021-05-24T17:24:39Z")

</div>

Hi, I have this very simple animation. Rects drawing one by one on the sketch window. I want at the sametine a line to animate from left to right. Without leaving its trail. I tried animate translate, pop and push, backg…

---

## [Missing colors on openprocessing.org](https://discourse.processing.org/t/missing-colors-on-openprocessing-org/30153)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 3\
**Last updated:** [May 22, 2021, 1:42am UTC](https://discourse.processing.org/t/missing-colors-on-openprocessing-org/30153 "2021-05-22T01:42:19Z")

</div>

Hi please check https://openprocessing.org/sketch/1197450 Colors are missing, why? Is something missing on openprocessing.org? Code works fine on my machine. I am sure it is something silly, but I don’t see what. …

---

## [Calling functions with variables](https://discourse.processing.org/t/calling-functions-with-variables/30001)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 7\
**Last updated:** [May 16, 2021, 12:08pm UTC](https://discourse.processing.org/t/calling-functions-with-variables/30001 "2021-05-16T12:08:27Z")

</div>

Say I had 3 functions; scene1(), scene2(), scene3(), and wanted to switch between these functions by changing an int variable ‘scene’. Is there any possible solution to this without the use of if/switch statements?

---

## [Bouncing line with for loops](https://discourse.processing.org/t/bouncing-line-with-for-loops/29972)

<div class="topic-metadata">

**Author:** [@Bromo](https://discourse.processing.org/u/Bromo)\
**Replies:** 15\
**Last updated:** [May 10, 2021, 1:06am UTC](https://discourse.processing.org/t/bouncing-line-with-for-loops/29972 "2021-05-10T01:06:44Z")

</div>

Hi, I’m currently trying to make a program that draws a line moving across the screen, if it reaches the edge ideally it’ll move in the opposite direction. When I run the program it seems to be stuck on the far left side…

---

## [While loop is not working in processing](https://discourse.processing.org/t/while-loop-is-not-working-in-processing/29954)

<div class="topic-metadata">

**Author:** [@nothingelse](https://discourse.processing.org/u/nothingelse)\
**Replies:** 8\
**Last updated:** [May 8, 2021, 6:09pm UTC](https://discourse.processing.org/t/while-loop-is-not-working-in-processing/29954 "2021-05-08T18:09:32Z")

</div>

I am beginner in processing, just started few days ago. I am learning while loop now but when i run the program, while loop does not seem to be working. I tried so much but still don’t know what problem is occuring floa…

---

## [Slow down object's speed](https://discourse.processing.org/t/slow-down-objects-speed/29937)

<div class="topic-metadata">

**Author:** [@akira](https://discourse.processing.org/u/akira)\
**Replies:** 11\
**Last updated:** [May 8, 2021, 7:13am UTC](https://discourse.processing.org/t/slow-down-objects-speed/29937 "2021-05-08T07:13:38Z")

</div>

Hello! I’m a bit stuck with my conditional statement for this basic program I’m working on. Two objects at different y coordinates start moving towards the width of the screen at varying speeds. When they approach each o…

---

## [Function parameters causing unwanted animation](https://discourse.processing.org/t/function-parameters-causing-unwanted-animation/29940)

<div class="topic-metadata">

**Author:** [@theta](https://discourse.processing.org/u/theta)\
**Replies:** 1\
**Last updated:** [May 7, 2021, 2:38pm UTC](https://discourse.processing.org/t/function-parameters-causing-unwanted-animation/29940 "2021-05-07T14:38:48Z")

</div>

Hey everyone. I started exploring functions with parameters and can’t for the life of me figure out why the example below is animating. Waves w1 = new Waves(); float amp = 100; float phase = 1; float freq = 100; float …

---

## [Rotating a 2D PImage within a 3D P3D environment?](https://discourse.processing.org/t/rotating-a-2d-pimage-within-a-3d-p3d-environment/29874)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 13\
**Last updated:** [May 6, 2021, 1:05pm UTC](https://discourse.processing.org/t/rotating-a-2d-pimage-within-a-3d-p3d-environment/29874 "2021-05-06T13:05:28Z")

</div>

Hi. I’m wondering how I could get the blue square shown floating within the image to instead lay horrizontally across the center of the skybox sphere rather than vertically as it is now. Any help?

---

## [Can We Do This Together? (Two robots in a bar)](https://discourse.processing.org/t/can-we-do-this-together-two-robots-in-a-bar/29852)

<div class="topic-metadata">

**Author:** [@rst96](https://discourse.processing.org/u/rst96)\
**Replies:** 4\
**Last updated:** [May 5, 2021, 9:34pm UTC](https://discourse.processing.org/t/can-we-do-this-together-two-robots-in-a-bar/29852 "2021-05-05T21:34:42Z")

</div>

I’m newbie on processing 3. I decided create a scene with experienced people (so you). Can we do this task together step-by-step? If you help me, I will glad. In 3D animation. Two guys drink coffee 1 table, 2 chairs, 2…

---

## [Some help with rendering a 2D onject and a 3D object at the same time in P3D?](https://discourse.processing.org/t/some-help-with-rendering-a-2d-onject-and-a-3d-object-at-the-same-time-in-p3d/29880)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 2:48pm UTC](https://discourse.processing.org/t/some-help-with-rendering-a-2d-onject-and-a-3d-object-at-the-same-time-in-p3d/29880 "2021-05-05T14:48:47Z")

</div>

Hi. So I have a scene rendered, but I can’t seem to have the sea and the arwing ship model rendered at the same time? The arwing model (on the right) is a 3D .obj model exported from Blender. The sea is a 2D PImage (on …

---

## [Adding a border to the window in a P3D environment?](https://discourse.processing.org/t/adding-a-border-to-the-window-in-a-p3d-environment/29853)

<div class="topic-metadata">

**Author:** [@Chubbulus](https://discourse.processing.org/u/Chubbulus)\
**Replies:** 2\
**Last updated:** [May 4, 2021, 6:53pm UTC](https://discourse.processing.org/t/adding-a-border-to-the-window-in-a-p3d-environment/29853 "2021-05-04T18:53:19Z")

</div>

Hi. How would I apply a border to the window when I have a P3D environment? What I mean is that I want the object that is floating below my ship model to instead be locked to the edges of the screen.as a border. I’m us…

---

## [Looking for advice on "which" Processing to use](https://discourse.processing.org/t/looking-for-advice-on-which-processing-to-use/29811)

<div class="topic-metadata">

**Author:** [@bibbinator](https://discourse.processing.org/u/bibbinator)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 5:39pm UTC](https://discourse.processing.org/t/looking-for-advice-on-which-processing-to-use/29811 "2021-05-03T17:39:41Z")

</div>

I’m designing an art installation using Raspberry Pi 4 and thousands of LEDs controlled by FaceCandy (using Open Pixel Control protocol). I’m ok using any language and any environment for the Pi and I’m looking for guida…

---

## [My project for mobile robot navigation, need help!](https://discourse.processing.org/t/my-project-for-mobile-robot-navigation-need-help/29810)

<div class="topic-metadata">

**Author:** [@abdult19](https://discourse.processing.org/u/abdult19)\
**Replies:** 3\
**Last updated:** [May 3, 2021, 4:50pm UTC](https://discourse.processing.org/t/my-project-for-mobile-robot-navigation-need-help/29810 "2021-05-03T16:50:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I need serious help with coding, I have been told by my supervisor to use processing as ros doesn’t work for me. I can’t find any examples of my…

---

## [Need Help to complete my homework :)](https://discourse.processing.org/t/need-help-to-complete-my-homework/29738)

<div class="topic-metadata">

**Author:** [@Marcellgz](https://discourse.processing.org/u/Marcellgz)\
**Replies:** 12\
**Last updated:** [May 3, 2021, 2:00am UTC](https://discourse.processing.org/t/need-help-to-complete-my-homework/29738 "2021-05-03T02:00:27Z")

</div>

Hello, i really need help… i have a task from my teacher to create this thing… but i have no clue… me and my friends are so very confused… void setup() { size(200,200); background(255); } void draw() { for (int…

---

## [Use Directory of Executable to find File Paths](https://discourse.processing.org/t/use-directory-of-executable-to-find-file-paths/29790)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 1\
**Last updated:** [May 2, 2021, 10:04pm UTC](https://discourse.processing.org/t/use-directory-of-executable-to-find-file-paths/29790 "2021-05-02T22:04:44Z")

</div>

Howdy! I’m trying to do something fairly simple (I think), but can’t find a solution. I’ve made a game with Processing, exported it, and have moved it to a new directory outside of anything in the Processing folder. I ru…

---

## [What is the code to generate a random and automatic color in the background?](https://discourse.processing.org/t/what-is-the-code-to-generate-a-random-and-automatic-color-in-the-background/29544)

<div class="topic-metadata">

**Author:** [@Marga](https://discourse.processing.org/u/Marga)\
**Replies:** 10\
**Last updated:** [April 28, 2021, 3:39pm UTC](https://discourse.processing.org/t/what-is-the-code-to-generate-a-random-and-automatic-color-in-the-background/29544 "2021-04-28T15:39:22Z")

</div>

Hello, I’m new to processing, and I would like to know if anyone can help me solve a question about how I change my background with random colors. That is, every time I clicked on play and became active, the color would …

---

## [Double changes numbers apperently?](https://discourse.processing.org/t/double-changes-numbers-apperently/29582)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 8:29am UTC](https://discourse.processing.org/t/double-changes-numbers-apperently/29582 "2021-04-27T08:29:12Z")

</div>

So I am currently making a mandelbrot programm and I noticed it kind of doesn’t zoom where I want. After a long search I found the source of the problem: When giving it the place to zoom in it chnges the number when con…

---

## [Why am I Accessing Private Variables](https://discourse.processing.org/t/why-am-i-accessing-private-variables/29607)

<div class="topic-metadata">

**Author:** [@emersonbastos](https://discourse.processing.org/u/emersonbastos)\
**Replies:** 1\
**Last updated:** [April 24, 2021, 5:58pm UTC](https://discourse.processing.org/t/why-am-i-accessing-private-variables/29607 "2021-04-24T17:58:21Z")

</div>

Hi, I’m learning to program with Processing and a question came to me ! I created a class called Estrela (Star) and I created some private attributes in it, but I’m noticing that I can access these private variables fr…

[Previous page](https://discourse.processing.org/c/processing/processing-beginners/14.md?page=17)

[Next page](https://discourse.processing.org/c/processing/processing-beginners/14.md?page=19)
