Created
August 27, 2013 13:42
-
-
Save Gerjo/6353684 to your computer and use it in GitHub Desktop.
Optimising a HTML particle system, when suddenly everything must be stringly typed.
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
color = "rgba(" + lerpInt(particle.colorA[0], particle.colorB[0], t) + ", " + | |
lerpInt(particle.colorA[1], particle.colorB[1], t) + ", " + | |
lerpInt(particle.colorA[2], particle.colorB[2], t) + ", " + | |
lerpFloat(particle.colorA[3], particle.colorB[3], t) + ")"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment