A custom palette which smoothly blends across a collection of colors using linear interpolation.
More...
|
| CustomInterpolated (Color[] colors) |
|
Color | GetColor (double position) |
| Returns the color of a position on this colormap (from 0 to 1). Returns transparent if NaN. Positions outside the range will be clamped.
|
|
|
string | Name [get] |
| Human readable name for this colormap.
|
|
A custom palette which smoothly blends across a collection of colors using linear interpolation.
◆ CustomInterpolated()
ScottPlot.Colormaps.CustomInterpolated.CustomInterpolated |
( |
Color[] |
colors | ) |
|
|
inline |
◆ GetColor()
Color ScottPlot.Colormaps.CustomInterpolated.GetColor |
( |
double |
position | ) |
|
|
inline |
Returns the color of a position on this colormap (from 0 to 1). Returns transparent if NaN. Positions outside the range will be clamped.
- Parameters
-
position | Fractional distance along the colormap |
Implements ScottPlot.IColormap.
◆ Name
string ScottPlot.Colormaps.CustomInterpolated.Name |
|
get |
The documentation for this class was generated from the following file:
- ScottPlot/src/ScottPlot5/ScottPlot5/Colormaps/CustomInterpolated.cs