Snap animated paths to MyGo's path-cache grid; removes cross-test snapshot flake

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:14:04 -04:00
1 parent bae0a48351
commit cfc7ab023d
5 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ func Spinner(c *ui.Context, opts SpinnerOptions) *ui.Element {
x := cx + rad*float32(math.Cos(a))
y := cy + rad*float32(math.Sin(a))
alpha := 1 - float32(i)*0.22
p.FillPath(internal.Diamond(x, y, r.W*0.3), color.Alpha(alpha))
p.FillPath(internal.Diamond(internal.Snap(p, x), internal.Snap(p, y), internal.Snap(p, r.W*0.3)), color.Alpha(alpha))
}
})
if opts.ShowLabel {