WIP
This commit is contained in:
parent
572116ba4a
commit
2948a9ea5d
7 changed files with 83 additions and 7 deletions
15
main.nim
Normal file
15
main.nim
Normal 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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue