Agenda
Technical Lessons
- variables: Example; Coding Train video (12m); Tutorial 1, Tutorial 2.
- variables: simple demonstration
- variables and math
- global variables and scope (click counter)
Color II.
- colorMode(): Reference; Golan demo video. Changes how color numbers are interpreted.
- hue example, saturation example, brightness example
Precise positioning
- rectMode(): Reference; Golan demo video (2m). Changes a rectangle’s origin or registration point.
- transforms: Coding Train video 1 (22m); Coding Train video 2; Xin Xin video (7m)
- transforms + iteration: Xin Xin video (8m)
Interpolation
- lerpColor(): Reference;
- lerp(): Reference; Coding Train video (10m)
- map(): Reference; Example; Coding Train video (10m).
- map() and constrain(): Golan video (10m)
- shaping functions — for next time!
Iteration
- for loops (iteration): Reference; Tutorial; Coding Train video (14m)
- nested loops (embedded iteration): Example; Coding Train video (9m)
Functions
- Creating your own functions: Coding Train video 1 (12m)
- functions with arguments: Example; Tutorial.; Coding Train video 2 (10m)
For our next session:
- Time and millis(): Xin Xin video (8m)
- Noise; randomSeed, noiseSeed
- Time loops
- Sine waves
- p5.func (shaping functions): Golan video (12m)