Skip to content

Instantly share code, notes, and snippets.

@DaCuteRaccoon
Created January 18, 2023 03:43
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 DaCuteRaccoon/24e3eedb6b3bda9322d8275d96c8f1bf to your computer and use it in GitHub Desktop.
Save DaCuteRaccoon/24e3eedb6b3bda9322d8275d96c8f1bf to your computer and use it in GitHub Desktop.
A fire in JS
setInterval(function p(h) {
for(p[I++*I%17+578]=i=89;i++<630;h+=i%30?"`*"[p[i]=p[i]+p[i+1]+p[i+29]+p[i+30]>>2]||8:"\n");
console.clear();
console.log(h)
}, I=30);
// Adapted from https://aem1k.com/fire/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment