What am I missing?

Idk what’s happening but all of a sudden a simple for loop won’t draw a circle for me. https://www.openprocessing.org/sketch/1051206 I believe I’m missing something obvious, but I cant find it. this is stupid but can someone help? on my screen, it’s just drawing one circle.

Did you try

for(int i =

Then it just says unexpected identifier, I think the problem is unique to me because everything worked perfectly till now.

p5js.org/reference/#/p5/noFill

2 Likes

thx man, my brain has been really slow today.

Something to think about:

function setup() {
	createCanvas(600, 600);
	background(255);
}

function draw() {
	background(255);
	for(i = 0; i <= 100; i = i + 10){
	//fill(3*i, 0, 0);	
	circle(300, 300, 100-i);
	}
}

Try it with and without fill.

It’s all about layers!

:)

1 Like