Skip to content

Instantly share code, notes, and snippets.

@Sneezry
Created September 13, 2020 15:14
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 Sneezry/6cfcddfcb1daec083031260002b50228 to your computer and use it in GitHub Desktop.
Save Sneezry/6cfcddfcb1daec083031260002b50228 to your computer and use it in GitHub Desktop.
tree.js
let i,t,r=7,w=1,s=12,c=".~'O'~.*";
Array(s).fill().map((_,k)=> {
for (i=0,t=""; i<w||(w+=2,0); i++)
t+=c[_=r,r=(r+1)%6,_];
console.log(Array(s-k).join(" ")+t);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment