trase
|
a linear segmented colormap More...
#include <Colors.hpp>
Public Member Functions | |
Colormap (std::vector< Vector< float, 3 >> list) noexcept | |
constructs the colormap from a list of rgb values scaled from 0-1 | |
RGBA | to_color (float i) const |
maps a float from 0->1 to a RGBA color | |
a linear segmented colormap