trase
trase::Colormap Class Reference

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
 

Detailed Description

a linear segmented colormap


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