Skip to content

GeneralSarsby/asciiIcons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

asciiIcons

Convert Ascii art images to Scalable Icons

#Ascii to Icon Based on a post Replacing Photoshop With NSString seen on HN. I reccomend you read that post first. This takes the idea and extends it in javascript to provide the ctx.drawIcon(text,x,y,w) method.

I have extended the initial ruleset so that at larger sizes simpler ascii arts can be used. The rules are:

  1. Symbols are 0--9 a--b A--Z
  2. Single symbol for dot
  3. Two of symbol for line
  4. Many of symbol of circle
  5. Run of symbols for shape:
  6. Lowercase are stroked closed paths
  7. Uppercase are stroked and filled closed paths
  8. Runs starting with a number are stroked open paths

Here is an interactive space you can tryout.

About

Convert Ascii art images to Scalable Icons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published