LightFlicker class
Deterministic, candle-like flicker applied to a light.
frequency is roughly the number of oscillations per second, amplitude is the relative variation (0.12 = ±12% on radius and intensity) and seed produces different flicker patterns.
Constructors
- LightFlicker({double frequency = 8, double amplitude = 0.12, int seed = 0})
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sample(
double time) → double -
Returns a value in
[-1, 1]for the giventimein seconds. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited