For loops and if statements

Lecture slides

If statements

Quiz with variables and if-statements

For loops

Introduction to for-loops

For loop quiz

Geometric composition with for-loops

Assignment

Use the examples in the last video for creating a generative composition. If you want you can use some of the following 'rules' to get started:

  • Use on two two colors
  • Create clusters of shapes with four loop using only one 2d-primitive
  • Stop draw loop with noLoop(); after a certain frame
  • Generate the two colors with code