4 #ifndef FTXUI_DOM_LINEAR_GRADIENT_HPP
5 #define FTXUI_DOM_LINEAR_GRADIENT_HPP
A class representing terminal colors.
Decorator color(Color)
Decorate using a foreground color.
A class representing the settings for linear-gradient color effect.
LinearGradient & Stop(Color color, float position)
Add a color stop to the gradient.
LinearGradient & Angle(float angle)
Set the angle of the gradient.
std::optional< float > position
LinearGradient()
Build the "empty" gradient. This is often followed by calls to LinearGradient::Angle() and LinearGrad...
std::vector< Stop > stops