Add feedback components 106-130; inert scope, focus return, two-step deploy

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 20:58:30 -04:00
1 parent bce416182e
commit bd3877e1b1
87 files changed
+2492 -147

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ type WaveTextOptions struct {
// WaveText bobs characters on a sine wave at 10 fps.
func WaveText(c *ui.Context, s string, o WaveTextOptions) *ui.Element {
k, sc := pixel.K(c), scale(o.Scale)
amp := orDef("WaveText Amp", o.Amp, 2)
amp := pixel.Or("WaveText Amp", o.Amp, 2)
return block(c, k, s, pixel.Measure(s)*sc, pixel.LineHeight*sc+2*amp, func(g pixel.Canvas) {
step := g.Step(10)
each(s, sc, func(i int, r rune, x int) {