Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make color 0 black, and make points "in the set" be colored black.

  • Loading branch information...
commit 52097d1d3ea6de70197f013b02fecdfca2cd05cf 1 parent ac5d650
colomon authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 mandelbrot-color.pl
6 mandelbrot-color.pl
... ... @@ -1,6 +1,6 @@
1 1 use v6;
2 2
3   -my $height = 35;
  3 +my $height = 31;
4 4 my $width = $height;
5 5 my $max_iterations = 50;
6 6
@@ -231,10 +231,10 @@
231 231 sub mandel(Complex $c) {
232 232 my $z = 0i;
233 233 for ^$max_iterations {
234   - return $_ if ($z.abs > 2);
  234 + return $_ + 1 if ($z.abs > 2);
235 235 $z = $z * $z + $c;
236 236 }
237   - return $max_iterations;
  237 + return 0;
238 238 }
239 239
240 240 sub subdivide($low, $high, $count) {

0 comments on commit 52097d1

Please sign in to comment.
Something went wrong with that request. Please try again.