Skip to content

Instantly share code, notes, and snippets.

@ebonneville
Created December 4, 2012 04:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ebonneville/4200590 to your computer and use it in GitHub Desktop.
// 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