Class GradientBackground
- Namespace
- SharpConsoleUI.Rendering
- Assembly
- SharpConsoleUI.dll
Describes a gradient background for a window, combining a color gradient with a direction.
public sealed record GradientBackground : IEquatable<GradientBackground>
- Inheritance
-
GradientBackground
- Implements
- Inherited Members
- Extension Methods
Constructors
GradientBackground(ColorGradient, GradientDirection)
Describes a gradient background for a window, combining a color gradient with a direction.
public GradientBackground(ColorGradient Gradient, GradientDirection Direction)
Parameters
GradientColorGradientThe color gradient to apply.
DirectionGradientDirectionThe direction of the gradient.
Properties
Direction
The direction of the gradient.
public GradientDirection Direction { get; init; }
Property Value
Gradient
The color gradient to apply.
public ColorGradient Gradient { get; init; }