pixie/examples/square.nim
Ryan Oldenburg f2b3c67d4b morepretty
2021-02-16 00:35:36 -06:00

12 lines
209 B
Nim

import chroma, pixie
var image = newImage(200, 200)
image.fill(rgba(255, 255, 255, 255))
var p: Path
p.rect(50, 50, 100, 100)
image.fillPath(p, rgba(255, 0, 0, 255))
image.writeFile("examples/square.png")