Add display components 041-065; move Icon into display; QR via rsc.io/qr

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 18:37:54 -04:00
1 parent 59fde4096d
commit 0247a130f5
41 files changed
+2152 -44

No files matched your search

+2 -1
View File
@@ -75,7 +75,8 @@ func build(t *testing.T, ds map[string]decl, name string) *pixel.Sprite {
func render(sp *pixel.Sprite, ink pixel.Slot) []byte {
return ui.Render(func(c *ui.Context) {
pixel.Use(c, pixel.Settings{Palette: pixel.SummerDay, Dot: 1})
pixel.Icon(c, sp, pixel.IconOptions{Slot: ink})
k := pixel.K(c)
ui.Box(c).Size(12, 12).Draw(func(p *ui.Painter, r ui.Rect) { k.Canvas(p, r).Sprite(0, 0, sp, 0, ink, 1) })
}, 12, 12, 1).Pix
}