Skip to content

Instantly share code, notes, and snippets.

View santiagogil's full-sized avatar

Santiago Gil santiagogil

View GitHub Profile
@santiagogil
santiagogil / index.js
Created November 12, 2014 20:07
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")