ui
library
Functions
-
drawWord(Painter p, List<WordLetter> items, WordStyle st)
→ void
-
Draw letters as one word with 1 px bevel, 1 px outline, drop shadow, optional diagonal shine & white flash.
-
haloActor(Painter p, ActorDefinition? a, int c, double k, [double t = 0.0])
→ void
-
A glowing 1 px line just outside a character, flickering.
-
heartPal(List<int> c)
→ Map<String, Object>
-
-
lightActor(Painter p, ActorDefinition? a, int c, double k, [double rim = 0.0, double t = 0.0])
→ void
-
Light a character: warm additive light over its body and bright rim inside its dark outline.
-
panel(Painter p, double x, double y, double w, double h, PanelColors col, {double r = 3.0, double a = 1.0, double? shine})
→ void
-
-
shake(double t, double amp, [double t0 = 0.0, double len = 0.3, int seed = 1, double hz = 32.0])
→ (int, int)
-
-
spell(String str, [PixelFontKind font = PixelFontKind.big])
→ SpelledWord
-
Lay out
str left to right in font pixels.
-
tintActor(Painter p, ActorDefinition? a, double k, List<int> ramp)
→ void
-
Flash a character in light: pixels recolored by brightness into
ramp.