/* * This is a javascript file to experiment with animation */ function sparky(ctx) { var pic = new Drawing(); var d = new Drawing(); for(var i = 0; i < 4; i++) { var l = new Line(); l.scale(10).rotate(90 * i); d.add(l); } var fudge = (Math.cos(now())) * 10; for(var j = 0; j < 360; j += 5) { d.translate({x: Math.sin(j) * 100 + fudge, y: Math.cos(j) * 100 + fudge}).rotate(fudge); pic.add(d.copy()); } return { drawing: pic }; } Painter.animate(sparky);
Computational Poetry. Inspired by Zach Liberman. Built by Ben.
More: autry | beye | bingbong | bursty | circle | droney | extris | fiddly | flale | freqy | glide | helloworld | mario | mary | maxx | notick | roundy | sade | savsty | seemaj | sparky | superm | thrice | wade | waveish | zaux