Initial file

This commit is contained in:
joachimschmidt557 2019-02-24 14:20:07 +01:00
commit 03758163f3

8
mandelbrot.nim Normal file
View 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)