This commit is contained in:
joachimschmidt557 2019-03-07 14:00:15 +01:00
parent 572116ba4a
commit 2948a9ea5d
7 changed files with 83 additions and 7 deletions

15
main.nim Normal file
View file

@ -0,0 +1,15 @@
import mandelbrot, colors
echo mandelbrot.generateImage(800, 600, 150'f64, 32, 570)[0][0]
import stb_image/write as stbiw
# Stuff some pixels
var data: seq[uint8] = @[]
data.add(0x00)
data.add(0x80)
data.add(0xFF)
# save it (as monochrome)
stbiw.writeBMP("three.bmp", 3, 1, stbiw.Y, data)