DistortionPulse class Rendering
One expanding distortion ring, in screen space.
Constructors
- DistortionPulse({Vector2? center, double radius = 0.0, double thickness = 0.08, double strength = 0.02, double chromaticAberration = 0.5})
Properties
- center ↔ Vector2
-
Where the ring is centered, in screen UV (origin top-left).
getter/setter pair
- chromaticAberration ↔ double
-
How far the red and blue taps separate across the ring, as a fraction of
the displacement.
0is none.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- radius ↔ double
-
The ring's current radius, aspect-corrected so it stays circular. Grow
it from 0 over the pulse's life.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strength ↔ double
-
Peak screen-UV displacement at the ring. Fade it to 0 as the pulse ends.
getter/setter pair
- thickness ↔ double
-
Radial width of the distorted band. Wider reads softer.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited