C# Class Vector.RayTracing.Color

ファイルを表示 Open project: sinclairzx81/vector-cs Class Usage Examples

Public Properties

Property Type Description
b float
background Color
black Color
defaultColor Color
g float
grey Color
r float
white Color

Public Methods

Method Description
Color ( )
Color ( float r, float b, float g )
plus ( Color v1, Color v2 ) : Color
scale ( float k, Color v ) : Color
times ( Color v1, Color v2 ) : Color
toDrawingColor ( Color color ) : System.Drawing.Color

Method Details

Color() public method

public Color ( )

Color() public method

public Color ( float r, float b, float g )
r float
b float
g float

plus() public static method

public static plus ( Color v1, Color v2 ) : Color
v1 Color
v2 Color
return Color

scale() public static method

public static scale ( float k, Color v ) : Color
k float
v Color
return Color

times() public static method

public static times ( Color v1, Color v2 ) : Color
v1 Color
v2 Color
return Color

toDrawingColor() public static method

public static toDrawingColor ( Color color ) : System.Drawing.Color
color Color
return System.Drawing.Color

Property Details

b public_oe property

public float b
return float

background public_oe static_oe property

public static Color,Vector.RayTracing background
return Color

black public_oe static_oe property

public static Color,Vector.RayTracing black
return Color

defaultColor public_oe static_oe property

public static Color,Vector.RayTracing defaultColor
return Color

g public_oe property

public float g
return float

grey public_oe static_oe property

public static Color,Vector.RayTracing grey
return Color

r public_oe property

public float r
return float

white public_oe static_oe property

public static Color,Vector.RayTracing white
return Color