Class Color
A color.
Inheritance
System.Object
Color
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class Color
Constructors
Color(Int32, Int32, Int32)
Initializes a new instance of the Color class.
Declaration
public Color(int r, int g, int b)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | r | The red value (0-255). |
System.Int32 | g | The green value (0-255). |
System.Int32 | b | The blue value (0-255). |
Properties
B
Gets the blue value (0-255).
Declaration
public int B { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Black
Gets a black color.
Declaration
public static Color Black { get; }
Property Value
Type | Description |
---|---|
Color |
Blue
Gets a blue color.
Declaration
public static Color Blue { get; }
Property Value
Type | Description |
---|---|
Color |
Cyan
Gets a cyan color.
Declaration
public static Color Cyan { get; }
Property Value
Type | Description |
---|---|
Color |
DarkBlue
Gets a dark-blue color.
Declaration
public static Color DarkBlue { get; }
Property Value
Type | Description |
---|---|
Color |
DarkGreen
Gets a dark-green color.
Declaration
public static Color DarkGreen { get; }
Property Value
Type | Description |
---|---|
Color |
DarkRed
Gets a dark-red color.
Declaration
public static Color DarkRed { get; }
Property Value
Type | Description |
---|---|
Color |
G
Gets the green value (0-255).
Declaration
public int G { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Gray
Gets a gray color.
Declaration
public static Color Gray { get; }
Property Value
Type | Description |
---|---|
Color |
Green
Gets a green color.
Declaration
public static Color Green { get; }
Property Value
Type | Description |
---|---|
Color |
Magenta
Gets a magenta color.
Declaration
public static Color Magenta { get; }
Property Value
Type | Description |
---|---|
Color |
Olive
Gets an olive color.
Declaration
public static Color Olive { get; }
Property Value
Type | Description |
---|---|
Color |
Purple
Gets a purple color.
Declaration
public static Color Purple { get; }
Property Value
Type | Description |
---|---|
Color |
R
Gets the red value (0-255).
Declaration
public int R { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Red
Gets a red color.
Declaration
public static Color Red { get; }
Property Value
Type | Description |
---|---|
Color |
Teal
Gets a teal color.
Declaration
public static Color Teal { get; }
Property Value
Type | Description |
---|---|
Color |
White
Gets a white color.
Declaration
public static Color White { get; }
Property Value
Type | Description |
---|---|
Color |
Yellow
Gets a yellow color.
Declaration
public static Color Yellow { get; }
Property Value
Type | Description |
---|---|
Color |
Methods
FromHsb(Double, Double, Double)
Creates a Color using hue, saturation, and brightness.
Declaration
public static Color FromHsb(double hue, double saturation, double brightness)
Parameters
Type | Name | Description |
---|---|---|
System.Double | hue | The hue value (0-359). |
System.Double | saturation | The saturation value (0.0-1.0). |
System.Double | brightness | The brightness value (0.0-1.0). |
Returns
Type | Description |
---|---|
Color |