Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art.animation, started 15 Feb 2000.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
slowmotion button?

slowmotion button?

alt.ascii-art.animation · 2 messages · 15 Feb 2000
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/

In article <38A...@TAKEOUTTHEGARBAGEyahoo.com>, llizard wrote:
> 
> I'm trying to put a slowmotion section into an animation.

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

Many thanks to Shimrod!!  He was in Veronica's chatroom
http://www.ludd.luth.se/~vk/cgi/asciichat/
and explained to me what needed to be done. I now have the slowmotion
button installed.

         /                 _   _
         \,^%--- \    /|_|/ \ / \
         <   \    \/\/ | |\_/ \_/
         <\_         _   _
         < __    |_|/ \ / \  | |
       ^^ \ /    | |\_/ \_/  | |
  ejm     /                  . .


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  ha             ,^
http://www.crosswinds.net/~llizard/         ha ---%^^^^^^^^^^
ASCII-ar+ and ASCII-anima+ions               ha  /   "    "

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art.animation in 2000 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