Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
my @points;
|
||||
while (@points < 100) {
|
||||
my ($x, $y) = (int(rand(31))-15, int(rand(31)) - 15);
|
||||
my $r2 = $x*$x + $y*$y;
|
||||
next if $r2 < 100 || $r2 > 225;
|
||||
push @points, [$x, $y];
|
||||
}
|
||||
|
||||
print << 'HEAD';
|
||||
%!PS-Adobe-3.0 EPSF-3.0
|
||||
%%BoundingBox 0 0 400 400
|
||||
200 200 translate 10 10 scale
|
||||
0 setlinewidth
|
||||
1 0 0 setrgbcolor
|
||||
0 0 10 0 360 arc stroke
|
||||
0 0 15 360 0 arcn stroke
|
||||
0 setgray
|
||||
/pt { .1 0 360 arc fill } def
|
||||
HEAD
|
||||
|
||||
print "@$_ pt\n" for @points;
|
||||
print "%%EOF";
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
@range = -15..16;
|
||||
|
||||
for $x (@range) {
|
||||
for $y (@range) {
|
||||
$radius = sqrt $x**2 + $y**2;
|
||||
push @points, [$x,$y] if 10 <= $radius and $radius <= 15
|
||||
}
|
||||
}
|
||||
|
||||
push @sample, @points[int rand @points] for 1..100;
|
||||
push @matrix, ' ' x @range for 1..@range;
|
||||
substr $matrix[15+$$_[1]], 15+$$_[0], 1, '*' for @sample;
|
||||
print join(' ', split '', $_) . "\n" for @matrix;
|
||||
Loading…
Add table
Add a link
Reference in a new issue