Add canvas, dither, sprites, clock and pixel elements

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 16:02:31 -04:00
1 parent 538031af31
commit d33bf0cbbb
11 files changed
+1274 -11

No files matched your search

+2 -1
View File
@@ -30,6 +30,7 @@ type Kit struct {
dot float32
locale Locale
now time.Time
clock func() time.Time
reduce bool
}
@@ -80,7 +81,7 @@ func K(c *ui.Context) Kit {
if s.Now != nil {
now = s.Now()
}
return Kit{pal: s.Palette, dot: float32(s.Dot), locale: s.Locale, now: now, reduce: c.Preferences().ReduceMotion}
return Kit{pal: s.Palette, dot: float32(s.Dot), locale: s.Locale, now: now, clock: s.Now, reduce: c.Preferences().ReduceMotion}
}
func frameOf(c *ui.Context) *frame {