Class ColorRgbProvider
A light color described by a rgb color
[DataContract("ColorRgbProvider")]
[DataAlias("LightColorRgb")]
[Display("RGB", null)]
public class ColorRgbProvider : IColorProvider
- Inheritance
-
ColorRgbProvider
- Implements
Constructors
ColorRgbProvider()
Initializes a new instance of the ColorRgbProvider class.
public ColorRgbProvider()
ColorRgbProvider(Color)
Initializes a new instance of the ColorRgbProvider class.
public ColorRgbProvider(Color color)
Parameters
color
ColorThe color.
ColorRgbProvider(Color3)
Initializes a new instance of the ColorRgbProvider class.
public ColorRgbProvider(Color3 color)
Parameters
color
Color3The color.
Properties
Value
Gets or sets the light color in rgb.
[DataMember(10)]
[DataAlias("Color")]
public Color3 Value { get; set; }
Property Value
- Color3
The color.
Methods
ComputeColor()
Computes the color of the light (sRgb space).
public Color3 ComputeColor()
Returns
- Color3
Color3.