This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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