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.
Can't get this to work. Copy'd everything 1:1 and he doesn't want to take my "i". Keeps telling me that there is no "i". Tried for about half an hour now :<
wow, this was realy helpfull, I try to make different sized rectangles move back and forth together (so that it looks like they where unified) and i think with a loop that controles speed through a syntax this should be easy
but if anyone knows a way to gain this effect easier I'ld be grateful :D
ellipse(ax,centery,cx,by);
xD
chema2424 1 week ago
it did not work for me
powerwingman 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 2 months 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
@Yanagi225 , Thanks , i got it ! : )
householdscientist 1 month ago
How would you get the same effect with ellipse?
WhiteBeltAcademy 4 months 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 2 months ago
noStroke();
triangle(ax,ay,bx,by,cx,cy);
for(int i=triangle_scale; i>=0; i=i-3)
sharpezor 4 months ago
Comment removed
sharpezor 4 months ago
why is ax=centerx; not in the loop?
Shockszzbyyous 5 months ago
@Shockszzbyyous same question here!!!
TheGamingtoday 5 months ago in playlist Processing Tutorial
@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 5 months ago
not really like the arduino ide but some syntaxes are the same :)
Shockszzbyyous 5 months ago
Comment removed
jupitude 7 months ago
really great turtorial
LIGEN5 7 months ago
Can't get this to work. Copy'd everything 1:1 and he doesn't want to take my "i". Keeps telling me that there is no "i". Tried for about half an hour now :<
best123of 1 year ago
Comment removed
fibenare 1 year ago
Comment removed
best123of 1 year ago
Comment removed
best123of 1 year ago
Comment removed
best123of 1 year ago
really helpful videos well explained. Thanks
0902frank 1 year ago
Really awesome! Except you could try this:
Change the stroke value to (0,0).
This makes it transparent, and the gradient effect looks cooler :)
XtremeGamer20 1 year ago
Never mind, I wasn't done watching the video when I commented ^_^
XtremeGamer20 1 year ago
what does for stand for? why do you need it?
somebody123321456654 2 years ago
wow, this was realy helpfull, I try to make different sized rectangles move back and forth together (so that it looks like they where unified) and i think with a loop that controles speed through a syntax this should be easy
but if anyone knows a way to gain this effect easier I'ld be grateful :D
dreamplanter 2 years ago
these are really helpful
thank you!
AntiCitizenOne1 2 years ago