![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A color ramp. More...
#include <gf/ColorRamp.h>
Public Member Functions | |
bool | isEmpty () const |
Check if the color ramp is empty. More... | |
void | addColorStop (T offset, const Color4< T > &color) |
Add a color stop. More... | |
Color4< T > | computeColor (T offset) const |
Compute a color from an offset. More... | |
A color ramp.
A color ramp (or color gradient) specifies a range of colors that depends on a position.
|
inline |
Add a color stop.
offset | The offset of the color |
color | The color |
|
inline |
Compute a color from an offset.
offset | The offset of the wanted color |
|
inline |
Check if the color ramp is empty.