Happy Coding

For Loops

Now you know how to write code using functions, variables, and if statements. So far your code has worked by executing each line one after the other: if you want to draw three circles, you’d have to write three separate calls to the ellipse function.

This is a companion discussion topic for the original entry at https://happycoding.io/tutorials/processing/for-loops

Hello, I am so grateful for these tutorials.

I see a small error on this page. The first line is drawn from position 75, 0 to position 75, height, but the text reads 75, 0 to 55, height.As the line is vertical, the X value should stay the same. I know it’s a small typo but may confuse some learners.

1 Like

Thanks for pointing this out! This should be fixed now.