Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from rec.arts.ascii, started 25 Sep 1994.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Question: Light-On-Dark to Dark-On-Light Converters?

Question: Light-On-Dark to Dark-On-Light Converters?

rec.arts.ascii · 5 messages · 25 Sep 1994 - 6 Oct 1994
Hi,

I am wondering if there exists any utility to convert Light-On-Dark
ascii art to Dark-On-Light?

Some of the art I've come across are really nice, but printing them
out makes 'em look like negatives... Just curious.

Thanks a priori.

-rudi

Bob Allison <bob...@wwa.com> ASCII art 30 Sep 1994 12:58 · permalink · report
Rudi C. Wong <rcw...@kelvin.seas.virginia.edu> wrote:
>
>I am wondering if there exists any utility to convert Light-On-Dark
>ascii art to Dark-On-Light?
>
>Some of the art I've come across are really nice, but printing them
>out makes 'em look like negatives... Just curious.

   I don't recall if there is such a gizmo.  It's easy to do if it's a 
GIF conversion.  You can just invert the GIF and re-convert it, of course.

   But as to flipping the light and dark of a pic while it is ASCII, I 
don't know.  Dose anybody recall if there is a program or script for this?

--
 .        +      '       .          * .         .     '         . +    .
     ___   ____   __  _____  . ____    ____  _____  '  ____   __  __  __
  '     |      |    \'      \       \      |       \        \   \   \   | '.
'  .  ( .   | '. /_  |  |_  /    |_  |  | .    |_  /    /.   |         /
  ___   \   |__       \     \__   ___   |__ '      \__  \_   |    |   |. '
'       /.     |/      \|      |     |     |.  |      |     /.   /   /  . +
  .   '     *  .     +   '  .      * '       :        +      .  '    *    .

Out of Order <psa...@hmc.edu> ASCII art 2 Oct 1994 07:57 · permalink · report
And The Scarecrow spake unto us, saying:

>    But as to flipping the light and dark of a pic while it is ASCII, I 
> don't know.  Dose anybody recall if there is a program or script for this?

In UNIX csh you could alias a tr command something like:

alias invert "tr '[\040-\177]' 'QWERTYUIOP...' < \!*"

(The QWERTYUIOP... is whatever order you think the 96 characters
between 32 and 127 should be in.)

To use it you would then type invert filename and it'd display the
inverted one on the screen.  Save with invert filename>filename2.

I'm not about to think that hard at this time of night, but if anyone
tries this, please post the complete alias and an example of what it
can do.

 __ ___  __  __  _  ___  _  ___      _      ___  _  ___  _  __  __  ___ __
|_|  _| / | |_| / \. _| / \. |  | | / \ | |  | ./ \ |_ ./ \ |_| | \ |_  |_|
/ | __| \_| / | \_/   | \_/  |  |_| \_/ |_|  |  \_/ |   \_/ | \ |_/ |__ | \
          ude.cmh@sleumasp                       psa...@hmc.edu
                  (nosleumaS reteP r(O)r Peter Samuelson)

[October 17 -- It's Time!  Ask me for details!]

Danni Bauer <bau...@gtetel.com> ASCII art 3 Oct 1994 17:25 · permalink · report
Bob Allison (bob...@wwa.com) wrote:

> Rudi C. Wong <rcw...@kelvin.seas.virginia.edu> wrote:
> >
> >I am wondering if there exists any utility to convert Light-On-Dark
> >ascii art to Dark-On-Light?
> >
> >Some of the art I've come across are really nice, but printing them
> >out makes 'em look like negatives... Just curious.

>    I don't recall if there is such a gizmo.  It's easy to do if it's a 
> GIF conversion.  You can just invert the GIF and re-convert it, of course.


Can you tell me where to find the GIF to ASCII converters?


>    But as to flipping the light and dark of a pic while it is ASCII, I 
> don't know.  Dose anybody recall if there is a program or script for this?

<sig snipped>



--
ooooOOOOoooo....ooooOOOOoooo....ooooOOOOoooo....ooooOOOOoooo....ooooOOOOoooo

 _____                    _ 
(____ \                  (_)                    Danni Bauer
 _   \ \ ____ ____  ____  _ 
| |   | / _  |  _ \|  _ \| |                  bau...@gtetel.com
| |__/ ( ( | | | | | | | | |
|_____/ \_||_|_| |_|_| |_|_|               737...@compuserve.com

Out of Order (psa...@hmc.edu) wrote:

: And The Scarecrow spake unto us, saying:

: >    But as to flipping the light and dark of a pic while it is ASCII, I 
: > don't know.  Dose anybody recall if there is a program or script for this?

: In UNIX csh you could alias a tr command something like:

: alias invert "tr '[\040-\177]' 'QWERTYUIOP...' < \!*"

: (The QWERTYUIOP... is whatever order you think the 96 characters
: between 32 and 127 should be in.)

: To use it you would then type invert filename and it'd display the
: inverted one on the screen.  Save with invert filename>filename2.

: I'm not about to think that hard at this time of night, but if anyone
: tries this, please post the complete alias and an example of what it
: can do.


I dont know much about aliases in unix but in my ibm I made a simple 
program to do it (sounded like fun).. and I came up with two lists of 
characters.. original list was in order of brightness, new list, (opposite 
brightness, corresponds to ascii char in first list.. anyways I made an 
IBM version and here are the lists:

[ .`-',:_;~=^"+/|()<>i%l\{}!cIrvx[]?*ast17nufJozejCLw23pqTYmy456bdFgkV9GhPS
XOZA&UDEK8HR$B#QW@0MN]

[MBHKUUUUAAXXyyywjjjjzttttt????????]}}}}iiiiiiii>>|||////////^^^^^^^^^^^^^^
^~~~__---``...       ]

Keep in mind the fact that these lists aren't reversed lists of each 
other.. and if you convert something using this and convert it back, your 
picture wont look the same.. but it works fairly well.  

I'm going to upload the IBM version to ftp.wwa.com, I think that is a 
place you can find it (in incoming).. (tell me of a better place, please!)

See ya later!

rb (bru...@helium.gas.uug.arizona.edu)

p.s.  While you're there, don't forget to check out bmp2txt, a bitmap to 
ascii picture converter!

About this thread. These messages were posted publicly to the newsgroup rec.arts.ascii in 1994 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