pixie/tests/test_images.nim
Ryan Oldenburg 42da6582cf bmp stuff
2020-11-20 13:18:37 -06:00

12 lines
273 B
Nim

import pixie, chroma
block:
var image = newImage(10, 10)
image[0, 0] = rgba(255, 255, 255, 255)
doAssert image[0, 0] == rgba(255, 255, 255, 255)
block:
var image = newImage(10, 10)
image.fill(rgba(255, 0, 0, 255))
doAssert image[0, 0] == rgba(255, 0, 0, 255)