MplColormapsCpp
MplColormapsCpp offers easy access to use the infamous Matplotlib Colormaps.
The functionality is implemented in C++17 as header only lib.
Available colormaps are:
The colormaps may be used as follows:
#include <mpl_colormaps/mpl_colormaps.hpp>
void Example()
{
std::array<float, 3> rgb_viridis = mpl_colormaps::MapViridis(0.5F);
std::array<float, 3> rgb_inferno = mpl_colormaps::MapInferno(1.F);
/*...*/
}
License
The same as the colormaps themselves, CC0 Public Domain.