[This is preliminary documentation and is subject to change.]

Changes the definition of a color.

Namespace:  CursesSharp
Assembly:  CursesSharp (in CursesSharp.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void InitColor(
	short color,
	short red,
	short green,
	short blue
)
Visual Basic (Declaration)
Public Shared Sub InitColor ( _
	color As Short, _
	red As Short, _
	green As Short, _
	blue As Short _
)
Visual C++
public:
static void InitColor(
	short color, 
	short red, 
	short green, 
	short blue
)

Parameters

color
Type: System..::.Int16
Number of the color to be changed.
red
Type: System..::.Int16
Amount of the red color component.
green
Type: System..::.Int16
Amount of the green color component.
blue
Type: System..::.Int16
Amount of the blue color component.

Remarks

When it is used, all occurences of that color on the screen immediately change to the new definition.

The value of color must be between 0 and Colors, and the value of red, green and blue must be between 0 and 1000.

See Also