No modified codes have been submitted for this Microcode.
In praise of circular reasons
13. April 2009
13. April 2009
#!/usr/bin/perl $pi = 3.14195; while(1){ system 'clear'; ($offsetx, $offsety) = (int(rand(`tput cols`/2)), int(rand(`tput lines`/2))); ($radius, $angle) = (int(rand(`tput cols`/8)), 0); while($angle < 2 * $pi){ $x = int($radius * cos($angle))+$offsetx; $y = int($radius * sin($angle))+$offsety; unless($x < 0 || $y < 0){ system 'tput', 'cup', $y, $x; print "O"; } $angle += 0.1; select(undef, undef, undef, 0.05); } }