Permalink
Browse files

Get working with current Rakudo.

  • Loading branch information...
1 parent c6e8dfc commit 6fc53cdeec08238ad8bff7fa4a0711d937bc5710 @colomon committed Apr 17, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 mandelbrot-color.pl
View
@@ -231,7 +231,9 @@
sub mandel(Complex $c) {
my $z = 0i;
for ^$max_iterations {
- return $_ + 1 if ($z.abs > 2);
+ if ($z.abs > 2) {
+ return $_ + 1;
+ }
$z = $z * $z + $c;
}
return 0;
@@ -250,3 +252,5 @@ ($low, $high, $count)
my $middle = @line.pop;
(@line, $middle, @line.reverse).map({ @color_map[$_] }).join(' ').say;
}
+
+say "Done!";

0 comments on commit 6fc53cd

Please sign in to comment.