GradientStyle
The GradientStyle struct defines the properties for a gradient, including the radius, length, center, axis, and two colors that define the gradient appearance.
#include <interface/TellusimTypes.h>
Constructors
GradientStyle()
GradientStyle(const Color &c0, const Color &c1)
GradientStyle(float32_t radius, const Vector2f ¢er)
GradientStyle(float32_t length, const Vector2f ¢er, const Vector2f &axis)
GradientStyle(float32_t radius, const Vector2f ¢er, const Color &c0, const Color &c1)
GradientStyle(float32_t length, const Vector2f ¢er, const Vector2f &axis, const Color &c0, const Color &c1)
Methods
Check style.
bool isValid() const
operator bool() const
Variables
Type | Name | Value | Description |
---|---|---|---|
float32_t | radius | 0.0f | Gradient radius. |
float32_t | length | 0.0f | Gradient length. |
Vector2f | center | Vector2f::zero | Gradient center. |
Vector2f | axis | Vector2f::zero | Gradient axis. |
Color | color_0 | Color::white | First color. |
Color | color_1 | Color::black | Second color. |