Create a Color initialized to black.
Syntax

[C#]

Color(ColorSpace space);

[Visual Basic]

Sub New(space As ColorSpace)
Params
Name Description
space The color space for the color. The default is RGB.
Notes

None.

Example

[C#]Color color = Color.DarkRed;
Response.Write("<b>Red decomposes into</b><br>");
Response.Write($"Red = {color.R}<br>");
Response.Write($"Green = {color.G}<br>");
Response.Write($"Blue = {color.B}<br>");
color = Color.DarkGreen;
Response.Write("<b>Green decomposes into</b><br>");
Response.Write($"Red = {color.R}<br>");
Response.Write($"Green = {color.G}<br>");
Response.Write($"Blue = {color.B}<br>");


The above produces the following output.

Red decomposes into
Red = 139
Green = 0
Blue = 0
Green decomposes into
Red = 0
Green = 100
Blue = 0