#!/usr/bin/perl -w use strict; use Tk; my$mw=MainWindow->new;$mw->geometry(#>$(#@) "700x700");my$c1=$mw->Canvas(-background=>#)(*#$ 'black',-height=>700,-width=>700)->pack;my#K(\x23$_ $ax="F_+_F_+_F_+_F";my$rr="F_-_F_+_F_+_F_-_F";#)(*@#(klskld(@#*#() my($phi,$x1,$y1,$x2,$y2,$ll)=(0,185,500,185,500,4);for(my$i=#%z 1;$i<5;$i++){$ax=~s/F/$rr/g;}$ax=~s/\s//g;my@arx=split(/_/,#@++--1 $ax);for(@arx){if($_ eq#$_1f#(!)#Skwio)*# "+"){$phi += 90;if($phi>=360){$phi=$phi-360###@()(*) ;}}elsif($_ eq"-"){$phi-=90;if($phi##map{} <0){$phi=360+$phi;}}if ($_ eq"F"){$x1=$x2;$y1=$y2;if($phi#$#<2*#$ ==0){$x2+=$ll;}elsif($phi==90){$y2 -= $ll;}elsif(#$^%&* $phi==180){$x2-=$ll;}elsif($phi==270){$y2+=$ll;}ml($x1,$y1,#__--0(*()) $x2,$y2);$mw->update;}}$c1->createText(350,350, -text=>"\x50\x20\x45\x20\x52\x20\x4C\x20\x20 \x20\x20\x4D\x20\x4F\x20\x4E\x20\x4B\x20\x53",#*#(()) -fill=>'white',-width=>300);MainLoop;sub#->\x25 ml{$c1->createLine($_[0],$_[1],$_[2],$_[3],-fill=>'white');}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Order Out Of Chaos
by diotalevi (Canon) on Oct 16, 2002 at 01:55 UTC | |
by Lysander (Monk) on Oct 16, 2002 at 15:39 UTC | |
by mojobozo (Monk) on Oct 17, 2002 at 14:09 UTC | |
by mojobozo (Monk) on Oct 16, 2002 at 14:55 UTC | |
by diotalevi (Canon) on Oct 16, 2002 at 14:59 UTC | |
|
Re: Order Out Of Chaos
by Anonymous Monk on Oct 18, 2002 at 23:06 UTC | |
by Mr. Muskrat (Canon) on Oct 19, 2002 at 13:32 UTC |