The VColor type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
BilerpRGBA |
2d linear interpolation in x and y direction for colors
| |
Brightness |
Calculates the brighness of a color with the formula 0.222 * R + 0.707 * G + 0.071 * B
| |
Complement |
Function to calculate the complementary color
Note that the ! operator of RGBAColor does the same
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FromHSVA |
Get a color from hue, saturation, brightness and alpha values
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HSLAToColor |
Get a C# color type from hue, saturation, lightness and alpha values
| |
HSLtoRGB |
Computes RGB values from HSL values, found on:
http://www.geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm
| |
HSVtoRGB |
Function to convert HSV values to RGB values
merged methods from EasyRGB (http://www.easyrgb.com/math.php?MATH=M21#text21)
and the book GRAPHICS GEMS
| |
Invert |
Function to get black or white, which ever has higher contrast to the input color, e.g. for text on colored backgrounds
| |
LerpRGBA |
Linear interpolation (blending) between two colors
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Offset |
Adds a value to the RGB channels of a color and takes the result modulo 1
| |
RGBtoHSL |
Computes HSL values from RGB values, found on:
http://www.geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm
| |
RGBtoHSV |
Function to convert RGB values to HSV values
merged from http://www.easyrgb.com/math.php?MATH=M20#text20
and http://www.efg2.com/Lab/Graphics/Colors/HSV.htm
| |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
Black |
Black as constant, (0,0,0,1)
| |
Blue |
Blue as constant, (0,0,1,1)
| |
Green |
Green as constant, (0,1,0,1)
| |
Red |
Red as constant, (1,0,0,1)
| |
White |
White as constant, (1,1,1,1)
|