Toggle Sidebar B
Light & dark mode D

ColorWheel

A directional gradient that smoothly cycles through rainbow colors or a custom set of three colors

A directional gradient that smoothly cycles through rainbow colors or a custom set of three colors

Props

PropTypeDefaultDescription
mode"rainbow" | "custom"rainbowRainbow cycles through the full spectrum; Custom loops through your three chosen colors
colorAcolor#ff0000First color in the cycle
colorBcolor#00ff88Second color in the cycle
colorCcolor#0066ffThird color in the cycle
scalerange1Number of color cycles across the viewport
anglerange0Direction the gradient flows
speedrange0.05Speed at which the gradient cycles
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"oklchColor space for blending between custom colors

Usage

vue
<Shader>
  <ColorWheel />
</Shader>