Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2012 04:32
What would you like to do?
// this demo uses a class called Vector2, which can be found here:
// 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