Tiny Tree with Shadow

Javascript code to generate random trees with perspective shadow...

https://www.dwitter.net/d/15249

F=(X,Y,Z,A)=>T(99,x.fillRect(t?X:X-(Y-700)/3,t?Y:790+(700-Y)/3,Z,Z,x.fillStyle=t?R(Z,300-Z*29):T=m=>C(Q*Q++)*m),Z>3&&F(X+S(A)*Z/2,Y-C(A)*Z/3,Z*.98,A*.9+T(.7)))>Z&&F(X,Y,Z/2,A);F(290,Q=700,99,0)

Posted on Aug 3, 2019

More by Frank Force

View profile