Key Concepts:

Nested For Loops and Random

I heard you like for loops -- so this week we're going to take a for loop and put it in another for loop.

As we learned last week, repetition is a key element of dialing up the complexity of our visual compositions by taking advantage of something a computer is very good at doing.

Homework

Coding Sketch: Nested For Loops + Variations

Create a nested for loop. Use it to draw shapes to the canvas (in a grid, or otherwise).

Add another factor to the for loop to change drawing parameters iteratively to distort the grid, change the color, or some other variations.

Readings

Screenings

Examples