Skip to content

Instantly share code, notes, and snippets.

View nevf's full-sized avatar

Neville Franks nevf

View GitHub Profile
@nevf
nevf / index.js
Created July 5, 2014 00:10
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")