Skip to content

Instantly share code, notes, and snippets.

@rep-movsd
Created July 23, 2019 15:02
Show Gist options
  • Save rep-movsd/1f828561d708c3cb04aa5fe14c66537f to your computer and use it in GitHub Desktop.
Save rep-movsd/1f828561d708c3cb04aa5fe14c66537f to your computer and use it in GitHub Desktop.
Dweet 1: Rain-bough-nut
function u(t)
{
z=255
for(i=0;i<z/2;++i)
{
r=z*1.5-i
b=t+i*9/z
sa=S(t)*z
x.fillStyle=R(z-sa,z-C(t)*z,sa,0.01)
x.fillRect(780+r*S(b),420+r*C(b),80,90)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment