Your system asks for reduced motion, so VFX-JS draws nothing. Demos on this site show plain HTML.
Type
PatternRefractionParams
effects/src/pattern-refraction.ts:158 ↗import type { PatternRefractionParams } from "@vfx-js/effects";Properties
angle
angle: number
Pattern rotation, in degrees.
centerX
centerX: number
Pattern center X, in [0, 1].
centerY
centerY: number
Pattern center Y, in [0, 1].
dispersion
dispersion: number
Chromatic dispersion (per-channel refraction offset), in [0, 1].
edgeWrap
edgeWrap: RefractionEdgeWrap
Out-of-range edge sampling.
frost
frost: number
Frosted-glass jitter, in [0, 1].
pattern
pattern: RefractionPattern
Refraction pattern.
smoothness
smoothness: number
Smooth the displacement across pattern boundaries, in [0, 1].
strength
strength: number
Refraction amount.
stripWidth
stripWidth: number
Width of one strip/cell, as a fraction of the element, in (0, 1].