ScanlineFilter class final
Adds alternating scanline attenuation with an optional animated rolling bar.
The filter keeps glyph content intact but modulates cell colors to evoke a CRT-style pass. Use barStrength and barSpeed to animate a brighter band sweeping vertically through the frame.
- Inheritance
-
- Object
- BufferFilter
- ScanlineFilter
Constructors
- ScanlineFilter({double lineStrength = 0.14, double barStrength = 0.18, double barSpeed = 0.9, double barHeightFraction = 0.22})
Properties
- barHeightFraction → double
-
Height of the rolling bar as a fraction of the frame height.
final
- barSpeed → double
-
Vertical speed of the rolling bar, in screens per second.
final
- barStrength → double
-
Additional brightness applied inside the rolling bar.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineStrength → double
-
Alternating row attenuation in the range
0.0..1.0.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
Buffer source, Buffer target, double dt) → void -
override
-
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