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