Skip to content

Commit

Permalink
Write out the set's meta data to the graphics file.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Dec 5, 2011
1 parent e2113d1 commit f80fa19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/gtk-mandelbrot.pl
Expand Up @@ -10,6 +10,7 @@
say "Mouse left button: click and drag to define a zoom area"; say "Mouse left button: click and drag to define a zoom area";
say "Mouse right button: click to create a Julia set for that point"; say "Mouse right button: click to create a Julia set for that point";
say "Press 'm' to increase the number of iterations for a window"; say "Press 'm' to increase the number of iterations for a window";
say "Press 's' to save the current window to a file";
say ""; say "";


my @color_map = ( my @color_map = (
Expand Down Expand Up @@ -302,6 +303,8 @@


my $file = open $filename, :w; my $file = open $filename, :w;
$file.say: "P3"; $file.say: "P3";
$file.say: "# $filename";
$file.say: "# $.upper-right $.delta $.max_iterations";
$file.say: "$.width $.height"; $file.say: "$.width $.height";
$file.say: "255"; $file.say: "255";
for @.rows -> $row { for @.rows -> $row {
Expand Down

0 comments on commit f80fa19

Please sign in to comment.