Skip to main content

P5.js

Mandala Weaver

Two sketches had been sitting on my desktop for months — separately, doing nothing. One generates rugs: deformed tangram grids, each cell filled with hatching, colors drawn from a random palette, tile edges warped by a slow sine function so the grid breathes instead of sitting still. The other draws mandalas: radial curves that follow the mouse, a handful of parameters controlling how the arms splay and bend and spread.