C# Class CSharpGL.ColorHelper

Helper class for array.
Mostrar archivo Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
ToColor ( this color ) : Color

(x, y, z) equals Color.FromArgb(255, x * 255, y * 255, z * 255);

ToVec3 ( this color ) : vec3

(x, y, z) equals Color.FromArgb(255, x * 255, y * 255, z * 255);

ToVec4 ( this color ) : vec4

(x, y, z, w) equals Color.FromArgb(w * 255, x * 255, y * 255, z * 255);

Method Details

ToColor() public static method

(x, y, z) equals Color.FromArgb(255, x * 255, y * 255, z * 255);
public static ToColor ( this color ) : Color
color this
return System.Drawing.Color

ToVec3() public static method

(x, y, z) equals Color.FromArgb(255, x * 255, y * 255, z * 255);
public static ToVec3 ( this color ) : vec3
color this
return vec3

ToVec4() public static method

(x, y, z, w) equals Color.FromArgb(w * 255, x * 255, y * 255, z * 255);
public static ToVec4 ( this color ) : vec4
color this
return vec4