View difference between Paste ID: C4dpYLP8 and NFZXMkGx
SHOW: | | - or go back to the newest paste.
1-
function w(e){t=e.split(/[\s-.,;]+/);n={};for(r in t)n[i=t[r]]=n[i]+1||1;s=document;o=s.createElement("canvas");o.width=o.height=600;u=o.getContext("2d");a=0;f=50;for(i in n){u.font=n[i]*50+"px monospace";u.fillText(i,a,f+n[i]*5);a+=i.length*n[i]*50;if(a>o.width*.6){a=0;f+=n[i]*5+100}}s.body.appendChild(c=s.createElement("img"));c.src=o.toDataURL("image/png")}
1+
function w(e){n={};for(r in t=e.split(/[\s-.,;]+/))n[i=t[r]]=n[i]+1||1;s=document;o=s.createElement("canvas");o.width=o.height=600;u=o.getContext("2d");a=0;f=50;for(i in n){u.font=n[i]*50+"px monospace";u.fillText(i,a,f+n[i]*5);a+=i.length*n[i]*50;if(a>o.width*.6){a=0;f+=n[i]*5+100}}s.body.appendChild(c=s.createElement("img"));c.src=o.toDataURL("image/png")}