We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › horizontal rectangles
Page Index Toggle Pages: 1
horizontal rectangles (Read 433 times)
horizontal rectangles
Nov 5th, 2009, 8:33am
 
i am doing a homework assignment, and i have been asked to draw white and black rectangles that will repeat themselves in set intervals and get smaller from right to left. but i cant get the rectangles the stand upwards, and make them bcome bigger and smaller. can anyone help me with this?
Re: horizontal rectangles
Reply #1 - Nov 5th, 2009, 8:53am
 
First look at:

Learning > Basics > Control > Iteration/Embedded Iteration.

...then consider how you can use the value of 'i' in a for loop to adjust things like size.
Page Index Toggle Pages: 1