Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 5 Jan 2004.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
[bitmap] unix /linux bitmap

[bitmap] unix /linux bitmap

alt.ascii-art · 3 messages · 5 Jan 2004 - 11 Jan 2004
n46is <nab...@anisp.com> 5 Jan 2004 05:44 · permalink · report
Just was playing with XFree86 bitmap:

[nabis@trinity:nabis]$ bitmap
(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

(reposted)

On Sun, 04 Jan 2004 23:44:39 -0600, n46is <nab...@anisp.com> wrote:

> converting it to ASCII:
> [nabis@trinity:nabis]$ bmtoa pic | tr '#' '|' | tr '-' '.' > pic.txt

Can't you combine those tr's with   tr '#-' '|.'   ?

Cheers,
Philip
-- 
Philip Newton <nos...@gmx.li>
That really is my address; no need to remove anything to reply.
If you're not part of the solution, you're part of the precipitate.

n46is <nab...@anisp.com> 11 Jan 2004 03:42 · permalink · report
Philip Newton wrote:
> 
> Can't you combine those tr's with   tr '#-' '|.'   ?
> 
> Cheers,
> Philip

yes you can.

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

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.

Help classify this post