Open TheWindRider opened 6 years ago
The last video suggest room for improvement regarding the black area, and I suggest modify the drawFractal() method:
drawFractal()
red
green
blue
if (iterations != Mandelbrot::MAX_ITERATIONS)
hue
(double) totalPixels / rangeTotal
MAX_ITERATIONS
The last video suggest room for improvement regarding the black area, and I suggest modify the
drawFractal()
method:red
,green
,blue
calculations outside ofif (iterations != Mandelbrot::MAX_ITERATIONS)
blobhue
variable outside of that if statement, and sethue
equal to(double) totalPixels / rangeTotal
within the if statementhue
value (e.g., =1.0), black area, which corresponds toMAX_ITERATIONS
, will be other colors