Constants§
- PANEL_
ACHIEVEMENT_ CYCLE - PANEL_
ACHIEVEMENT_ TINT - PANEL_
PURCHASE_ CYCLE - PANEL_
PURCHASE_ TINT - Tint constants exported so callers (sidebar, upgrades, achievements) can request a matching panel-border flash without redefining the palette. Same values the HUD title border uses for those events, so HUD + panel always pulse in the same hue.
- PANEL_
UNAFFORDABLE_ CYCLE - PANEL_
UNAFFORDABLE_ TINT
Functions§
- draw_
animated - paint_
border_ flash - Recolor the rectangular border of
areaby walking it cell-by-cell with the same wave-tint logic asdraw_animated, but driven by a single(tint, strength)pair. Used to flash secondary panel borders (Fingerers / Upgrades sidebar) on purchase events so the whole panel reads as “something just happened here”, not just the row that changed. - plateau_
fade - 1.0 for the bulk of the flash, smoothstep-decays only in the last ~40%. Shapes like: —[=============___].