colorsys - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on module colorsys:

NAME
    colorsys - Conversion functions between RGB and other color systems.

MODULE REFERENCE
    https://docs.python.org/3.10/library/colorsys.html

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

DESCRIPTION
    This modules provides two functions for each color system ABC:

      rgb_to_abc(r, g, b) --> a, b, c
      abc_to_rgb(a, b, c) --> r, g, b

    All inputs and outputs are triples of floats in the range [0.0...1.0]
    (with the exception of I and Q, which covers a slightly larger range).
    Inputs outside the valid range may cause exceptions or invalid outputs.

    Supported color systems:
    RGB: Red, Green, Blue components
    YIQ: Luminance, Chrominance (used by composite video signals)
    HLS: Hue, Luminance, Saturation
    HSV: Hue, Saturation, Value

FUNCTIONS
    hls_to_rgb(h, l, s)

    hsv_to_rgb(h, s, v)

    rgb_to_hls(r, g, b)

    rgb_to_hsv(r, g, b)

    rgb_to_yiq(r, g, b)

    yiq_to_rgb(y, i, q)

DATA
    __all__ = ['rgb_to_yiq', 'yiq_to_rgb', 'rgb_to_hls', 'hls_to_rgb', 'rg...

FILE
    /usr/lib/python3.10/colorsys.py



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!