Code Demos

Visualize an organic shape arising from Collatz conjecture using p5.js.

an organic spiral

TRY IT HERE

A basic physics simulation with a few bodies of different mass. Uses p5.js.

a frame of physics simulation

TRY IT HERE

Simulate the dynamics of acceptance in a world where opinions are cyclic using p5.js.

A graph of opinions

TRY IT HERE

Generate your own Julia set in the browser using p5.js. Click the mouse anywhere on the canvas to create a new Julia set.

A Julia set

TRY IT HERE

Generate a random domino tiling of an Aztec diamond in the browser using p5.js.

A tiling of an Aztec diamond

TRY IT HERE

Programmatically generate a Barnsley fern in the browser using p5.js.

A Julia set

TRY IT HERE

Programmatically draw a Mandlebrot set in the browser using p5.js.

A Mandlebrot set

TRY IT HERE