ftxui::LinearGradient
linear_gradient.hpp
ftxui::LinearGradient::Stop
float float angle angle ftxui::LinearGradient::angle = 0.f
std::vector< Stop > std::vector<Stop> stops stops ftxui::LinearGradient::stops
LinearGradient
()
LinearGradient
ftxui::LinearGradient::LinearGradient

Build the "empty" gradient. This is often followed by calls to LinearGradient::Angle() and LinearGradient::Stop(). Example:

    autogradient=
    LinearGradient()
    .Angle(45)
    .Stop(Color::Red,0.0)
    .Stop(Color::Green,0.5)
    .Stop(Color::Blue,1.0);;

LinearGradient
(Color begin, Color end)
LinearGradient
ftxui::LinearGradient::LinearGradient
Color begin
Color end

Build a gradient with two colors.

begin

The color at the beginning of the gradient.

end

The color at the end of the gradient.

LinearGradient
(float angle, Color begin, Color end)
LinearGradient
ftxui::LinearGradient::LinearGradient
float angle a
Color begin
Color end

Build a gradient with two colors and an angle.

a

The angle of the gradient.

begin

The color at the beginning of the gradient.

end

The color at the end of the gradient.

LinearGradient & LinearGradient & Angle (float angle) Angle ftxui::LinearGradient::Angle float angle a

Set the angle of the gradient.

a

The angle of the gradient.

The gradient.

LinearGradient & LinearGradient & Stop (Color color, float position) Stop ftxui::LinearGradient::Stop Color color c float position p

Add a color stop to the gradient.

c

The color of the stop.

p

The position of the stop.

The gradient.

LinearGradient & LinearGradient & Stop (Color color) Stop ftxui::LinearGradient::Stop Color color c

Add a color stop to the gradient.

c

The color of the stop.

The gradient.

The position of the stop is interpolated from nearby stops.

A class representing the settings for linear-gradient color effect.

Example:

    LinearGradient()
    .Angle(45)
    .Stop(Color::Red,0.0)
    .Stop(Color::Green,0.5)
    .Stop(Color::Blue,1.0);

There are also shorthand constructors:

    LinearGradient(Color::Red,Color::Blue);
    LinearGradient(45,Color::Red,Color::Blue);

- ftxui::LinearGradient
  Angle
- ftxui::LinearGradient
  angle
- ftxui::LinearGradient
  LinearGradient
- ftxui::LinearGradient
  LinearGradient
- ftxui::LinearGradient
  LinearGradient
- ftxui::LinearGradient
  Stop
- ftxui::LinearGradient
  Stop
- ftxui::LinearGradient
  stops