Documentation

Duotone

Map colors to two tones based on luminance

Props

colorAstring
Default:#ff0000
First color (used for darker areas)
colorBstring
Default:#023af4
Second color (used for brighter areas)
blendnumber
Default:0.5
Blend point between the two colors
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"
Default:linear
Color space for color interpolation

Usage

<Shader>
  <Duotone>
    <Circle />
  </Duotone>
</Shader>