Draw a sphere: Difference between revisions

→‎{{header|Perl 6}}: fix broken binary output
m (→‎{{libheader|VPython}}: # uncomment any (or all))
(→‎{{header|Perl 6}}: fix broken binary output)
Line 1,568:
 
=={{header|Perl 6}}==
{{broken}}
{{trans|C}}
 
Line 1,584 ⟶ 1,583:
my $out = open( $outfile, :w, :bin ) or die "$!\n";
$out.say("P5\n$x $y\n$depth"); # .pgm header
$out.printwrite( Blob.new(draw_sphere( ($x-1)/2, .9, .2)».chrs ) );
$out.close;
}
Anonymous user