VignetteFilter class final
Darkens the edges of the frame while preserving the center.
This is useful for modal backdrops, camera-like framing, and scene focus.
strength controls the maximum edge attenuation, while roundness lets
callers bias the shape toward a circle (1.0) or a wider terminal frame.
- Inheritance
-
- Object
- BufferFilter
- VignetteFilter
Constructors
- VignetteFilter({double strength = 0.35, double roundness = 1.0, BufferFalloff? falloff})
Properties
- falloff → BufferFalloff
-
Custom falloff curve for advanced shaping.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- roundness → double
-
Horizontal shape bias. Values above
1.0stretch the vignette wider.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strength → double
-
Maximum edge attenuation in the range
0.0..1.0.final
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