{
    "mode": "pydoc",
    "parameter": "colorsys",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/colorsys/json",
    "generated": "2026-06-02T15:55:34Z",
    "sections": {
        "NAME": {
            "content": "colorsys - Conversion functions between RGB and other color systems.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/colorsys.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This modules provides two functions for each color system ABC:\n\nrgbtoabc(r, g, b) --> a, b, c\nabctorgb(a, b, c) --> r, g, b\n\nAll inputs and outputs are triples of floats in the range [0.0...1.0]\n(with the exception of I and Q, which covers a slightly larger range).\nInputs outside the valid range may cause exceptions or invalid outputs.\n\nSupported color systems:\nRGB: Red, Green, Blue components\nYIQ: Luminance, Chrominance (used by composite video signals)\nHLS: Hue, Luminance, Saturation\nHSV: Hue, Saturation, Value\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "hls_to_rgb",
                    "content": ""
                },
                {
                    "name": "hsv_to_rgb",
                    "content": ""
                },
                {
                    "name": "rgb_to_hls",
                    "content": ""
                },
                {
                    "name": "rgb_to_hsv",
                    "content": ""
                },
                {
                    "name": "rgb_to_yiq",
                    "content": ""
                },
                {
                    "name": "yiq_to_rgb",
                    "content": ""
                }
            ]
        },
        "DATA": {
            "content": "all = ['rgbtoyiq', 'yiqtorgb', 'rgbtohls', 'hlstorgb', 'rg...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/colorsys.py\n\n",
            "subsections": []
        }
    },
    "summary": "colorsys - Conversion functions between RGB and other color systems.",
    "flags": [],
    "examples": [],
    "see_also": []
}