Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

06 - Processing 101 - for Loops

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,136
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 5, 2009

Learn about the for loop to automate tasks that need to be repeated.

Category:

People & Blogs

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • it did not work for me

  • @Yanagi225 , Thanks , i got it ! : )

  • @householdscientist 1-- is basically i = i - 1

    And i++ is i = i + 1

    It's just easier to do ++/-- rather than typing it out.

  • @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?

  • noStroke();

    triangle(ax,ay,bx,by,cx,cy);

    for(int i=triangle_scale; i>=0; i=i-3)

  • @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

  • @Shockszzbyyous same question here!!!

  • why is ax=centerx; not in the loop?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more