/the-nature-of-code-canvas-sketch

WIP: Examples from @shiffman's "The Nature of Code" book implemented in `canvas-sketch`

Primary LanguageJavaScript

The Nature of Code + canvas-sketch

Examples from Daniel Shiffman's The Nature of Code implemented in canvas-sketch.

Table of contents

  1. Vectors
    1. Bouncing ball with no vectors
    2. Bouncing ball with vectors
    3. Vector subtraction
    4. Multiplying a vector
    5. Vector magnitude
    6. Normalizing a vector
    7. Motion 101 (velocity)
    8. Motion 101 (velocity and constant acceleration)
    9. Motion 101 (velocity and random acceleration)
    10. Accelerating towards the mouse
    11. Array of movers accelerating towards the mouse
  2. Forces
    1. Forces
    2. Forces acting on many objects
    3. Gravity scaled by mass
    4. Including friction
    5. Fluid resistance
    6. Attraction
    7. Attraction with many Movers
    8. Mutual attraction