Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 24 Feb 1999.
Re: JAVA Animation (technic)

Re: JAVA Animation (technic)

In article <7b1fr5$qt...@news.rhrz.uni-bonn.de>, "Meph"
<UZS...@ibm.rhrz.uni-bonn.de> wrote:
> 
> I have talked with a friend (Hi Joe) about an effective way to create JAVA
> ASCII  animations. He told me his idea of writing a script with a similar
> system like the ANSI codes. The animation data  could be reduced if only the
> changed characters are replaced and not the hole picture.
> There are some samples attached which demonstrate what I mean by this:
> 
> Jgs0 : Normal code   = 59.1 KB
> Jgs1 : Type I        = 33.3 KB
> Jgs2 : Type II       =  8.8 KB
> 
> Jump1: Type  I       =  1.8 KB
> Jump2: Type II       =  2.2 KB
> 
> Type  I: All characters are replace which are different to the first frame.
> Type II: All characters are replaced which are different to the previous frame.
> 
> Normally the Type II creases smaller (and faster) files. Nevertheless sometimes
> Type I is better, if the animation has always a identical background
> (Jump-Sample). The files run with Navigator and IE 4.x and may be other.
> 
> The source code:
> <!--
> Name=
> "           .-------.                        \n"+         <<= The first frame
> "           |_______|____________            \n"+
> "          /====0=[]                         \n"+
> "       __/______/__\\____                    \n"+
> "       jgs              `\\~^~^~^~^~^~^~^~^~^...
> Repla = "S,278,279,280,323,324,368,369,413,,192,193,...  <<= Replace positions
> Replb = "S~0_/_|||S~0|||S~0/|a|a|/S~0/|a/|/|S~0/|a|....  <<= Replace characters
> Posia = Repla.split(",");
> Posib = Replb.split("");
> var p=0;
> var delay=300;
> function ani() {
>  zeile = Name.split("");                              (*) <<= Reset first frame
>   while(Posib[p]!="S") {                                  <<= Replace charcters
>      if(Posib[p]=="a") {zeile[Posia[p]]="\\";}
>      else zeile[Posia[p]]=Posib[p];
>   p++; }
>   document.f.t.value=zeile.join("")                       <<= Show
>   p++;
>   if(Posib[p]=="S") {p=0; zeile = Name.split("");}        <<= Restart
>   setTimeout("ani()",delay);    }
> //-->
> 
> (*) only Type I (Type II: after the anim. Data)
> Control chararacters:
> - Ord(167) = Next frame (:=S)
> - Ord(167) = End (2x)
> - Ord(228) = '\' (:=a, must be replaced by '\\' because it's a JAVA tag)
> 
> Thanks to Joe for the idea and thanks to Colin for the link.
> The sample animations are (c) by (genial) Joan Stark.
> 
> Bye Marc
> 
>                O=============================================O
>   ,,,,,,,,     I  __  __   ___   ___   _  _           _,,,_  I
> .,,,  __  \_   I |M \/ M| |E__| |P_ \ | || | ASCII   / o o \ I
> (    ( o)   \_ I | |\/| | | _|  |  _/ | HH | & more  >  P  < I
> `\           o)I |_|  |_| |E__| |_P   |_||_| ~~~~~~  \_\_/_/ I
>   \     \____/ I                                             I
>    \   ____/   I  ASCII-, ANSI-, HTML-art, programs, ...     I
>     )  )       O=============================================O
> \__/    \  Index page:
>      \\_ ) http://studenten.freepage.de/meph/ascii/ascii.htm
> \___ __ /  English "fast-link" page:
>   _//  \\_ http://studenten.freepage.de/meph/ascii/eng/eng.htm
> 
>                   Name: jgs.zip
>    Part 1.2       Type: Zip Compressed Data
>                         (application/x-zip-compressed)
>               Encoding: x-uuencode

I'm getting scripting errors with this. (and in order for the animation
to work in MSIE as well as NEtscape, the endings for the lines have to
be \r\n"+ instead of \n"+ ) 

Does this only work on Netscape 4 and up? I have Netscape 3

Looks interesting though...



NOTE: I do not pick up my mail from the idirect address that you
see. If you are e-mailing me and hit the reply button, add an "e"
to "freent"; its absense is to stop the torment of automatic mailers.
--
       ___                        cq547@freene+.+oron+o.on.ca
     _/   |    ,^%---                         llizard aka ejm
    |_____|  __<_ \ Yikes! Do I have to upgrade??
      --- ==   >/
    [_____]  __>,^          ASCII-ar+, ASCII & gif anima+ions
  ejm|   |  //| |        www.geocities.com/SoHo/Studios/9334/

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,2f042b54bc2fe318,start
X-Google-Attributes: gidf996b,public
From: llizard <lli...@iNOdirect.ca>
Subject: Re: JAVA Animation (technic)
Date: 1999/02/24
Message-ID: <36D...@iNOdirect.ca>#1/1
X-Deja-AN: 448070339
Content-Transfer-Encoding: 7bit
References: <7b1fr5$qt...@news.rhrz.uni-bonn.de>
Content-Type: text/plain; charset=us-ascii
Organization: Canada; zone  6A (or is it 5b?)
MIME-Version: 1.0
Reply-To: cq5...@freent.toronto.on.ca
Newsgroups: alt.ascii-art
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1999 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