pixie/examples/heart.nim

19 lines
297 B
Nim
Raw Normal View History

2021-02-18 19:39:11 +00:00
import pixie
2021-02-14 04:45:27 +00:00
2021-02-25 18:05:46 +00:00
let image = newImage(200, 200)
2021-02-14 04:45:27 +00:00
image.fill(rgba(255, 255, 255, 255))
image.fillPath(
"""
M 20 60
A 40 40 90 0 1 100 60
A 40 40 90 0 1 180 60
Q 180 120 100 180
Q 20 120 20 60
z
""",
parseHtmlColor("#FC427B").rgba
)
image.writeFile("examples/heart.png")