Creative Coding

Tutorials and notes on creative coding with p5.js, covering topics from basic interactivity to animation, trigonometry, and object-oriented programming. Written by Oliver Steele for courses at NYU Shanghai.

Start with Variation: compare random values, sine waves, and Perlin noise, then drive a drawing with time, grid position, or the mouse.

Getting Started

Arranging Items

Tutorials on positioning shapes using loops and math, progressing from lines to circles to grids.

Techniques

Strategies and tools for developing and refining sketches.

Programming Concepts

Notes on JavaScript and p5.js language features used in creative coding.


Resources

p5.js Tutorials

Additional tutorials covering animation, interaction, OOP, particles, and combining sketches.

p5.js Examples

Code examples for common tasks like drawing arrows, rotating about a point, selective trails, and more.

Example Codes