Original Usenet thread from alt.ascii-art, started 5 Jan 2004.
[bitmap] linux / unix bitmap
alt.ascii-art
· 1 message · 5 Jan 2004
Just was playing with XFree86 bitmap:
[nabis@trinity:nabis]$ bitamp
(draw something, save it as pic, for example)
[nabis@trinity:nabis]$ cat pic
#define pic_width 86
#define pic_height 16
static unsigned char pic_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x80,
0x7f, 0xc0, 0x01, 0xff, 0xff, 0x03, 0xfc, 0x7f, 0x00, 0x00, 0x80, 0x7f,
0x80, 0x01, 0xff, 0xff, 0x03, 0x8c, 0x63, 0x00, 0x00, 0x80, 0xe1, 0x87,
0x01, 0xff, 0xff, 0x43, 0x84, 0x43, 0x00, 0x00, 0x9c, 0x40, 0x82, 0x01,
0x43, 0x08, 0x03, 0x84, 0x43, 0x00, 0x00, 0xa2, 0x4c, 0x82, 0x01, 0xfd,
0x9c, 0x03, 0x80, 0x03, 0x00, 0x38, 0xa2, 0x4c, 0x82, 0x01, 0xfd, 0x9c,
0x73, 0x80, 0x03, 0x00, 0x44, 0xa2, 0x4c, 0x82, 0x01, 0xc3, 0x80, 0x43,
0x80, 0x03, 0x00, 0x04, 0xa2, 0x4c, 0x82, 0x01, 0xbf, 0x9c, 0x43, 0x80,
0x03, 0x00, 0x04, 0xa2, 0x4c, 0x82, 0x41, 0xbd, 0x9c, 0x43, 0x80, 0x03,
0x00, 0x44, 0xa2, 0x4c, 0x82, 0x41, 0xc3, 0x9c, 0x43, 0x80, 0x03, 0x00,
0x38, 0x9c, 0xc0, 0xff, 0x7f, 0x7f, 0x08, 0xf3, 0x81, 0x03, 0x00, 0x00,
0x80, 0x61, 0x00, 0x00, 0xff, 0xff, 0x03, 0x80, 0x03, 0x00, 0x00, 0x80,
0x7f, 0x00, 0x00, 0xff, 0xff, 0x03, 0xe0, 0x0f, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00};
/* copy this to a text file, you can view it with xv */
[nabis@trinity:nabis]$ xv pic
converting it to ASCII:
[nabis@trinity:nabis]$ bmtoa pic | tr '#' '|' | tr '-' '.' > pic.txt
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 2004 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.