Unexpected code behaviour: nested loops vs manual

Hi guys, new to the forum here, let me know if I’m doing anything obviously wrong.

I made this sketch:

My question is: why does the nested loop variation have a cross going through the middle? When I manually draw in the circles, there’s no cross.

Thank you beforehand for any help.

Hi, @Chudroy

You’re seeing ‘flattened’ ellipses. Don’t begin your loop at zero –

  ...
  for (i=100; i<400; i+=100){
    for(j=100; j<400; j+=100){
      ellipse(400,400,i,j)
    }
  }
  ...
1 Like

:man_facepalming: of course! thank you very much