MathLib
Loading...
Searching...
No Matches
Palette.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <cstdlib>
5#include <numbers>
6
14namespace Color
15{
16
29template <std::floating_point T>
35{
36 return a + b * std::cos( 2 * std::numbers::pi_v<T> * (c * t + d) );
37}
38
39}
Math::BasicVector3D< T > palette(T t, Math::BasicVector3D< T > a, Math::BasicVector3D< T > b, Math::BasicVector3D< T > c, Math::BasicVector3D< T > d)
Definition Palette.hpp:30