Skip to content

Commit ab6d93a

Browse files
committed
Initial commit
1 parent 8ec9398 commit ab6d93a

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

README.md

-18
This file was deleted.

compatibility/requestAnimFrame.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
window.requestAnimFrame = (function()
2+
{
3+
return window.requestAnimationFrame ||
4+
window.webkitRequestAnimationFrame ||
5+
window.mozRequestAnimationFrame ||
6+
window.oRequestAnimationFrame ||
7+
window.msRequestAnimationFrame ||
8+
function(callback, element)
9+
{
10+
window.setTimeout(callback, 1000 / 60);
11+
};
12+
})();
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CanvasRenderingContext2D.prototype.drawPoint = function(x, y)
2+
{
3+
this.fillRect(x, y, 1, 1);
4+
};

0 commit comments

Comments
 (0)