Original Usenet thread from alt.ascii-art.animation, started 22 Jul 1997.
_ _ _ _ _ _ | | | |___ ___ _ __ ___| |_ / \ _ __ ___| |__ (_)_ _____ | | | / __|/ _ \ '_ \ / _ \ __| / _ \ | '__/ __| '_ \| \ \ / / _ \ | |_| \__ \ __/ | | | __/ |_ / ___ \| | | (__| | | | |\ V / __/ \___/|___/\___|_| |_|\___|\__| /_/ \_\_| \___|_| |_|_| \_/ \___|
How to make Javascript ascii animations (WAS:Re: Yep..this is actually some ascii art not sex junk..)
alt.ascii-art.animation
· 2 messages · 22 Jul 1997
In article <5qv9eq$71u$2...@mnementh.southern.co.nz>, cfb...@southern.co.nz (Colin Douthwaite) wrote: > > Veronica Karlsson (e93...@nospam.sm.luth.se) wrote: > >Andreas Freise wrote: > >> > >> Veronica Karlsson wrote: > >> > Hmmm... maybe I should add something I wrote yesterday to somebody in > >> > response to a question: > >> [snip] > >> > (I hope this explanation made sense) > >> > >> This sounds like it is very complicated, even for a > >> programmer like me. :) > > > >I agree, but can you make it simpler and still get all the details? > >(please do) :) [snip] > >Ok, here's a simpler (but incomplete) one: Copy an animation from > >somewhere, analyze it and make a new one in the same way... :) > > That in fact seems to be the best way to learn to do ascii animations. > > Here is GOLF.VT (zipped and uuencoded) which is a very simple > animation which can be analysed and studied to see how and why it > works. > > Save the following to a file GOLF.UUE and then use a UUdecode > program to produce the zipped animation file GOLF.ZIP: > > C> uudecode GOLF.UUE ( which produces file GOLF.ZIP ) > [snip] > To study and analyse the animation: load it into a wordprocessor > or text file editor and study how it works in detail. Talk about complicated! It's easier to go to a URL that has the animation, http://www.ludd.luth.se/users/vk/llpages/anim/macarena.html has a nice short one to look at. Go to "file" and "save as" macarena.htm Then view the macarena.htm as macarena.txt and examine away. > BTW are animations worth all the effort needed to make them ? *8-) ___ _ _ !/\ \ /| | /\ | ( ) | ( ) ---%^^^, \ / |-| /--\ | ( | ( / \/ > \/\/ | |/ \| . . . > >,^ /| ejm97 | \ Not worth the effort? You mean I've been wasting my time on something useless? NOTE: If you hit the reply button, add an "e" to the "freent"; its absense is to stop the torment of automatic mailers. -- ___ ha Here I am wasting my time _/ | ,^%--- ha again |_____| __ > \ha --- == -- > llizard aka ejm [_____] __>,^ cq5...@freenet.toronto.on.ca ejm97| | //| | http://www.geocities.com/SoHo/Studios/9334/
llizard wrote: [ 8< ] > Okay how about this for really complicated?! > Nice! :) > If you want to examine any animations you see on the web, save them as > text documents and you will see all the coding. That's what I have done. > However, here is the template you can copy and paste into a text > document (notepad on a PC; I don't know the equivalent name for Mac): > > .................Copy between dotted lines.......................... > <HTML> > <HEAD> > <TITLE>your title here</TITLE> > </HEAD> > <script language="JavaScript"> > > var max=0; > function tlist(){ max=tlist.arguments.length; > for(i=0;i<max;i++) this[i]=tlist.arguments[i]; > } > > tl = new tlist( > > " ,^ \n"+ > " -----%^^^^^^^^^^^^^^^^ \n"+ > " ha / \" \" \n"+ > " / ", > > " ,^ \n"+ > " ha -----%^^^^^^^^^^^^^^^^ \n"+ > " / \" \" \n"+ > " / " > > ); > var x=0; > function tick() { > document.f.t.value=tl[x]; > x++; if(x==max) x=0; > //if(confirm('continue?')) > setTimeout("tick()",70); > } > //--> > > </script> > > <BODY onload="tick()"> > <FORM NAME=f><TEXTAREA NAME=t ROWS=4 COLS=60></TEXTAREA></FORM> > > </BODY> > > </HTML> > ............................end copy.......................... Maybe you should have one more frame in the animation, so that the comma after all frames except the last one becomes more obvious? [ 8< ] > It's also a good idea to replace any < in your drawing with with < > (ampersand, lowercase l, lowercase t, semicolon) and any > in your > drawing with > (ampersand, lowercase g, lowercase t, semicolon) > Sometimes the program gets confused if it sees these symbols < > Is this really true for the animations? Don't those show up as < and > in the animations? Are you sure you are not confusing the animations with html? [ 8< ] > I hope these instructions were detailed enough and/or not too detailed > and that you can now go nuts making your own animations. Have fun and be > forewarned; it's really time consuming. How nice of you to warn us :D > > Also, java script animations can only be viewed with Netscape 3.0 that > has java enabled and I gather that unless one has Netscape Navigator, > animations over 750 lines long won't work. Very important! (did I miss that one in my description?) -- :) Veronica Karlsson ( e93...@sm.luth.se http://www.ludd.luth.se/~vk/ )
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art.animation
in 1997 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.