Other resources

Here's a few resources and tips about what to do after this course.

Tips and tricks

Map a parameter based on the distance to center

let cx = width / 2;
let cy = height / 2;
let distToCenter = dist(x, y, cx, cy);
let maxDistToCenter = dist(0, 0, cx, cy);
let normalisedDistance = 1 - distToCenter / maxDistToCenter;

Example sketch: https://editor.p5js.org/otsohavanto/sketches/68Z56qF49

p5

Example sketches for object oriented particle systems

Other JS libraries

Other tools/technologies