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

amplitude → double
final
frequency → double
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seed → int
final

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 given time in seconds.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited