On this page
curses.color_content
Prev: curses.cbreak | Up: curses | Next: curses.color_pair
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.color_content
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import color_content
Signature & Overview
curses.color_content(color_number, /)
Return the red, green, and blue (RGB) components of the specified color.
Usage
import curses
# Returns (r, g, b) intensities in 0..1000 for a color number after start_color()
assert callable(curses.color_content)
Gotchas
- Scale is
0..1000, NOT0..255.
REPL Inspect
from curses import color_content
help(color_content)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/cbreak Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_pair Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/curses/assume_default_colors Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/baudrate Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/beep Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/can_change_color Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/curs_set shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/def_prog_mode shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/def_shell_mode shared tags: #curses, #stdlib