VHSEffect class

A shader-based VHS / retro tape playback effect.

Simulates analog video artifacts including scanlines, noise grain, tracking errors, color bleeding, vignette, and subtle vertical roll.

{@tool snippet}

GKWidget(
  effect: VHSEffect(
    noiseAmount: 0.1,
    trackingError: 0.05,
  ),
  trigger: GKTrigger.auto,
)

{@end-tool}

Inheritance

Constructors

VHSEffect({double noiseAmount = 0.1, double trackingError = 0.05})
Creates a VHSEffect.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
noiseAmount double
The intensity of random noise grain overlaid on the image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackingError double
The strength of horizontal tracking error displacement.
final

Methods

build(BuildContext context, GKController controller, {Widget? child}) Widget
Builds the widget tree for this effect.
override
dispose() → void
Override to release resources held by this effect.
inherited
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