Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 20 Feb 1998.
Ehm, some 'thingie' for perl-owners...

Ehm, some 'thingie' for perl-owners...

Yeah, well...ehm...
This is best viewed on a terminal with VT100 settings (Archaic, no?)

It oesn't really do anything but draw circles, enfin...
judge for yourself...

perl can be found (for most platforms) @ http://www.perl.com

-- 
  .        .       *    . Ojosh!ro '98|                         
     +  /   .'`-.  .         .        |                         
       /| .'`-.  `-.    .-""""-.   +  |                        
.  *  / !'     `-. /   /   0  . \     |                        
   . /`/`-.     / /   |     ( )  |    |                        
     `/  _ `-.-` /   . \   . o  /     |                        
  ___Z__//   -  /\_____/`-.__.-'  . * |                        
 /     //   -  /      /            .  |                        
 ~-._ //   -.-`-./`-,/  .  +          |                        
+  / ~ `-.-'/    `-./         *       |                        
  '   '/   /   .      *   .         * |                         
--------------------------------------+-------------------------
                                      | The universe is just big
                                      | enough to contain all we
                                      | can imagine to be in it.
                                      | mailto:ojoshiro


#!/usr/bin/perl
require "AText.pm";
my @golden = ( 1,2,3,5,8,13,21,34,55,89,144,233 );
my ( $y , $x ) = ( 23 , 78 );
$x /= 2;
sub circle
{	my $straal = shift;
	my $t;
	for ( $t = 0.0 ; $t <= 2*3.1415 ; $t += .0333 )
	{	$field[ int( sin($t)*$straal+$y ) ][ int( cos($t)*(1.4*$straal)+$x )] = 1;
	}
	return;

}	

sub horline
{	my $height = shift;
	for ( 0..$x*2 )
	{	$field[ int($height) ][ int($_)] = 1;
	}
	return;
}

	my $field = [[]];
my $dir = -1;
my $k =  8;
while ( $k != -1 )
{	print Key( 'home');
	$k += $dir;
	for ( $t = 0.0 ; $t <= 3.1415*.5 ; $t += 3.1415/$golden[$k] )
	{	circle( cos( $t )*$y );
	}
	my $line = "";
	for ( $t = 0 ; $t <= $y*2 ; $t += 2 )
	{	for ( $u = 0 ; $u <= $x*2 ; $u++ )
		{	if ( !$field[$t][$u] && !$field[$t+1][$u] )
			{	$line .= " ";
			} elsif ( !$field[$t][$u] && $field[$t+1][$u] )
			{	$line .= "o";
			} elsif ( $field[$t][$u] && !$field[$t+1][$u] )
			{	$line .= "\"";
			} elsif ( $field[$t][$u] && $field[$t+1][$u] )
			{	$line .= "8";
			}
			$field[$t][$u] = 0;
			$field[$t+1][$u] = 0;
		}	
		$line .= "\n";
	}
	print $line."";	
	if ($k<1||$k>9)
	{ $dir = -$dir;
	}

}	


Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,74d41a67b6f99343,start
X-Google-Attributes: gidf996b,public
From: Ojoshiro <ojo...@neroc.nl>
Subject: Ehm, some 'thingie' for perl-owners...
Date: 1998/02/20
Message-ID: <34E...@neroc.nl>#1/1
X-Deja-AN: 326886837
Content-Type: multipart/mixed; boundary="------------8037F6F294CF3F423528792"
Organization: neroc.nl
Mime-Version: 1.0
Newsgroups: alt.ascii-art
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1998 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