Skip to content

T_Aurora_EffectsEngine_ColorSpectrum

Anton Pupkov edited this page Aug 8, 2016 · 1 revision

ColorSpectrum Class

A class that represents a spectrum of colors. After creating an instance, you can then retrieve a blended color within a range of [0.0f, 1.0f].

Inheritance Hierarchy

System.Object
  Aurora.EffectsEngine.ColorSpectrum
Namespace: Aurora.EffectsEngine
Assembly: Aurora (in Aurora.exe) Version: 1.0.0.0 (0.0.4.6)

Syntax

C#

public class ColorSpectrum

The ColorSpectrum type exposes the following members.

Constructors

 

Name Description
Public method ColorSpectrum() Creates a default ColorSpectrum instance with red color on either end.
Public method ColorSpectrum(Color) Creates a ColorSpectrum instance with a specified color on either end.
Public method ColorSpectrum(Color[]) Creates a ColorSpectrum instance with equidistant colors from the passed array of colors.
Public method ColorSpectrum(ColorSpectrum) Copy constructor, Creates a new ColorSpectrum instance with data from the passed ColorSpectrum.
Public method ColorSpectrum(Color, Color) Creates a ColorSpectrum instance with a start color on one end, and end color on the other end.
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flip Reverses the colors and their positions of the ColorSpectrum.
Public method GetColorAt Retrieves the color from the ColorSpectrum at a specified position.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetColorAt Adds a new color or sets an existing color at a specified position.
Public method Shift Shifts the internal position counter by a specified amount.
Public method ToLinearGradient Converts the instance of ColorSpectrum into a LinearGradientBrush
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Fields

 

Name Description
Public fieldStatic member Rainbow A predefined rainbow ColorSpectrum
Public fieldStatic member RainbowLoop A predefined seamless rainbow ColorSpectrum
  Back to Top

See Also

Reference

Aurora.EffectsEngine Namespace

Clone this wiki locally