Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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")}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement