Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
victorqribeiro committed Oct 7, 2018
1 parent 19a52da commit 4be13b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ To display the ASCII image with color just call the method displayColor(). You c

```
<script>
let euColor = new imgToAscii('eu.png',0.5);
euColor.displayColor('gray');
eu.displayColor('gray');
</script>
```

Note that on the code above the same 'eu' image was used. Once you load an image, you can display it with or without color, without the need to reload the image data.

## Important

The ascii art depends on a monospace font to work properly. You should consider that 1 pixel in your image is going to be translated to 1 char in Ascii. e.g.: if a image is 100 pixels wide, it's going to take 100 chars of space on your page, unless you do something about it.
Expand Down

0 comments on commit 4be13b9

Please sign in to comment.