TriangularGrid
Tiling grid of equilateral triangles with optional animated row offsets
Props
Prop
Details
colorAstringDefault:
#1a1a1aTriangle fill color
colorAstringDefault: #1a1a1aTriangle fill color
colorBstringDefault:
#ffffffGrid line color
colorBstringDefault: #ffffffGrid line color
cellsnumberDefault:
8Number of triangle rows down the shortest canvas edge
cellsnumberDefault: 8Number of triangle rows down the shortest canvas edge
thicknessnumberDefault:
1Thickness of the grid lines (0 = no lines)
thicknessnumberDefault: 1Thickness of the grid lines (0 = no lines)
rotationnumberDefault:
0Rotation of the grid in degrees
rotationnumberDefault: 0Rotation of the grid in degrees
softnessnumberDefault:
0Softness of the line edges (0 = crisp, 1 = very soft)
softnessnumberDefault: 0Softness of the line edges (0 = crisp, 1 = very soft)
variationnumberDefault:
0Per-triangle random lightening/darkening of the fill color
variationnumberDefault: 0Per-triangle random lightening/darkening of the fill color
speednumberDefault:
0Animates the triangle rows drifting horizontally (0 = static)
speednumberDefault: 0Animates the triangle rows drifting horizontally (0 = static)
speedVariancenumberDefault:
0.3Per-row random speed variance for irregular drifting motion
speedVariancenumberDefault: 0.3Per-row random speed variance for irregular drifting motion
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
linearColor space for color interpolation
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: linearColor space for color interpolation