Initial file
This commit is contained in:
commit
03758163f3
1 changed files with 8 additions and 0 deletions
8
mandelbrot.nim
Normal file
8
mandelbrot.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import complex, colors
|
||||||
|
|
||||||
|
|
||||||
|
proc getComplexValueForPixel(x:int, y:int, height:int, width:int, zoom:float): Complex =
|
||||||
|
(re: (x-width/2.0)/zoom, im: (y-height/2.0)/zoom)
|
||||||
|
|
||||||
|
proc colorMap(i:int, nMax:int): Color =
|
||||||
|
rgb(0, 0, 0)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue