Skip to content

Instantly share code, notes, and snippets.

@julescarbon
Created December 10, 2013 19:48
Show Gist options
  • Save julescarbon/7896965 to your computer and use it in GitHub Desktop.
Save julescarbon/7896965 to your computer and use it in GitHub Desktop.
y += x
PI = Math.PI
sin = function(a){return Math.sin(a)}
cos = function(a){return Math.cos(a)}
v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127
thick = 50
b = v //((v/thick)|0)*thick
x += (v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127)
g = ((v/thick)|0)*thick
v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127
r = ((v/thick)|0)*thick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment