Template Function color_util::rgbaBlend
Defined in File blend.hpp
Function Documentation
-
template<typename rgba>
inline rgba color_util::rgbaBlend(const rgba &color_a, const rgba &color_b, double ratio) Return a color that is a linear blending of color_a and color_b in rgba space.
- Parameters:
color_a –
color_b –
ratio – value in range [0.0, 1.0]
- Returns:
color_a * (1 - ratio) + color_b * ratio