Create a gist now

Instantly share code, notes, and snippets.

// this demo uses a class called Vector2, which can be found here: https://gist.github.com/3929297
// create a light source at position (9, 10)
var lightSource = new LightSource(new Vector2(9, 10), 10);
// move the light source to position (10, 10);
lightSource.update(new Vector2(10, 10));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment