Created
December 14, 2013 04:39
-
-
Save julescarbon/7955757 to your computer and use it in GitHub Desktop.
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
| // with http://distilleryimage6.ak.instagram.com/3477a9e25e4311e3ab2b12f292af6a15_8.jpg | |
| t -= 100000 // or so | |
| t /= 500 | |
| if (a == 0) { r = g = b = x; t /= -3 } | |
| else if (r > 0) { t/=r/4 } | |
| r *= (Math.sin(t*x/y) + 1)/2 | |
| g *= (Math.cos(t*y/x) + 0.4)/2 | |
| b *= (Math.sin(t) + 1.5)/2 | |
| a = b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment