block by kenpenn ec90d195a2dc8bde85ed981928fabc63

disco lights

Full Screen

An expansion of Self-adjusting setTimeout loop in javascript

Uses a self-adjusting timeout loop to trigger events, at somewhat consistent intervals, to drive animation.

Uncorrected loops shows a setTimeout with a fixed delay, the same delay as the adjusted setTimeout target.

Metronome drawn with Sketch

adapted from:

index.html

beats.js