Skip to content

Instantly share code, notes, and snippets.

@Eric-Guo
Created June 3, 2021 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eric-Guo/be5e5fce972f044ec36b99f89c3600b9 to your computer and use it in GitHub Desktop.
Save Eric-Guo/be5e5fce972f044ec36b99f89c3600b9 to your computer and use it in GitHub Desktop.
short effect
https://twitter.com/_mdymkowski/status/1371476003789361153
def tick a
B=a.outputs[:r].solids<<[A=0,0,1e2,1e4,F=255,F,F]
a.solids<<[0,0,2e3,1e3,0,0,0]
a.sprites<<http://960.map{[638,360,w=($i+=3).sin*F*1.5,h=$i.sin*F,:r,A+=3,5,F*w,-F*(w+h),-F*h]};
$i+=1;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment