Re: someone's sig
Colin Randall <[email protected]> Sat, 11 Dec 2021 11:06:33 +0000
| Newsgroups | alt.ascii-art.animation |
|---|---|
| Organization | none whatsoever |
| Message-ID | <[email protected]> |
On 01/10/2021 02:00, Eli the Bearded wrote: > In alt.ascii-art.animation, Colin Randall <[email protected]> wrote: >> from someone's sig sometime (JavaScript) > > Date: Tue, 19 Aug 2008 13:47:54 -0500 > From: 3Dimka <[email protected]> > Newsgroups: alt.ascii-art > Subject: cool ASCII javascript animation > > cool ASCII javascript animation: > http://a1k0n.net/temp/jsthing.html > > a1k0n.net is no longer on the net. I haven't tried looking at it in the > Wayback machine. i shall have a look for that > >> ------------8<----cut-here-------8<----- >> <HTML> >> <HEAD> >> <TITLE>anim</TITLE> >> </HEAD> >> <body bgcolor="#FFF6E9" text="#800000"> >> >> <pre id=D></pre><script>A=0,B=0,D=document.getElementById('D'),b=[]; >> function u(){n=Math.sin(B);for(k=0;1840>k;k++)y=-10-k/80|0,o=41+(k%80 >> -40)*1.3/y+n|0,N=A-100.0/y,b[k]=k%80==79?"\n":".#"[o+N&1];D.innerHTML >> =b.join('');A+=0.05;B+=0.03;setTimeout(u,10);}u();</script> >> >> </BODY> >> </HTML> >> ------------8<----cut-here-------8<----- > > Fun. Some tweaks: > > 1840>k : maximum number of characters to display, try 2560>k > > k/80 k%80 k%80==79: line length try "3000>k" and all "80"s to "120", > and "79" to "119" > > y=-10-k : -10 controls zoom. Numbers closer to zero are smaller > boxes, numbers further are bigger. Try -5 or -20 > > ".#"[o+N&1] : character set used and selector. Try: > ".+$#"[o+N&3] or " .:|+*$#"[o+N&7] > > o=41 -40 : controls the skew, Try 51 and -10 > > A-100.0 : controls top to bottom changes, -50.0 is tall and fast > -200.0 is short and slow > > A+=0.05 : top to bottom changes, too, 0.5 is very fast, 0.005 > creeps > > B+=0.03 : side to side speed, 0.25 is a dizzyingly fast wobble > > Now I'm thinking about a tiny IOCCC raytracer from back in the day > and wondering if that can be tweaked for ASCII art output. > > Elijah > ------ > first would have to find the IOCCC code yep ... that was a lot of fun ... thx :) %%%*****+++++||||||:::::..... #####%%%%%%*****+++++||||||:::::...... #####%%%%%%*****+++++||||||:::::...... |||::::::....... ######%%%%%%******++++++||||||:::::::...... ######%%%%%%******+++++++||||||::::::...... ...... #######%%%%%%%*******+++++++|||||||:::::::....... #######%%%%%%%*******+++++++||||||:::::::....... #######%%%%%%%%********+++++++||||||||::::::::....... ########%%%%%%%%*******++++++++||||||||:::::::........ %%%%%%*********++++++++|||||||||::::::::......... ########%%%%%%%%%********+++++++++||||||||:::::::::........ ***+++++++++||||||||||:::::::::......... #########%%%%%%%%%%*********+++++++++|||||||||::::::::::......... ||||||||||::::::::::.......... ##########%%%%%%%%%%**********++++++++++||||||||||::::::::::.......... ||||||||::::::::::........... ###########%%%%%%%%%%***********+++++++++++|||||||||||:::::::::::.......... :::::............ ############%%%%%%%%%%%************++++++++++++|||||||||||::::::::::::........... :::............ ############%%%%%%%%%%%%************+++++++++++++||||||||||||::::::::::::............. . #############%%%%%%%%%%%%%*************+++++++++++++|||||||||||||:::::::::::::............. ##############%%%%%%%%%%%%%%**************+++++++++++++||||||||||||||::::::::::::::.............. ##############%%%%%%%%%%%%%%%**************+++++++++++++++|||||||||||||||::::::::::::::............... ###############%%%%%%%%%%%%%%%%***************+++++++++++++++||||||||||||||||:::::::::::::::................ #######%%%%%%%%%%%%%%%%%****************++++++++++++++++||||||||||||||||::::::::::::::::................ ######%%%%%%%%%%%%%%%%%*****************+++++++++++++++++||||||||||||||||:::::::::::::::::................. ####%%%%%%%%%%%%%%%%%%******************+++++++++++++++++||||||||||||||||||::::::::::::::::::................. ###%%%%%%%%%%%%%%%%%%*******************++++++++++++++++++||||||||||||||||||:::::::::::::::::::.................. #%%%%%%%%%%%%%%%%%%%********************+++++++++++++++++++|||||||||||||||||||:::::::::::::::::::................... *******************++++++++++++++++++++||||||||||||||||||||::::::::::::::::::::.................... *******************++++++++++++++++++++|||||||||||||||||||||:::::::::::::::::::::..................... ******************+++++++++++++++++++++||||||||||||||||||||||:::::::::::::::::::::...................... *****************++++++++++++++++++++++|||||||||||||||||||||||::::::::::::::::::::::...................... ****************+++++++++++++++++++++++|||||||||||||||||||||||:::::::::::::::::::::::........................ ***************++++++++++++++++++++++++||||||||||||||||||||||||::::::::::::::::::::::::........................ -- . ._!__ __ __ / _\/_ |_ \!_ / / 7 / /| \ \_ _/ / \ . \_//__/|_\_\!_. |