setup()
and draw()
).
Create a composition using 2 separate loops, ie:
while conditional: commands while conditional: commands
Use these two separate loops to create two different linear repetitions. For example, a horizontal row and a vertical column. What kinds of composition can you represent with this structure?
Create a composition using 2 nested loops, ie:
while conditional: while conditional: commands
Use this to create reptition that is not just linear, but
two dimensional in some way. For example, maybe you could
make a grid. Not a sidewalk, but a checkerboard. Think
about the pattern of the nested loop structure and how it
causes you to think in this a way like: for each row,
create several columns. What kinds of imagery can you
represent with this structure? Experiment with using the looping variables, so that with each
iteration your shapes might get bigger, smaller, or the changes
color (check
out lerpColor()
). If
you add transparency to your color you can make really
interesting patterns if your shapes overlap.