add canvas_image builtin for PNG rendering with alpha blending

Registers canvas_image(path, x, y, w, h) in the type system and
implements it in the interpreter using the image crate — scales to
exact dimensions via Lanczos3 and alpha-composites onto the pixmap.
This commit is contained in:
Will Anderson
2026-04-28 14:51:24 -05:00
parent 18b60e3bf1
commit d86bbc3740
5 changed files with 106 additions and 1 deletions
+1
View File
@@ -62,3 +62,4 @@ winit = { version = "0.29", default-features = false, features = ["rwh_05"
softbuffer = "0.3"
tiny-skia = "0.11"
fontdue = "0.8"
image = { version = "0.25", default-features = false, features = ["png"] }