Closed rsiqueira closed 8 years ago
Are you sure this example works? I'm getting garbage output into the terminal on my machine (see screenshot).
I'm on
zoffix@ZofMain:/tmp/tmp.sZAMIjgUqf$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Bodhi Linux 2.0.0
Release: 12.04
Codename: precise
zoffix@ZofMain:/tmp/tmp.sZAMIjgUqf$ uname -a
Linux ZofMain 3.5.0-11-generic #11 SMP Wed Aug 22 14:45:14 CDT 2012 i686 i686 i386 GNU/Linux
zoffix@ZofMain:/tmp/tmp.sZAMIjgUqf$
Zoffixznet,
The output is a binary image file (.pbm format), as requested by the specification describing the expected output: https://benchmarksgame.alioth.debian.org/u32q/mandelbrot-description.html
Usage - The script should be run as: perl6 mandelbrot.pl 200 > image.pbm
To debug and see the result in the screen, it is also possible to see the output (Mandelbrot Set) as ASCII ART. To see this, you can comment the "$*OUT.write..." lines and uncomment the lines around print "o", "print "." and also uncomment the "print "\n" line.
Got it. The image looks very nice. Thanks a lot.
Generates the Mandelbrot Set fractal using Perl 6. To be submitted to "The Computer Language Benchmarks Game".