This commit is contained in:
@@ -178,7 +178,7 @@ func mandelbrot(c complex128) uint16 {
|
|||||||
for i := 0; i < Iterations; i++ {
|
for i := 0; i < Iterations; i++ {
|
||||||
z = z*z + c
|
z = z*z + c
|
||||||
if cmplx.IsNaN(z) {
|
if cmplx.IsNaN(z) {
|
||||||
return uint16(i * 1024)
|
return uint16(i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Iterations
|
return Iterations
|
||||||
|
|||||||
Reference in New Issue
Block a user