Skip to content

Instantly share code, notes, and snippets.

@pharrington
pharrington / pulser.js
Created September 18, 2011 07:27
JavaScript/Canvas pulser
(function (global, undefined) {
var requestAnimFrame = (function () {
var rate = 16;
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||