VignetteEffect class

Vignette effect for VR lens simulation. Darkens the edges of each eye viewport to simulate lens optics.

Constructors

VignetteEffect({double innerRadius = 0.5, double outerRadius = 1.0, double darkness = 0.95, bool enabled = true})

Properties

darkness double
Maximum darkness at edges (0-1).
getter/setter pair
enabled bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
innerRadius double
Inner radius where vignette starts (0-1, relative to viewport).
getter/setter pair
outerRadius double
Outer radius where vignette reaches full darkness (0-1).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(Canvas canvas, Size viewportSize) → void
Draws the vignette on a single eye viewport.
drawLensFrame(Canvas canvas, Size viewportSize) → void
Draws the circular lens frame for VR headset simulation.
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