Maps surface curvature values to a continuous grayscale gradient, producing
a FreeSurfer-style sulcal shading that is visually smoother than the binary
mapping of curv_cols.
Usage
curv_cols_smooth(
vals,
light = "#D4D4D4",
dark = "#3A3A3A",
quantiles = c(0.05, 0.95)
)Arguments
- vals
A numeric vector of curvature values for each vertex.
- light
Hex color for the lightest shade (gyral crowns). Default
"#D4D4D4".- dark
Hex color for the darkest shade (sulcal fundi). Default
"#3A3A3A".- quantiles
Length-2 numeric vector of lower and upper quantiles used to clamp extreme values before rescaling. Default
c(0.05, 0.95).
Details
Values are clamped to the range defined by quantiles to prevent
outliers from washing out the colour map.
The clamped values are linearly interpolated between dark (most
negative / sulcal) and light (most positive / gyral).