Table of Contents

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

Gradient ColorGradient

The color gradient to apply.

Direction GradientDirection

The direction of the gradient.

Properties

Direction

The direction of the gradient.

public GradientDirection Direction { get; init; }

Property Value

GradientDirection

Gradient

The color gradient to apply.

public ColorGradient Gradient { get; init; }

Property Value

ColorGradient