Don't scale iterations for color effect
Some checks are pending
continuous-integration/drone/push Build is passing

This commit is contained in:
Steven Polley 2019-01-07 20:50:52 -07:00
parent 107a95e7f4
commit d2dff15b6f

View File

@ -178,7 +178,7 @@ func mandelbrot(c complex128) uint16 {
for i := 0; i < Iterations; i++ {
z = z*z + c
if cmplx.IsNaN(z) {
return uint16(i * 1024)
return uint16(i)
}
}
return Iterations