October 26, 2008
12:48 am

Here’s a tool that convert a name into avatar. How does the conversion work? There’re four basic shapes, face silhouette, pair of eyes, nose and mouth. Each comes in 18 different styles with a bunch of pixel pictures. The tool then combines each part into an overall face using transparency. To decide which specific style to choose for each part, the converter looks at the string entered in this way: e.g. character 1, 4, 8, 12... are added up by using their Unicode number (utf8ToUnicode function), and then that number’s divided by 18 and whatever remains as remainder (i.e. modulo operation) will settle the specific face silhouette number. Then the same is repeated for the nose using character 2, 5, 9 and so on, writes Philipp

Loading

Contextual Related Posts:

No followup yet

Leave a Response

Comment Preview
« Storage: Which application is preventing safe USB removal – Windows 2003, Server 2008, XP, VistaAzoogleAds’s iMobilePublisher iPhone App Beta »
Feed Icon

Subscribe via RSS or email: