pixie/examples/tiger.nim

16 lines
281 B
Nim
Raw Normal View History

2021-02-18 19:39:11 +00:00
import pixie
2021-01-29 20:17:24 +00:00
let image = newImage(200, 200)
image.fill(rgba(255, 255, 255, 255))
2021-01-29 20:17:24 +00:00
let tiger = readImage("examples/data/tiger.svg")
image.draw(
tiger,
translate(vec2(100, 100)) *
scale(vec2(0.2, 0.2)) *
translate(vec2(-450, -450))
)
image.writeFile("examples/tiger.png")