Toggle Sidebar B
Light & dark mode D

FallingLines

Directional falling lines with a leading-to-trailing color fade

Directional falling lines with a leading-to-trailing color fade

Props

PropTypeDefaultDescription
colorAcolor#ffffffColor at the leading edge of each line
colorBcolor#ffffff00Color at the trailing edge (transparent by default)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for interpolation between lead and trail colors
anglerange90Direction of movement in degrees (90=down, 270=up, 0=right, 180=left)
speedrange0.5Movement speed
speedVariancerange0.3Per-line speed variance (0=uniform, 1=high variance)
densityrange15Number of line columns across the canvas
trailLengthrange0.35Streak length relative to spacing (0=point, 1=continuous)
balancerange0.5Color mix midpoint (0.5=linear, 0=all trailing/colorB, 1=all leading/colorA)
strokeWidthrange0.15Line thickness as fraction of column width (0=hairline, 1=full width)
roundingrange1Rounds the leading edge (0=flat/square, 1=fully rounded cap)

Usage

vue
<Shader>
  <FallingLines />
</Shader>