ContourLines
Draw topographical contour lines based on luminance or alpha
Props
levels
Number of contour levels
- Type
- number
- Default
- 5
lineWidth
Width of the contour lines in pixels
- Type
- number
- Default
- 2
softness
Edge softness of the lines (0 = sharp, 1 = soft)
- Type
- number
- Default
- 0
gamma
Contour distribution. <1 clusters in bright, >1 clusters in dark
- Type
- number
- Default
- 0.5
invert
Invert the source values
- Type
- boolean
- Default
- false
source
Use luminance or alpha channel for contours
- Type
- "luminance" | "alpha"
- Default
- luminance
colorMode
Use source image colors or custom colors
- Type
- "source" | "custom"
- Default
- source
lineColor
Color of the contour lines (custom mode)
- Type
- string
- Default
- #000000
backgroundColor
Background color (custom mode)
- Type
- string
- Default
- transparent