GLXCurses.libs.Colors module¶
-
class
GLXCurses.libs.Colors.
Colors
[source]¶ Bases:
object
-
itu_recommendation
¶ Get
itu_recommendation
property valueWhere:
https://en.wikipedia.org/wiki/ITU-R
https://en.wikipedia.org/wiki/Rec._601
https://en.wikipedia.org/wiki/Rec._709
https://en.wikipedia.org/wiki/Rec._2100
Allowed Value: ‘BT.601’, ‘BT.709’, ‘BT.2100’ Default Value: ‘BT.601’
Returns: itu_recommendation property value Return type: str
-
color_detection_value
¶
-
static
curses_color
(color)[source]¶ A “translation” function that converts standard-intensity CGA color numbers (0 to 7) to curses color numbers, using the curses constant names like COLOR_BLUE or COLOR_RED
Parameters: color – Returns: curses.COLOR
-
static
curses_color_pair_number
(fg, bg)[source]¶ A function to set an integer bit pattern based on the classic color byte
Parameters: - fg (int) – Foreground color
- bg (int) – Background color
-
static
strip_hash
(str_rgb)[source]¶ Strip leading # if exists.
Parameters: str_rgb (str) – the str it contain a # or not Returns: a str without # Return type: str
-