FallingLines
Directional falling lines with a leading-to-trailing color fade
Props
Prop
Details
colorAstringDefault:
#ffffffColor at the leading edge of each line
colorAstringDefault: #ffffffColor at the leading edge of each line
colorBstringDefault:
#ffffff00Color at the trailing edge (transparent by default)
colorBstringDefault: #ffffff00Color at the trailing edge (transparent by default)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
linearColor space for interpolation between lead and trail colors
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: linearColor space for interpolation between lead and trail colors
anglenumberDefault:
90Direction of movement in degrees (90=down, 270=up, 0=right, 180=left)
anglenumberDefault: 90Direction of movement in degrees (90=down, 270=up, 0=right, 180=left)
speednumberDefault:
0.5Movement speed
speednumberDefault: 0.5Movement speed
speedVariancenumberDefault:
0.3Per-line speed variance (0=uniform, 1=high variance)
speedVariancenumberDefault: 0.3Per-line speed variance (0=uniform, 1=high variance)
densitynumberDefault:
15Number of line columns across the canvas
densitynumberDefault: 15Number of line columns across the canvas
trailLengthnumberDefault:
0.35Streak length relative to spacing (0=point, 1=continuous)
trailLengthnumberDefault: 0.35Streak length relative to spacing (0=point, 1=continuous)
balancenumberDefault:
0.5Color mix midpoint (0.5=linear, 0=all trailing/colorB, 1=all leading/colorA)
balancenumberDefault: 0.5Color mix midpoint (0.5=linear, 0=all trailing/colorB, 1=all leading/colorA)
strokeWidthnumberDefault:
0.15Line thickness as fraction of column width (0=hairline, 1=full width)
strokeWidthnumberDefault: 0.15Line thickness as fraction of column width (0=hairline, 1=full width)
roundingnumberDefault:
1Rounds the leading edge (0=flat/square, 1=fully rounded cap)
roundingnumberDefault: 1Rounds the leading edge (0=flat/square, 1=fully rounded cap)
Usage
<Shader>
<FallingLines />
</Shader>