Show / Hide Table of Contents

Interface IGradient

Represents a basic gradient.

Inherited Members
IDecoratable<IGradientDecorator>.Decorators
IDecoratable<IGradientDecorator>.AddDecorator(IGradientDecorator)
IDecoratable<IGradientDecorator>.RemoveDecorator(IGradientDecorator)
IDecoratable<IGradientDecorator>.RemoveAllDecorators()
INotifyPropertyChanged.PropertyChanged
Namespace: RGB.NET.Presets.Textures.Gradients
Assembly: RGB.NET.Presets.dll
Syntax
public interface IGradient : IDecoratable<IGradientDecorator>, IDecoratable, INotifyPropertyChanged

Methods

| Edit this page View Source

GetColor(float)

Gets the Color of the IGradient on the specified offset.

Declaration
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
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
event EventHandler GradientChanged
Event Type
Type Description
EventHandler
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX