p5.js · 4 / 6

Dashboard
Creative coding · p5.js

Translate & rotate

Wrap repeated draws with push() / pop() so each tile gets its own translation + rotation origin. Combine with rectMode(CENTER) when pivot math should stay intuitive.