Skip to content

Instantly share code, notes, and snippets.

@micuat
Last active February 3, 2021 03:54
Show Gist options
  • Select an option

  • Save micuat/6a0b26f7427c346916d7de38257d6ec5 to your computer and use it in GitHub Desktop.

Select an option

Save micuat/6a0b26f7427c346916d7de38257d6ec5 to your computer and use it in GitHub Desktop.
/*
https://hydra.ojack.xyz/?code=VyUzRHdpbmRvdyUwQW9zYyg1MCUyQzApLnRocmVzaCgpLmthbGVpZCg0KS5yb3RhdGUoTWF0aC5QSSUyRjQpLmxheWVyKHNoYXBlKCkucigpLnJlcGVhdCg0JTJDNCkubXVsdChncmFkaWVudCgpKSklMEEuc2Nyb2xsKC0uNSUyQy0uNSklMEEuc2NhbGUoMSUyQyUwQSUyMCUyMCgpJTNEJTNFVy5zY3JlZW4uYXZhaWxXaWR0aCUyRlcuaW5uZXJXaWR0aCUyQyUwQSUyMCUyMCgpJTNEJTNFVy5zY3JlZW4uYXZhaWxIZWlnaHQlMkZXLmlubmVySGVpZ2h0KSUwQS5tb2R1bGF0ZShzb2xpZCglMEElMjAlMjAoKSUzRCUzRShXLnNjcmVlblgpJTJGVy5zY3JlZW4uYXZhaWxXaWR0aCooVy5zY3JlZW4uYXZhaWxXaWR0aCUyRlcuaW5uZXJXaWR0aCklMkIuNSUyQyUwQSUyMCUyMCgpJTNEJTNFKFcuc2NyZWVuWSklMkZXLnNjcmVlbi5hdmFpbEhlaWdodCooVy5zY3JlZW4uYXZhaWxIZWlnaHQlMkZXLmlubmVySGVpZ2h0KSUyQi41KSUyQzEpJTBBLm91dCgpJTBB
*/
W=window
osc(50,0).thresh().kaleid(4).rotate(Math.PI/4).layer(shape().r().repeat(4,4).mult(gradient()))
.scroll(-.5,-.5)
.scale(1,
()=>W.screen.availWidth/W.innerWidth,
()=>W.screen.availHeight/W.innerHeight)
.modulate(solid(
()=>(W.screenX)/W.screen.availWidth*(W.screen.availWidth/W.innerWidth)+.5,
()=>(W.screenY)/W.screen.availHeight*(W.screen.availHeight/W.innerHeight)+.5),1)
.out()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment