# Beginners

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

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

**Page:** 34

---

## [String is not null, but it behaves as if it were](https://discourse.processing.org/t/string-is-not-null-but-it-behaves-as-if-it-were/13840)

<div class="topic-metadata">

**Author:** [@AngelRF](https://discourse.processing.org/u/AngelRF)\
**Replies:** 8\
**Last updated:** [September 6, 2019, 2:49pm UTC](https://discourse.processing.org/t/string-is-not-null-but-it-behaves-as-if-it-were/13840 "2019-09-06T14:49:39Z")

</div>

Hi, i’m trying to read a ASCII object (.obj) file and i’m having troubles. In the file, there are some empty lines with only \\r\\n (CRLF) line breaks, for example, line 1 and 3 (the 1st line is 0). When I do things with…

---

## [Circle fractal not showing largest starting circles](https://discourse.processing.org/t/circle-fractal-not-showing-largest-starting-circles/13787)

<div class="topic-metadata">

**Author:** [@c0d3d](https://discourse.processing.org/u/c0d3d)\
**Replies:** 3\
**Last updated:** [September 4, 2019, 5:29am UTC](https://discourse.processing.org/t/circle-fractal-not-showing-largest-starting-circles/13787 "2019-09-04T05:29:49Z")

</div>

Hello, I am currently trying to make a simple circle fractal. I for some reason am not getting the largest circles/the starting ones. Here is my code: void setup() { size(640,360); } void draw() { background(255); …

---

## [Classes initialising other classes](https://discourse.processing.org/t/classes-initialising-other-classes/13768)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [September 2, 2019, 4:51pm UTC](https://discourse.processing.org/t/classes-initialising-other-classes/13768 "2019-09-02T16:51:14Z")

</div>

Hello! This is more a Java question than processing but I’m hoping the processing folks will be more merciful that stack overflow :slight\_smile: I am trying to translate this gravity simulator from python to processing. …

---

## [Is it possible higher precision than double?](https://discourse.processing.org/t/is-it-possible-higher-precision-than-double/13764)

<div class="topic-metadata">

**Author:** [@AngelRF](https://discourse.processing.org/u/AngelRF)\
**Replies:** 4\
**Last updated:** [September 2, 2019, 2:40pm UTC](https://discourse.processing.org/t/is-it-possible-higher-precision-than-double/13764 "2019-09-02T14:40:40Z")

</div>

I’m doing a Numeric Differentiation calculating program, and the second and third derivative get waay too noisy, according to wikipedia, this is caused by floating-point arithmetic rounding. https://en.wikipedia.org/wiki…

---

## [Help on code (drawing circle mathematically)](https://discourse.processing.org/t/help-on-code-drawing-circle-mathematically/13759)

<div class="topic-metadata">

**Author:** [@sbiju72](https://discourse.processing.org/u/sbiju72)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 2:06pm UTC](https://discourse.processing.org/t/help-on-code-drawing-circle-mathematically/13759 "2019-09-02T14:06:09Z")

</div>

Hi I’m failing to see why the default circle and the circle mathematically drawn doesn’t match. Any help is appreciated. Code below: size(400,400); int cx = 200, cy = 200, cr = 100, xdis, ydis; stroke(255,0,0); circl…

---

## [Error with OR in MacBook](https://discourse.processing.org/t/error-with-or-in-macbook/13717)

<div class="topic-metadata">

**Author:** [@Angie](https://discourse.processing.org/u/Angie)\
**Replies:** 2\
**Last updated:** [August 31, 2019, 10:03am UTC](https://discourse.processing.org/t/error-with-or-in-macbook/13717 "2019-08-31T10:03:11Z")

</div>

Good morning, I’m beginning using Processing and I’ve problems writing down the OR simbol. Processing gives my ERROR when I write it in my MacBook. I’m using || (alt + 1) but also I’ve tried to copy+paste directly of a …

---

## [\[Solved\] Drawing lots of circles](https://discourse.processing.org/t/solved-drawing-lots-of-circles/13697)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 3\
**Last updated:** [August 30, 2019, 6:56am UTC](https://discourse.processing.org/t/solved-drawing-lots-of-circles/13697 "2019-08-30T06:56:05Z")

</div>

Hi, I am new to Processing and still have lots to learn and there is a ton I don’t understand. I watched the Youtube Coding Train video on For Loops and While Loops. In the video he uses a while loop to draw lot’s of l…

---

## [It's possible to load 3d models?](https://discourse.processing.org/t/its-possible-to-load-3d-models/13557)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [August 28, 2019, 9:53pm UTC](https://discourse.processing.org/t/its-possible-to-load-3d-models/13557 "2019-08-28T21:53:03Z")

</div>

Hi there!! I couldn’t find the answer to this simply question :sweat\_smile: Want to try the 3D mode, but first want to know if I can load 3D models (found .3DS free models). Thanks !! :hugs:

---

## [Custom Distribution of Random Number](https://discourse.processing.org/t/custom-distribution-of-random-number/13628)

<div class="topic-metadata">

**Author:** [@tylerowens](https://discourse.processing.org/u/tylerowens)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 9:14pm UTC](https://discourse.processing.org/t/custom-distribution-of-random-number/13628 "2019-08-26T21:14:43Z")

</div>

Hello all, I am currently in the introduction chapter of the nature of code. I am making a program that generates a random number by comparing two random numbers. I am able to make sense of everything besides what random…

---

## [How to run pictures in alphabetical order](https://discourse.processing.org/t/how-to-run-pictures-in-alphabetical-order/13544)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 2\
**Last updated:** [August 23, 2019, 9:43am UTC](https://discourse.processing.org/t/how-to-run-pictures-in-alphabetical-order/13544 "2019-08-23T09:43:11Z")

</div>

In for loop how to run pictures in alphabetical order not random… For creating animation like animal walking… Can any one help?

---

## [Use of saveStrings](https://discourse.processing.org/t/use-of-savestrings/13482)

<div class="topic-metadata">

**Author:** [@BeginnerForever](https://discourse.processing.org/u/BeginnerForever)\
**Replies:** 5\
**Last updated:** [August 20, 2019, 4:20pm UTC](https://discourse.processing.org/t/use-of-savestrings/13482 "2019-08-20T16:20:09Z")

</div>

Hi ! I’m very new to processing and java, and for one of my first programs i need to create data file in .txt to store some variables… but when i use the syntax below, in the .txt file i have this : -2097152 red … i …

---

## [I am not sure why i am getting "unexpected token: void" any help with this would be greatly appreaciated](https://discourse.processing.org/t/i-am-not-sure-why-i-am-getting-unexpected-token-void-any-help-with-this-would-be-greatly-appreaciated/13462)

<div class="topic-metadata">

**Author:** [@Heatwave87](https://discourse.processing.org/u/Heatwave87)\
**Replies:** 2\
**Last updated:** [August 19, 2019, 3:24pm UTC](https://discourse.processing.org/t/i-am-not-sure-why-i-am-getting-unexpected-token-void-any-help-with-this-would-be-greatly-appreaciated/13462 "2019-08-19T15:24:51Z")

</div>

I believe I have done this code correctly bet I am new to processing so it might be wrong the code is here if anyone can help. I am trying to make a dog face and the background changes to a random colour when I click. c…

---

## [Import java.net.URI doesn't work](https://discourse.processing.org/t/import-java-net-uri-doesnt-work/13425)

<div class="topic-metadata">

**Author:** [@devlogerio](https://discourse.processing.org/u/devlogerio)\
**Replies:** 2\
**Last updated:** [August 17, 2019, 10:41am UTC](https://discourse.processing.org/t/import-java-net-uri-doesnt-work/13425 "2019-08-17T10:41:24Z")

</div>

I am going to make a URI using java.net.URI, it gives me the following error Unhandled exception type URISyntaxException, Im wondering why (import java.net.URI) is not working! Can anyone suggest anything? Error: Unha…

---

## [Trying to use save() to save an image to absolute path folder](https://discourse.processing.org/t/trying-to-use-save-to-save-an-image-to-absolute-path-folder/13293)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 16\
**Last updated:** [August 16, 2019, 1:29pm UTC](https://discourse.processing.org/t/trying-to-use-save-to-save-an-image-to-absolute-path-folder/13293 "2019-08-16T13:29:29Z")

</div>

save(“C:/myfolder/image.png”); It doesn’t get written to the C:/myfolder directory. After searching C:/ it appears in Windows recent folder save() description says it is saved by default in the sketch folder. If i do…

---

## [Need help with very simple animation new to processing](https://discourse.processing.org/t/need-help-with-very-simple-animation-new-to-processing/13328)

<div class="topic-metadata">

**Author:** [@Heatwave87](https://discourse.processing.org/u/Heatwave87)\
**Replies:** 3\
**Last updated:** [August 14, 2019, 1:09pm UTC](https://discourse.processing.org/t/need-help-with-very-simple-animation-new-to-processing/13328 "2019-08-14T13:09:21Z")

</div>

hi I’m really new to processing and I’m just wondering how I could make something like a rectangle for example disappear when I click and come back when I stop holding the click if anyone could help me with this I would…

---

## [Reference to default canvas/screen](https://discourse.processing.org/t/reference-to-default-canvas-screen/13351)

<div class="topic-metadata">

**Author:** [@danne](https://discourse.processing.org/u/danne)\
**Replies:** 1\
**Last updated:** [August 13, 2019, 9:19am UTC](https://discourse.processing.org/t/reference-to-default-canvas-screen/13351 "2019-08-13T09:19:48Z")

</div>

Hello! I want to send the default canvas/screen to a class. I can’t remember how to make a reference to the default canvas :confused: help please :wink: / Danne

---

## [Multiple classes eclipse with processing](https://discourse.processing.org/t/multiple-classes-eclipse-with-processing/1142)

<div class="topic-metadata">

**Author:** [@zejton](https://discourse.processing.org/u/zejton)\
**Replies:** 6\
**Last updated:** [August 13, 2019, 6:31am UTC](https://discourse.processing.org/t/multiple-classes-eclipse-with-processing/1142 "2019-08-13T06:31:31Z")

</div>

Hey! So I am new to processing and would love some help with how to get multiple classes working in eclipse with processing this is my code: This is one class “mouse”: import processing.core.PApplet; public class Mo…

---

## [Atan function not working correctly?](https://discourse.processing.org/t/atan-function-not-working-correctly/13340)

<div class="topic-metadata">

**Author:** [@inzywinki](https://discourse.processing.org/u/inzywinki)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 11:39pm UTC](https://discourse.processing.org/t/atan-function-not-working-correctly/13340 "2019-08-12T23:39:41Z")

</div>

i am trying the inverse tangent function in processing java, i am using the atan(float) function, when i use a paramater around 100 / 70 i am getting the wrong result, this is true for atan(100 / 75), atan(100 / 80) a…

---

## [Having trouble with importing the video library](https://discourse.processing.org/t/having-trouble-with-importing-the-video-library/13266)

<div class="topic-metadata">

**Author:** [@ooss](https://discourse.processing.org/u/ooss)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 4:31pm UTC](https://discourse.processing.org/t/having-trouble-with-importing-the-video-library/13266 "2019-08-12T16:31:58Z")

</div>

Hello currently I have downloaded the video library from GitHub and it downloaded a folder. I renamed the folder to just video and put in ~/Documents/Processing/Library. I am not sure if this is where it needs to be. But…

---

## [Weird Missing Left Curly Bracket Error](https://discourse.processing.org/t/weird-missing-left-curly-bracket-error/13303)

<div class="topic-metadata">

**Author:** [@8bit\_coder](https://discourse.processing.org/u/8bit_coder)\
**Replies:** 2\
**Last updated:** [August 11, 2019, 1:30am UTC](https://discourse.processing.org/t/weird-missing-left-curly-bracket-error/13303 "2019-08-11T01:30:56Z")

</div>

I’m working on a program, and everything compiles and runs fine. But the second that I paste: char letter = 'F'; switch(letter) { case 'F': println("F"); break; case 'S': println("S"); break; } I…

---

## [Passing arrays as arguments](https://discourse.processing.org/t/passing-arrays-as-arguments/6692)

<div class="topic-metadata">

**Author:** [@poppanona](https://discourse.processing.org/u/poppanona)\
**Replies:** 4\
**Last updated:** [August 7, 2019, 11:02pm UTC](https://discourse.processing.org/t/passing-arrays-as-arguments/6692 "2019-08-07T23:02:54Z")

</div>

How are arrays passed as arguments into objects? Do i need to create a new array in the object to accept the array data?

---

## [Looping through an array?](https://discourse.processing.org/t/looping-through-an-array/13078)

<div class="topic-metadata">

**Author:** [@Pbchocochipcheerios](https://discourse.processing.org/u/Pbchocochipcheerios)\
**Replies:** 19\
**Last updated:** [August 6, 2019, 7:52pm UTC](https://discourse.processing.org/t/looping-through-an-array/13078 "2019-08-06T19:52:58Z")

</div>

If I have an array with 14 elements, Is there a way to loop through the array so that when I get to array\[13\], it automatically goes back to array\[0\] up to array \[13\] and loop back to array\[0\] etc etc? I was thinking mo…

---

## [Fill and line not displaying (Help for a beginner)](https://discourse.processing.org/t/fill-and-line-not-displaying-help-for-a-beginner/10693)

<div class="topic-metadata">

**Author:** [@abigail](https://discourse.processing.org/u/abigail)\
**Replies:** 3\
**Last updated:** [August 6, 2019, 4:34am UTC](https://discourse.processing.org/t/fill-and-line-not-displaying-help-for-a-beginner/10693 "2019-08-06T04:34:53Z")

</div>

Hi, my code is below :slight\_smile: Water drop; Water \[\] drops = new Water\[300\]; void setup() { size(600, 400); for (int i = 0; i \< drops.length; i++) { drops\[i\] = new Water(); } } void draw() { backgroun…

---

## [Simple code for alternate stroke, does not work](https://discourse.processing.org/t/simple-code-for-alternate-stroke-does-not-work/13054)

<div class="topic-metadata">

**Author:** [@Francisco](https://discourse.processing.org/u/Francisco)\
**Replies:** 9\
**Last updated:** [August 2, 2019, 10:36pm UTC](https://discourse.processing.org/t/simple-code-for-alternate-stroke-does-not-work/13054 "2019-08-02T22:36:15Z")

</div>

Processing does not detect errors, but alternates the first time and then stays that way all the time. void setup(){ size(500,400); fill(50,230,50); } void draw(){ background(200); stroke(0); rect(150,100,200…

---

## [Calling a String Array to name a new integer array](https://discourse.processing.org/t/calling-a-string-array-to-name-a-new-integer-array/13080)

<div class="topic-metadata">

**Author:** [@mpn702](https://discourse.processing.org/u/mpn702)\
**Replies:** 4\
**Last updated:** [August 1, 2019, 2:25pm UTC](https://discourse.processing.org/t/calling-a-string-array-to-name-a-new-integer-array/13080 "2019-08-01T14:25:31Z")

</div>

I’m trying to write a loop that will generate a collection of new integer arrays based on the elements in a string ArrayList, but unfortunately Processing is having trouble calling the ArrayList in the definition of each…

---

## [How to print double quotes](https://discourse.processing.org/t/how-to-print-double-quotes/13106)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 3\
**Last updated:** [August 1, 2019, 11:02am UTC](https://discourse.processing.org/t/how-to-print-double-quotes/13106 "2019-08-01T11:02:01Z")

</div>

Hi! I have to print an html stuff which contains double quotes, how to do that in processing?? (I have searched in processing reference but there doesn’t say anything about that) I have to print this text: \<?xml vers…

---

## [Network classes not recognised](https://discourse.processing.org/t/network-classes-not-recognised/13035)

<div class="topic-metadata">

**Author:** [@dgrogandesign](https://discourse.processing.org/u/dgrogandesign)\
**Replies:** 10\
**Last updated:** [July 29, 2019, 10:50am UTC](https://discourse.processing.org/t/network-classes-not-recognised/13035 "2019-07-29T10:50:18Z")

</div>

Hi there, i was testing oout the network library on my old computer (with an older version of processing) and the network library and associated classes (Server and Client) worked fine. I’ve just tried to run the same sk…

---

## [Advice for making a visual novel game/otome](https://discourse.processing.org/t/advice-for-making-a-visual-novel-game-otome/12918)

<div class="topic-metadata">

**Author:** [@Sweetiefraise](https://discourse.processing.org/u/Sweetiefraise)\
**Replies:** 2\
**Last updated:** [July 28, 2019, 2:11am UTC](https://discourse.processing.org/t/advice-for-making-a-visual-novel-game-otome/12918 "2019-07-28T02:11:56Z")

</div>

I´m really new in programming with processing so I´m searching for tutorials and advice to make a kind of visual novel thing, I´ll be greatful if you could send me some links to help me with this topic, sorry for any mis…

---

## [Don't know how to activate method](https://discourse.processing.org/t/dont-know-how-to-activate-method/12982)

<div class="topic-metadata">

**Author:** [@kosi559](https://discourse.processing.org/u/kosi559)\
**Replies:** 3\
**Last updated:** [July 25, 2019, 10:29pm UTC](https://discourse.processing.org/t/dont-know-how-to-activate-method/12982 "2019-07-25T22:29:54Z")

</div>

I am a beginner at Java public void drawScore() { scoreFont = createFont("Bauhaus 93", 26, true); textFont(scoreFont); fill(255,255,255); textAlign(CENTER); text("Score: " + s…

---

## [What is declaring ...... how to declare.... Where can I read these basic things](https://discourse.processing.org/t/what-is-declaring-how-to-declare-where-can-i-read-these-basic-things/12863)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 6\
**Last updated:** [July 23, 2019, 1:17pm UTC](https://discourse.processing.org/t/what-is-declaring-how-to-declare-where-can-i-read-these-basic-things/12863 "2019-07-23T13:17:52Z")

</div>

What is declaring … how to declare… Where can I read these basic things …

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

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