Loading...
Uploaded by ste1438 on Jul 5, 2009
Learn about the for loop to automate tasks that need to be repeated.
People & Blogs
Standard YouTube License
it did not work for me
powerwingman 1 month ago
@Yanagi225 , Thanks , i got it ! : )
householdscientist 1 month ago
@householdscientist 1-- is basically i = i - 1
And i++ is i = i + 1
It's just easier to do ++/-- rather than typing it out.
Yanagi225 1 month ago
@WhiteBeltAcademy I think ellipse maybe easier, coz just need define the centre point and the size....? maybe other is the same logic as triangle.
i'm quite happy that i understand most of it . but could you please explain me the meaning of
" 1- - " and ""1 ++", i still didn't got it as i'm very stupid in math. thanks !
How would you get the same effect with ellipse?
WhiteBeltAcademy 4 months ago
noStroke();
triangle(ax,ay,bx,by,cx,cy);
for(int i=triangle_scale; i>=0; i=i-3)
sharpezor 4 months ago
@Shockszzbyyous first of all, sorry for my bad english!
it's because the value of ax dosn't change. if ax=centerx-i; would be in the for-loop the triangle would turn to the left and to the right with ax=centerx+i;. try it out.
hope this helps you
einfachmoe 4 months ago
@Shockszzbyyous same question here!!!
TheGamingtoday 4 months ago in playlist Processing Tutorial
why is ax=centerx; not in the loop?
Shockszzbyyous 5 months ago
Load more suggestions
it did not work for me
powerwingman 1 month ago
@Yanagi225 , Thanks , i got it ! : )
householdscientist 1 month ago
@householdscientist 1-- is basically i = i - 1
And i++ is i = i + 1
It's just easier to do ++/-- rather than typing it out.
Yanagi225 1 month ago
@WhiteBeltAcademy I think ellipse maybe easier, coz just need define the centre point and the size....? maybe other is the same logic as triangle.
householdscientist 1 month ago
i'm quite happy that i understand most of it . but could you please explain me the meaning of
" 1- - " and ""1 ++", i still didn't got it as i'm very stupid in math. thanks !
householdscientist 1 month ago
How would you get the same effect with ellipse?
WhiteBeltAcademy 4 months ago
noStroke();
triangle(ax,ay,bx,by,cx,cy);
for(int i=triangle_scale; i>=0; i=i-3)
sharpezor 4 months ago
@Shockszzbyyous first of all, sorry for my bad english!
it's because the value of ax dosn't change. if ax=centerx-i; would be in the for-loop the triangle would turn to the left and to the right with ax=centerx+i;. try it out.
hope this helps you
einfachmoe 4 months ago
@Shockszzbyyous same question here!!!
TheGamingtoday 4 months ago in playlist Processing Tutorial
why is ax=centerx; not in the loop?
Shockszzbyyous 5 months ago