status library

Constants

flameLayers → const List<(double, double, int)>

Properties

bleedingEffect → PureEffect
final
burningEffect → PureEffect
final
charmedEffect → PureEffect
final
confusedEffect → PureEffect
final
cursedEffect → PureEffect
final
frozenEffect → PureEffect
final
hasteEffect → PureEffect
final
petrifiedEffect → SimulatedEffect
final
poisonedEffect → PureEffect
final
rageEffect → PureEffect
final
sleepEffect → PureEffect
final
slowedEffect → PureEffect
final
statusEffects → List<PixelEffect>
final
stunnedEffect → PureEffect
final

Functions

actorEyes(ActorDefinition a) → List<ActorEye>
actorShape(ActorDefinition a) → ActorShape
bitmap(List<String> rows, [int k = 1, bool flip = false]) → IconMask
A shape from a bitmap (rows of strings, "." empty), centred on (0, 0).
colorAt(ActorDefinition a, int x, int y) → int
ember(Painter p, double x, double y, double u, List<int> e, double ph, [double k = 1.0]) → void
An ember at age u: hot and flickering, cooling to a dim red that blinks out.
flame(Painter p, double x, double y, double size, double u, List<int> f, [double heatSeed = 0.0]) → void
A ball of flame at age u (0..1) of its life, radius size, cooling down f.
haze(Painter p, double x, double y, double rx, double ry, int col, double a) → void
A flat, translucent bank of haze centred on (x, y), rx by ry.
heartShape(double u, double v) → bool
A heart in unit space (two lobes and a point, about 2 wide and 2 tall, centred).
icon(Painter p, num x, num y, int ext, IconMask inside, List<int> r, [double a = 1.0, Map<String, int>? paint]) → void
A little shaded pixel icon at (x, y) filled from r = outline, shadow, body, light.
shaped(bool f(double u, double v), double s, [double ang = 0.0]) → IconMask
IconMask for a shape given in its own unit space by f(u, v).
smoke(Painter p, double x, double y, double size, double u, int col, [double k = 1.0, int warm = 0]) → void
A puff of smoke at age u (0..1), swelling and thinning.
starShape([double r0 = 0.45]) → bool Function(double u, double v)
A five-pointed star in unit space (points at radius 1, inner corners at r0).
tnoise(double t, double d, double f, [int seed = 0, double off = 0.0]) → double
Noise of time t that repeats every d seconds, about f wiggles a second.
tongue(Painter p, double x, double y, double h, double w, double sx, List<int> f, double t, double d, int n, [List<(double, double, int)> layers = flameLayers]) → void
A flame tongue standing on (x, y): h tall, w half-wide at its root.
travel(double v, double g, double d, double a) → double
wnoise(double x, int period, [int seed = 0]) → double
1D value noise in -1, 1 whose lattice wraps every period cells.

Typedefs

IconMask = String Function(int dx, int dy)