MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/pyoo5v/treescape_in_140_characters_of_javascript/
r/tinycode • u/Slackluster • Sep 30 '21
12 comments sorted by
8
https://www.dwitter.net/d/23964
X=t?X+r*69:0 h=t?99+300*r+99*C(t*7):7e3 for(i=0;i<h;x.fillRect(q,700+h-++i,w,r)) r=Math.random(w=i/4), x.fillStyle=R(v=t?0:80+i,v,v/.8), x.fillRect(q=!t&i?r*2e3:X-w+w*r,t?700-h+i:w,t?w:z=i?2:2e3,z)
4 u/Pearfeet Oct 01 '21 Gotta love ternary expressions
4
Gotta love ternary expressions
5
Jeez it would take me a week to understand this code
5 u/Slackluster Sep 30 '21 Nah, it's not that hard, you just clean it up, space it out, rename variables, remove golfs, etc.This is the tiny code subreddit right? 3 u/Revolio_ClockbergJr Sep 30 '21 Yeah, i never learned js 8 u/Slackluster Sep 30 '21 You should it's fun. If you feel like messing around with JavaScript, try my personal live editor...https://capjs.3d2k.com/ 4 u/SarahC Oct 01 '21 Your editors brilliant! → More replies (1)
Nah, it's not that hard, you just clean it up, space it out, rename variables, remove golfs, etc.
This is the tiny code subreddit right?
3 u/Revolio_ClockbergJr Sep 30 '21 Yeah, i never learned js 8 u/Slackluster Sep 30 '21 You should it's fun. If you feel like messing around with JavaScript, try my personal live editor...https://capjs.3d2k.com/ 4 u/SarahC Oct 01 '21 Your editors brilliant! → More replies (1)
3
Yeah, i never learned js
8 u/Slackluster Sep 30 '21 You should it's fun. If you feel like messing around with JavaScript, try my personal live editor...https://capjs.3d2k.com/ 4 u/SarahC Oct 01 '21 Your editors brilliant! → More replies (1)
You should it's fun. If you feel like messing around with JavaScript, try my personal live editor...
https://capjs.3d2k.com/
4 u/SarahC Oct 01 '21 Your editors brilliant! → More replies (1)
Your editors brilliant!
2
Damn that's cool
1 u/Slackluster Sep 30 '21 Thanks! 1 u/Slackluster Sep 30 '21 Thanks!
1
Thanks!
Beautiful and very elegant, well done!!! The image is nice too 😎
8
u/Slackluster Sep 30 '21
https://www.dwitter.net/d/23964
5
u/Revolio_ClockbergJr Sep 30 '21
Jeez it would take me a week to understand this code
2
u/omg_drd4_bbq Sep 30 '21
Damn that's cool
2
u/Naive_Objective_4987 Oct 22 '21
Beautiful and very elegant, well done!!! The image is nice too 😎