NcEngine
|
Gradient between two Colors. More...
#include <Color.h>
Public Member Functions | |
constexpr | Gradient (const Color &solidColor) noexcept |
constexpr | Gradient (const Color &from, const Color &to) noexcept |
constexpr auto | Lerp (float t) const noexcept -> Color |
Select a Color between start and end. | |
constexpr auto | Lerp (float tColor, float tAlpha) const noexcept -> Color |
Select a Color between start and end with distinct color and alpha factors. | |
Public Attributes | |
Color | start |
Color | end |
Friends | |
constexpr auto | operator== (const Gradient &lhs, const Gradient &rhs) -> bool |
Gradient between two Colors.