Some basic JavaScript / <canvas> code for the times I get bored