Show / Hide Table of Contents

Class RainbowGradient

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

Inheritance
object
AbstractBindable
AbstractDecoratable<IGradientDecorator>
RainbowGradient
Implements
IBindable
IGradient
IDecoratable<IGradientDecorator>
IDecoratable
INotifyPropertyChanged
Inherited Members
AbstractDecoratable<IGradientDecorator>.Decorators
AbstractDecoratable<IGradientDecorator>.AddDecorator(IGradientDecorator)
AbstractDecoratable<IGradientDecorator>.RemoveDecorator(IGradientDecorator)
AbstractDecoratable<IGradientDecorator>.RemoveAllDecorators()
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Presets.Textures.Gradients
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class RainbowGradient : AbstractDecoratable<IGradientDecorator>, IBindable, IGradient, IDecoratable<IGradientDecorator>, IDecoratable, INotifyPropertyChanged

Constructors

| Edit this page View Source

RainbowGradient(float, float)

Initializes a new instance of the RainbowGradient class.

Declaration
public RainbowGradient(float startHue = 0, float endHue = 360)
Parameters
Type Name Description
float startHue

The hue (in degrees) to start from (default: 0)

float endHue

The hue (in degrees) to end with (default: 360)

Properties

| Edit this page View Source

EndHue

Gets or sets the hue (in degrees) to end the with.

Declaration
public float EndHue { get; set; }
Property Value
Type Description
float
| Edit this page View Source

StartHue

Gets or sets the hue (in degrees) to start from.

Declaration
public float StartHue { get; set; }
Property Value
Type Description
float

Methods

| Edit this page View Source

GetColor(float)

Gets the Color of the IGradient on the specified offset.

Declaration
public Color GetColor(float offset)
Parameters
Type Name Description
float offset

The percentage offset to take the Color from.

Returns
Type Description
Color

The Color at the specific offset.

| Edit this page View Source

Move(float)

Moves the IGradient by the provided offset.

Declaration
public void Move(float offset)
Parameters
Type Name Description
float offset

The offset the IGradient should be moved.

Events

| Edit this page View Source

GradientChanged

Occurs if the IGradient is changed.

Declaration
public event EventHandler? GradientChanged
Event Type
Type Description
EventHandler

Implements

IBindable
IGradient
IDecoratable<T>
IDecoratable
INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX