The VColor type exposes the following members.

Constructors

  NameDescription
Public methodVColor
Initializes a new instance of the VColor class

Methods

  NameDescription
Public methodStatic memberBilerpRGBA
2d linear interpolation in x and y direction for colors
Public methodStatic memberBrightness
Calculates the brighness of a color with the formula 0.222 * R + 0.707 * G + 0.071 * B
Public methodStatic memberComplement
Function to calculate the complementary color Note that the ! operator of RGBAColor does the same
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromHSVA
Get a color from hue, saturation, brightness and alpha values
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHSLAToColor
Get a C# color type from hue, saturation, lightness and alpha values
Public methodStatic memberHSLtoRGB
Computes RGB values from HSL values, found on: http://www.geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm
Public methodStatic memberHSVtoRGB
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
Public methodStatic memberInvert
Function to get black or white, which ever has higher contrast to the input color, e.g. for text on colored backgrounds
Public methodStatic memberLerpRGBA
Linear interpolation (blending) between two colors
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberOffset
Adds a value to the RGB channels of a color and takes the result modulo 1
Public methodStatic memberRGBtoHSL
Computes HSL values from RGB values, found on: http://www.geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm
Public methodStatic memberRGBtoHSV
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
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberBlack
Black as constant, (0,0,0,1)
Public fieldStatic memberBlue
Blue as constant, (0,0,1,1)
Public fieldStatic memberGreen
Green as constant, (0,1,0,1)
Public fieldStatic memberRed
Red as constant, (1,0,0,1)
Public fieldStatic memberWhite
White as constant, (1,1,1,1)

See Also