DiamondGradient
Diamond-shaped gradient radiating from a center point using Manhattan distance
Props
Prop
Details
colorAstringDefault:
#4ffb4aColor at the center of the diamond
colorAstringDefault: #4ffb4aColor at the center of the diamond
colorBstringDefault:
#4f1238Color at the outer edges of the diamond
colorBstringDefault: #4f1238Color at the outer edges of the diamond
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center point of the diamond
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center point of the diamond
sizenumberDefault:
0.7Extent of the gradient — controls how far Color A reaches before transitioning to Color B
sizenumberDefault: 0.7Extent of the gradient — controls how far Color A reaches before transitioning to Color B
rotationnumberDefault:
0Rotation in degrees — tilts the diamond into a rhombus
rotationnumberDefault: 0Rotation in degrees — tilts the diamond into a rhombus
repeatnumberDefault:
1Number of times the gradient repeats outward. Values above 1 create concentric diamond or square bands.
repeatnumberDefault: 1Number of times the gradient repeats outward. Values above 1 create concentric diamond or square bands.
roundnessnumberDefault:
0Morphs from a sharp diamond (0) to a square (1)
roundnessnumberDefault: 0Morphs from a sharp diamond (0) to a square (1)
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
oklchColor space for color interpolation
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: oklchColor space for color interpolation