[NetBehaviour] jasper johns' flag
james morris
james at jwm-art.net
Wed Sep 23 01:23:49 CEST 2009
Perl code by Pall Thyer. Command line formulated by James W. Morris.
$ diff --ignore-all-space --unchanged-line-format="%L" jasperjohns flag
#!/usr/bin/perl
binmode STDOUT, ':utf8';
@colors = ("\e[0;31m", "\e[0;34m");
@symbols = (chr(0x268c), chr(0x272a));
while(1){
($x, $y) = (int(rand(`tput cols`)), int(rand(`tput lines`)));
system 'tput', 'cup', $y, $x;
$select = int(rand(2));
print $colors[$select].$symbols[$select];
}
More information about the NetBehaviour
mailing list