Skip to content

Instantly share code, notes, and snippets.

@julescarbon
Created December 14, 2013 04:39
Show Gist options
  • Select an option

  • Save julescarbon/7955757 to your computer and use it in GitHub Desktop.

Select an option

Save julescarbon/7955757 to your computer and use it in GitHub Desktop.
// 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