Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art.animation, 15 Feb 2000.
slowmotion button?

slowmotion button?

Hello ascii-animators who actually understand JavaScript...

I'm trying to put a slowmotion section into an animation. I've stared at
CJRandall's code and finally managed to figure out how to get the
animation to start, stop and go step by step but I can't figure out how
to do a slow motion replay. Here is what I have: (I've used two frames
from my "Mr. ASCII-head plays one-on-one Basketball" animation)

          ____|
      o   \%/ |--\
      _c/        |
  <c/   \        |
  /    < \       |
  >>             | ejm98


<script type="text/javascript">
<!--
    var agt=navigator.userAgent.toLowerCase();
    if (agt.indexOf("mac") != -1) { var a="\r"; } else { var a="\n"; }
    var max=0;
    function tlist(){ max=tlist.arguments.length;
        for(i=0;i<max;i++) this[i]=tlist.arguments[i];
    }
    tl = new tlist(

"         "+a+
"          ____|"+a+
"          \\%/ |--\\"+a+
"                 |"+a+
"  c/  o          |"+a+
" / \\ /|          |"+a+
" o/ \\\< \\         | ejm98"+a,

"         "+a+
"          ____|"+a+
"          \\%/ |--\\"+a+
"                 |"+a+
" _c/o            |"+a+
" o \\/\\           |"+a+
"  / X \\          | ejm98"+a

    );
    var x=0;
    var repeat=1;
    var stop=0;

function go()
{
	document.f.t.value=tl[x];
if(repeat==1)
	{
		if (tl[++x] == null) x=0;
		if (stop==0) setTimeout("go()",200);
	}
	else
	{
		if (tl[++x] != null)
		{
		  if (stop==0) setTimeout("go()",200);
		}
		else
		  x=0;
	}
}

    //--></script>
<FORM NAME="f"><TEXTAREA NAME="t" ROWS="8" COLS="25">
</TEXTAREA></FORM>

<FORM>
<INPUT TYPE="BUTTON" NAME="Display" VALUE="Play" onClick="stop=0;go()">
<INPUT TYPE="BUTTON" NAME="Display" VALUE="Stop" onClick="stop=1">
<INPUT TYPE="BUTTON" NAME="Display" VALUE="One frame at a time"
onClick="stop=1;go()">
</FORM>

The animation without stop and start buttons can be seen at
http://www.crosswinds.net/~llizard/basketb1on1B.htm


NOTE: I never pick up my mail from the yahoo address. If you
are e-mailing and hit the reply button, add an "e" to "freent";
its absense is to stop the torment of automatic mailers.
--
         ___       llizard aka ejm  cq547@freene+.+oron+o.on.ca
       _/   |       
      |_____|      ,^>    Thanks guys...
        --- == ---% / >
      [_____]    / /__>,^        ASCII-ar+ and ASCII-anima+ions
ejm    |   |       //| |    http://www.crosswinds.net/~llizard/

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd588,9ad7b44e6e849772,start
X-Google-Attributes: gidfd588,public
From: llizard <lli...@TAKEOUTTHEGARBAGEyahoo.com>
Subject: slowmotion button?
Date: 2000/02/15
Message-ID: <38A...@TAKEOUTTHEGARBAGEyahoo.com>#1/1
X-Deja-AN: 586049975
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abu...@idirect.com
X-Trace: quark.idirect.com 950607503 216.154.9.59 (Tue, 15 Feb 2000 04:38:23 EST)
Organization: posted via idirect.com Canada; zone  6A (or is it 5b?)
MIME-Version: 1.0
Reply-To: cq5...@freent.toronto.on.ca
NNTP-Posting-Date: Tue, 15 Feb 2000 04:38:23 EST
Newsgroups: alt.ascii-art.animation
About this message. This message was posted publicly to the newsgroup alt.ascii-art.animation in 2000 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