ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.Colormaps.CustomInterpolated Class Reference

A custom palette which smoothly blends across a collection of colors using linear interpolation. More...

Inheritance diagram for ScottPlot.Colormaps.CustomInterpolated:
ScottPlot.IColormap

Public Member Functions

 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.
 

Properties

string Name [get]
 Human readable name for this colormap.
 
- Properties inherited from ScottPlot.IColormap

Detailed Description

A custom palette which smoothly blends across a collection of colors using linear interpolation.

Constructor & Destructor Documentation

◆ CustomInterpolated()

ScottPlot.Colormaps.CustomInterpolated.CustomInterpolated ( Color[]  colors)
inline

Member Function Documentation

◆ 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
positionFractional distance along the colormap

Implements ScottPlot.IColormap.

Property Documentation

◆ Name

string ScottPlot.Colormaps.CustomInterpolated.Name
get

Human readable name for this colormap.

Implements ScottPlot.IColormap.


The documentation for this class was generated from the following file: