Function pancurses::init_color
[−]
[src]
pub fn init_color(color_number: i16, red: i16, green: i16, blue: i16) -> i32
Changes the definition of a color. It takes four arguments: the number of the color to be
changed followed by three RGB values (for the amounts of red, green, and blue components).
The first argument must be a legal color value; default colors are not allowed here.
Each of the last three arguments must be a value in the range 0 through 1000. When init_color
is used, all occurrences of that color on the screen immediately change to the new definition.