Last active
August 29, 2015 14:16
-
-
Save scowalt/03e0958d8a59b30596d5 to your computer and use it in GitHub Desktop.
tonal-starfield outgoing data
This file contains hidden or 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
var message = { | |
'event': 'comet', // comet spawning | |
'color': comet.getLight().color, // r g b from 0 to 1 | |
'colorHSL': comet.getLight().color.getHSL(), // h s l from 0 to 1 | |
'lifespan': Comet.lifespan, // lifespan in seconds | |
'position': pos // {x,y,z} with (0,0,z) at center of screen | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment