ContourLines

Draw topographical contour lines based on luminance or alpha

Props

PropTypeDefaultDescription
levelsrange5Number of contour levels
lineWidthrange2Width of the contour lines in pixels
softnessrange0Edge softness of the lines (0 = sharp, 1 = soft)
gammarange0.5Contour distribution. <1 clusters in bright, >1 clusters in dark
invertcheckboxfalseInvert the source values
source"luminance" | "alpha"luminanceUse luminance or alpha channel for contours
colorMode"source" | "custom"sourceUse source image colors or custom colors
lineColorcolor#000000Color of the contour lines (custom mode)
backgroundColorcolortransparentBackground color (custom mode)

Usage

vue
<Shader>
  <ContourLines>
    <Circle />
  </ContourLines>
</Shader>