text: class Coordinate{constructor(t,o){this.x=t,this.y=o}}class Canopy{constructor(t){this.ctx=t}RenderCanopy(){let t=function(a,n,c,e,r,h){if(o++,r>=11)return;Math.floor(2*Math.random()+1),Math.floor(2*Math.random()+1);ctx.beginPath(),ctx.lineWidth=h,ctx.moveTo(a,n);var i=e+57.295779513082*(2*Math.PI/11+Math.random())/2,x=a+c*Math.sin(.017453292519*i),s=n+c*Math.cos(.017453292519*i);ctx.lineTo(x,s),ctx.moveTo(a,n);var l=e-57.295779513082*(2*Math.PI/11+Math.random())/2,M=a+c*Math.sin(.017453292519*l),d=n+c*Math.cos(.017453292519*l);ctx.lineTo(M,d),ctx.strokeStyle=r>=5?"Green":"Black",ctx.stroke(),t(x,s,.75*c,i,r+1,.6*h),t(M,d,.75*c,l,r+1,.6*h)};var o=0,a=new Coordinate(400,400);ctx.beginPath(),ctx.moveTo(a.x,a.y),a.y=a.y-100,ctx.lineTo(a.x,a.y),ctx.lineWidth=20,ctx.stroke(),t(a.x,a.y,75,180,o,20)}}