scifi library

Classes

Ghosts
Simulated particles for seamless loops: each particle is stepped forward from its birth time so at(t) is a pure function of t.
GhostSpec

Properties

empBlastEffect → PixelEffect
final
energyCoreEffect → PixelEffect
final
forceFieldEffect → PixelEffect
final
glitchEffect → PixelEffect
final
hologramEffect → PixelEffect
final
jetpackEffect → PixelEffect
final
laserGridEffect → PixelEffect
final
scannerEffect → PixelEffect
final
scifiEffects → List<PixelEffect>
final
teleporterPadEffect → PixelEffect
final
tractorBeamEffect → PixelEffect
final
warpInEffect → PixelEffect
final
warpOutEffect → PixelEffect
final

Functions

flash(Painter p, double t, double t0, double x, double y, double r, int c, double k, double life) → void
A light that flares at t0 and dies over life.
since(double t, double t0, double period) → double
Smallest positive age of an event at t0 in a loop of period period, seen at t.
strokeArc(Painter p, List<Point2> pts, List<int> c, [double k = 1.0, double w = 1.0]) → void
Strokes an electric arc along pts with halo, body, white-hot core, and glow.