Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from de.alt.rec.ascii-art, 30 Apr 2003.
Re: Wie geht das?
Mahlzeit!

Andre [Crewso] Terstappen <cre...@gmx.de> wrote:

> ich hab mal ne Frage: Es gibt so tolle Ascii Bilder wie z.B.
> http://fun.sdinet.de/ascii/alien.html ! Wie macht man sowas. Das
> machen Leute doch nicht wirklich von Hand, oder?!

Nimm ein beliebiges Bild in recht niedriger Aufl�sung.
Nimm einen beliebigen Text (idealerweise einen, der genau Breite*H�he
Zeichen hat).

Dann nimmst Du ein kleines Programm, das den Text Zeichen f�r Zeichen
einliest und den jeweiligen Buchstaben in der Farbe aus dem Bild
einf�rbt.

Ergebnis ist eine riesengro�e, bunte HTML-Datei (das genannte
Beispielbild fasst z.B. keine gleichfarbigen Zeichen in ein Font-Tag
zusammen, das w�rde es um einiges kleiner machen).  Wobei <font>
lat�rnich nicht mehr aktuellen Gepflogenheiten entspricht :-)


Ein Programm k�nnte z.B. so aussehen (hier werden zwar keine Dateien
verarbeitet, daf�r ist aber ein handgemachter Ascii-Art-Faktor
enthalten):



#!/usr/bin/perl -- -- heart shaped script #!

          #####              #####
      #############_    _#############
    #mit...@cgarbs.de#__####2002-05-01###
   sub _{printf @_};$c='1E2018201E00001E'
  ."2018201E00001E2018201E002020001C2222".
   "221400005CA2A2A27C02001C2222221C2000"
    ."3E040202201F2422221C00242A2A2A120"
     .'02020001C2222221F20001C2A2A2A0C'
      ;_ "<html><body bgcolor=\"#0000"
       ."00\"><pre>\n";for($s=0;$s<9;
        ++$s){_ '<font color="#%02'.
         'x%02x%02x">',$s*19+80,220
          -$s*16,$s*17+80;while($c
           =~/(..)/g){_ hex$1&1<<
            $s?'<font color="#'.
             'ffffff">o</font'.
              '>':'+';}_ '</'.
               'font>%s',"\n"
                ;}_ "</pre>"
                 .'</body'.
                  '></htm'
                   .'l>'.
                    "\n"
                     ;;            #cgmm#



Stippvisite nach dclp.misc und gleich wieder zur�ck nach dara-a.

so long,
Mitch

-- 
....Christian.Garbs.....................................http://www.cgarbs.de

|||||||||\\\\__ __ __ __ __ __  (Dominoeffekt)

Original message headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: 111ab6,6316ab04d04ca464,start
X-Google-Attributes: gid111ab6,public
X-Google-Thread: f7c81,cb2444dea5c2164f
X-Google-Attributes: gidf7c81,public
X-Google-ArrivalTime: 2003-04-30 15:43:07 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Christian Garbs [Master Mitch]" <mit...@mitch.h.shuttle.de>
Newsgroups: de.alt.rec.ascii-art,de.comp.lang.perl.misc
Subject: Re: Wie geht das?
Followup-To: de.alt.rec.ascii-art
Date: Wed, 30 Apr 2003 22:38:28 +0000 (UTC)
Organization: ya mine owne server
Lines: 66
Message-ID: <b8pj94$nlq$1...@yggdrasil.mitch.h.shuttle.de>
References: <b8p56j$c3ghi$1...@ID-15892.news.dfncis.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1051742408 04 23800 7-w5E8zVS+YK5s 030430 22:40:08
X-Complaints-To: abu...@t-online.com
X-ID: Gn18pGZd8e5WI4IgYMr73M6zJdL-BjKxgiltX-tXU3SxgopteEX2gr
User-Agent: tin/1.5.17-20030314 ("Bubbles") (UNIX) (Linux/2.4.20 (i686))
Xref: archiver1.google.com de.alt.rec.ascii-art:4750 de.comp.lang.perl.misc:35143
About this message. This message was posted publicly to the newsgroup de.alt.rec.ascii-art in 2003 and is 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 the author? 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