C# Class ColorUtility, A-Study-in-Composition

Mostrar archivo Open project: mortennobel/A-Study-in-Composition Class Usage Examples

Public Methods

Method Description
HSVToRGB ( Vector4 hsva ) : Color
HSVToRGB ( float H, float S, float V ) : Color
RGBToHSV ( Color color ) : Vector4
RGBToHSV ( Color rgbColor, float &H, float &S, float &V ) : void

Private Methods

Method Description
RGBToHSVHelper ( float offset, float dominantcolor, float colorone, float colortwo, float &H, float &S, float &V ) : void

Method Details

HSVToRGB() public static method

public static HSVToRGB ( Vector4 hsva ) : Color
hsva Vector4
return Color

HSVToRGB() public static method

public static HSVToRGB ( float H, float S, float V ) : Color
H float
S float
V float
return Color

RGBToHSV() public static method

public static RGBToHSV ( Color color ) : Vector4
color Color
return Vector4

RGBToHSV() public static method

public static RGBToHSV ( Color rgbColor, float &H, float &S, float &V ) : void
rgbColor Color
H float
S float
V float
return void