Skip to content

Instantly share code, notes, and snippets.

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