Finally correct

This commit is contained in:
joachimschmidt557 2019-02-08 12:45:54 +01:00
parent 3eddbc0afe
commit 428500be37
7 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ let getComplexValueForPixel x y height width zoom =
Complex ((x-width/2.0)/zoom, (y-height/2.0)/zoom) Complex ((x-width/2.0)/zoom, (y-height/2.0)/zoom)
let colorMap i nMax = let colorMap i nMax =
let h = (float i) / 100.0 let h = ((float i) / 100.0) * 360.0
let s = 1.0 let s = 1.0
let v = if i < nMax then 1.0 else 0.0 let v = if i < nMax then 1.0 else 0.0
//printfn "%f %f %f" h s v //printfn "%f %f %f" h s v

View file

@ -6,7 +6,7 @@ open System
let main argv = let main argv =
printfn "Mandelbrot!" printfn "Mandelbrot!"
let result = MandelBrot.generate 800 600 200.0 2 570 let result = MandelBrot.generate 800 600 150.0 32 570
result.Save("mandelbrot.bmp") result.Save("mandelbrot.bmp")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Before After
Before After