OPEN-UI

Perlin Noise

Canvas-based Perlin noise wave grid background. Configurable line color, wave speed and amplitude; mouse and touch interaction affect grid displacement.

Install

Use Open-UI CLI or Shadcn CLI to install the component.

Open-UI CLI

Shadcn CLI

Usage

PropDefaultDescriptionType
lineColor"black"Stroke color of the wave grid lines (CSS color).string
backgroundColor"transparent"Background color of the container (CSS color).string
waveSpeedX0.0125Horizontal speed of the Perlin wave animation.number
waveSpeedY0.005Vertical speed of the Perlin wave animation.number
waveAmpX32Horizontal amplitude of the wave displacement in pixels.number
waveAmpY16Vertical amplitude of the wave displacement in pixels.number
xGap10Horizontal spacing between grid lines in pixels.number
yGap32Vertical spacing between points on each line in pixels.number
friction0.925Decay factor for cursor-induced motion (0–1); higher values mean longer drift.number
tension0.005Spring tension pulling points back toward rest after cursor interaction.number
maxCursorMove100Maximum pixel displacement of grid points from cursor/touch influence.number
styleInline CSS styles for the root container.CSSProperties
classNameAdditional CSS class for the root container.string

Related Components