Update
This commit is contained in:
parent
490ffab10e
commit
ee83d8a6b6
38 changed files with 2053 additions and 2030 deletions
|
@ -6,7 +6,7 @@ This kind of art used to be a great part of the [culture](culture.md) of earlies
|
|||
|
||||
Here is a simple 16-shade ASCII [palette](palette.md) (but watch out, whether it works will depend on your font): `#OVaxsflc/!;,.- `. Another one can be e.g.: `WM0KXkxocl;:,'. `.
|
||||
|
||||
Here are approximate brightness values for each printable ASCII character, with 0 being black and 1000 white (of course the values always depend on the specific [font](font.md) you use):
|
||||
Next we'll present a handy table of approximate brightness values for each printable ASCII character, with 0 being black and 1000 white (of course the values always depend on the specific [font](font.md) you use):
|
||||
|
||||
{ I obtained the values by shooting a screen with some generic monospace font in gedit or something, then made a script that computed the values and ordered them. ~drummyfish }
|
||||
|
||||
|
@ -209,7 +209,7 @@ int main(void)
|
|||
}
|
||||
```
|
||||
|
||||
This program is extremely simple, it just reads an image in [PPM](ppm.md) format on standard input and outputs the image to terminal. Watch out, it won't work for all PPM images -- this one worked with a picture exported from [GIMP](gimp.md) in raw RGB PPM. Also note you have to scale the image down to a very small size AND its aspect ratio has to be highly stretched horizontally (because text characters, i.e. pixels, are much more tall than wide). Also for best results you may want to mess with brightness, contrast, sharpness etc.
|
||||
The program is rather simple, all it does is reading an image in [PPM](ppm.md) format on standard input and outputting the image to terminal. Watch out, it won't work for all PPM images -- this one worked with pictures exported from [GIMP](gimp.md) in raw RGB PPM. Also note you have to scale the image down to a very small size AND its aspect ratio has to be highly stretched horizontally (because text characters, i.e. pixels, are much more tall than wide). Also for best results you may want to mess with brightness, contrast, sharpness etc.
|
||||
|
||||
## See Also
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue