Open
Description
The last video suggest room for improvement regarding the black area, and I suggest modify the drawFractal()
method:
- Put
red
,green
,blue
calculations outside ofif (iterations != Mandelbrot::MAX_ITERATIONS)
blob - Declare a
hue
variable outside of that if statement, and sethue
equal to(double) totalPixels / rangeTotal
within the if statement - By initializing the
hue
value (e.g., =1.0), black area, which corresponds toMAX_ITERATIONS
, will be other colors
Metadata
Metadata
Assignees
Labels
No labels