method
init_color
Ruby latest stable (v2_5_5)
-
0 notes -
Class: Curses
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
init_color(p1, p2, p3, p4)
public
Changes the definition of a color. It takes four arguments:
-
the number of the color to be changed, color
-
the amount of red, r
-
the amount of green, g
-
the amount of blue, b
The value of the first argument must be between 0 and COLORS. (See the section Colors for the default color index.) Each of the last three arguments must be a value between 0 and 1000. When Curses.init_color is used, all occurrences of that color on the screen immediately change to the new definition.