Thread:DanielTheWeeb/@comment-26900200-20190211030354/@comment-31984232-20190211035127

There is no official image so it has to be constructed.

Here is the code used to generate it function ii(e,t){var n=ni[e.id];if(!n||t){var i=document.createElement("canvas");i.width=i.height=2.5*e.scale+tt+(h.list[e.id].spritePadding||0);var r=i.getContext("2d");if(r.translate(i.width/2,i.height/2),r.rotate(t?0:Math.PI/2),r.strokeStyle=Ze,r.lineWidth=tt*(t?i.width/81:1),"apple"==e.name){r.fillStyle="#c15555",ri(0,0,e.scale,r),r.fillStyle="#89a54c";var s=-Math.PI/2;!function(e,t,n,i,r){var o=e+25*Math.cos(i),s=t+25*Math.sin(i);r.moveTo(e,t),r.beginPath,r.quadraticCurveTo((e+o)/2+10*Math.cos(i+Math.PI/2),(t+s)/2+10*Math.sin(i+Math.PI/2),o,s),r.quadraticCurveTo((e+o)/2-10*Math.cos(i+Math.PI/2),(t+s)/2-10*Math.sin(i+Math.PI/2),e,t),r.closePath,r.fill,r.stroke}(e.scale*Math.cos(s),e.scale*Math.sin(s),0,s+Math.PI/2,r)}else if("cookie"==e.name){r.fillStyle="#cca861",ri(0,0,e.scale,r),r.fillStyle="#937c4b";for(var a=b/(c=4),l=0;l<c;++l)ri((u=o.randInt(e.scale/2.5,e.scale/1.7))*Math.cos(a*l),u*Math.sin(a*l),o.randInt(4,5),r,!0)}else if("cheese"==e.name){var c,u;for(r.fillStyle="#f4f3ac",ri(0,0,e.scale,r),r.fillStyle="#c3c28b",a=b/(c=4),l=0;l<c;++l)ri((u=o.randInt(e.scale/2.5,e.scale/1.7))*Math.cos(a*l),u*Math.sin(a*l),o.randInt(4,5),r,!0)}else if("wood wall"==e.name||"stone wall"==e.name||"castle wall"==e.name){r.fillStyle="castle wall"==e.name?"#83898e":"wood wall"==e.name?"#a5974c":"#939393";var f="castle wall"==e.name?4:3;oi(r,f,1.1*e.scale,1.1*e.scale),r.fill,r.stroke,r.fillStyle="castle wall"==e.name?"#9da4aa":"wood wall"==e.name?"#c9b758":"#bcbcbc",oi(r,f,.65*e.scale,.65*e.scale),r.fill}else if("spikes"==e.name||"greater spikes"==e.name||"poison spikes"==e.name||"spinning spikes"==e.name){r.fillStyle="poison spikes"==e.name?"#7b935d":"#939393";var d=.6*e.scale;oi(r,"spikes"==e.name?5:6,e.scale,d),r.fill,r.stroke,r.fillStyle="#a5974c",ri(0,0,d,r),r.fillStyle="#c9b758",ri(0,0,d/2,r,!0)}else if("windmill"==e.name||"faster windmill"==e.name||"power mill"==e.name)r.fillStyle="#a5974c",ri(0,0,e.scale,r),r.fillStyle="#c9b758",ai(0,0,1.5*e.scale,29,4,r),r.fillStyle="#a5974c",ri(0,0,.5*e.scale,r);else if("mine"==e.name)r.fillStyle="#939393",oi(r,3,e.scale,e.scale),r.fill,r.stroke,r.fillStyle="#bcbcbc",oi(r,3,.55*e.scale,.65*e.scale),r.fill;else if("sapling"==e.name)for(l=0;l<2;++l)oi(r,7,d=e.scale*(l?.5:1),.7*d),r.fillStyle=l?"#b4db62":"#9ebf57",r.fill,l||r.stroke;else if("pit trap"==e.name)r.fillStyle="#a5974c",oi(r,3,1.1*e.scale,1.1*e.scale),r.fill,r.stroke,r.fillStyle=Ze,oi(r,3,.65*e.scale,.65*e.scale),r.fill;else if("boost pad"==e.name)r.fillStyle="#7e7f82",si(0,0,2*e.scale,2*e.scale,r),r.fill,r.stroke,r.fillStyle="#dbd97d",function(e,t){t=t||ve;var n=e*(Math.sqrt(3)/2);t.beginPath,t.moveTo(0,-n/2),t.lineTo(-e/2,n/2),t.lineTo(e/2,n/2),t.lineTo(0,-n/2),t.fill,t.closePath}(1*e.scale,r);else if("turret"==e.name)r.fillStyle="#a5974c",ri(0,0,e.scale,r),r.fill,r.stroke,r.fillStyle="#939393",si(0,-25,.9*e.scale,50,r),ri(0,0,.6*e.scale,r),r.fill,r.stroke;else if("platform"==e.name){r.fillStyle="#cebd5f";var p=2*e.scale,m=p/4,g=-e.scale/2;for(l=0;l<4;++l)si(g-m/2,0,m,2*e.scale,r),r.fill,r.stroke,g+=p/4}else"healing pad"==e.name?(r.fillStyle="#7e7f82",si(0,0,2*e.scale,2*e.scale,r),r.fill,r.stroke,r.fillStyle="#db6e6e",ai(0,0,.65*e.scale,20,4,r,!0)):"spawn pad"==e.name?(r.fillStyle="#7e7f82",si(0,0,2*e.scale,2*e.scale,r),r.fill,r.stroke,r.fillStyle="#71aad6",ri(0,0,.6*e.scale,r)):"blocker"==e.name?(r.fillStyle="#7e7f82",ri(0,0,e.scale,r),r.fill,r.stroke,r.rotate(Math.PI/4),r.fillStyle="#db6e6e",ai(0,0,.65*e.scale,20,4,r,!0)):"teleporter"==e.name&&(r.fillStyle="#7e7f82",ri(0,0,e.scale,r),r.fill,r.stroke,r.rotate(Math.PI/4),r.fillStyle="#d76edb",ri(0,0,.5*e.scale,r,!0));n=i,t||(ni[e.id]=n)}return n}