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

A rainbow colormap inspired by Jet and Turbo but adapted by Scott Harden to have less dark edges (red or purple) and a more mellow center (darker yellow/green) for more even brightness perception when displayed using thin lines on a white background. More...

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

Public Member Functions

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.
 
 MellowRainbow ()
 

Properties

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

Detailed Description

A rainbow colormap inspired by Jet and Turbo but adapted by Scott Harden to have less dark edges (red or purple) and a more mellow center (darker yellow/green) for more even brightness perception when displayed using thin lines on a white background.

Constructor & Destructor Documentation

◆ MellowRainbow()

ScottPlot.Colormaps.MellowRainbow.MellowRainbow ( )
inline

Member Function Documentation

◆ GetColor()

Color ScottPlot.Colormaps.MellowRainbow.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.

Parameters
positionFractional distance along the colormap

Implements ScottPlot.IColormap.

Property Documentation

◆ Name

string ScottPlot.Colormaps.MellowRainbow.Name
get

Human readable name for this colormap.

Implements ScottPlot.IColormap.


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