kitcolors


Namekitcolors JSON
Version 1.7.0 PyPI version JSON
download
home_page
SummaryColors of the corporate design of the KIT.
upload_time2023-09-28 14:50:58
maintainer
docs_urlNone
authorThomas
requires_python>=3.8
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Colors of the Karlsruhe Institute of Technology

Colors from the [KIT corporate design color scheme](https://www.sek.kit.edu/downloads/dokumente-pkm/2_Gestaltungsgrundlagen_Farben.pdf).

![Example of colors.](https://raw.githubusercontent.com/camminady/kitcolors/master/scripts/example.png)

The RGB values listed in the image are integers from 0 to 255, taken from the corporate design guide.
These values are then divided by 255 and consequently lie between 0 and 1.
This is the format that [matplotlib](https://matplotlib.org/) needs.

## Install

```bash
pip install kitcolors
```

## Usage in Python

All colors have `RGB`, `rgb`, and `hex` attributes.
Furthermore, there exist `RGBa`, `rgba`, and `hexa` methods that take `alpha` as an additional argument.

```python
>>> from kitcolors import green
>>> green.rgb
(0.0, 0.5882352941176471, 0.5098039215686274)
>>> green.RGB
(0, 150, 130)
>>> green.hex
'#009682'
>>> green.rgba(0.2)
(0.0, 0.5882352941176471, 0.5098039215686274, 0.2)
>>> green.RGBa(0.2)
(0, 150, 130, 0.2)
>>> green.hexa(0.2)
'#00968233'
```

## Overview

Because sometimes, you just need some values.

```csv
white; 255 255 255; #ffffff
black; 0 0 0; #000000
green; 0 150 130; #009682
blue; 70 100 170; #4664aa
maygreen; 140 182 60; #8cb63c
yellow; 252 229 0; #fce500
orange; 223 155 27; #df9b1b
brown; 167 130 46; #a7822e
red; 162 34 35; #a22223
purple; 163 16 124; #a3107c
cyan; 35 161 224; #23a1e0
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "kitcolors",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Thomas",
    "author_email": "0milieux_member@icloud.com",
    "download_url": "https://files.pythonhosted.org/packages/c1/ca/8a056b7c634582d4dd855b47fd5ee3c0d39bc88ecdff8f7afbd0f1ed73f2/kitcolors-1.7.0.tar.gz",
    "platform": null,
    "description": "# Colors of the Karlsruhe Institute of Technology\n\nColors from the [KIT corporate design color scheme](https://www.sek.kit.edu/downloads/dokumente-pkm/2_Gestaltungsgrundlagen_Farben.pdf).\n\n![Example of colors.](https://raw.githubusercontent.com/camminady/kitcolors/master/scripts/example.png)\n\nThe RGB values listed in the image are integers from 0 to 255, taken from the corporate design guide.\nThese values are then divided by 255 and consequently lie between 0 and 1.\nThis is the format that [matplotlib](https://matplotlib.org/) needs.\n\n## Install\n\n```bash\npip install kitcolors\n```\n\n## Usage in Python\n\nAll colors have `RGB`, `rgb`, and `hex` attributes.\nFurthermore, there exist `RGBa`, `rgba`, and `hexa` methods that take `alpha` as an additional argument.\n\n```python\n>>> from kitcolors import green\n>>> green.rgb\n(0.0, 0.5882352941176471, 0.5098039215686274)\n>>> green.RGB\n(0, 150, 130)\n>>> green.hex\n'#009682'\n>>> green.rgba(0.2)\n(0.0, 0.5882352941176471, 0.5098039215686274, 0.2)\n>>> green.RGBa(0.2)\n(0, 150, 130, 0.2)\n>>> green.hexa(0.2)\n'#00968233'\n```\n\n## Overview\n\nBecause sometimes, you just need some values.\n\n```csv\nwhite; 255 255 255; #ffffff\nblack; 0 0 0; #000000\ngreen; 0 150 130; #009682\nblue; 70 100 170; #4664aa\nmaygreen; 140 182 60; #8cb63c\nyellow; 252 229 0; #fce500\norange; 223 155 27; #df9b1b\nbrown; 167 130 46; #a7822e\nred; 162 34 35; #a22223\npurple; 163 16 124; #a3107c\ncyan; 35 161 224; #23a1e0\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Colors of the corporate design of the KIT.",
    "version": "1.7.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8115f039ea5abb8cad29c982b4ffac4278787d8c9eaf7d3f32a7f510f70142e2",
                "md5": "a5ca9e567a37cb821277ba9cc2435eaa",
                "sha256": "e9858c52af8f63c9f5667237c0b3c6f84225576acd5b73acf5ebee4e0f442750"
            },
            "downloads": -1,
            "filename": "kitcolors-1.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a5ca9e567a37cb821277ba9cc2435eaa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3049,
            "upload_time": "2023-09-28T14:50:57",
            "upload_time_iso_8601": "2023-09-28T14:50:57.425363Z",
            "url": "https://files.pythonhosted.org/packages/81/15/f039ea5abb8cad29c982b4ffac4278787d8c9eaf7d3f32a7f510f70142e2/kitcolors-1.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1ca8a056b7c634582d4dd855b47fd5ee3c0d39bc88ecdff8f7afbd0f1ed73f2",
                "md5": "bb985988be9af7d1fb6a07e20c11f282",
                "sha256": "c34eb94657d5f338d7497810b784ad63ba3ddb339f69639e5587a213f211de73"
            },
            "downloads": -1,
            "filename": "kitcolors-1.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bb985988be9af7d1fb6a07e20c11f282",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2573,
            "upload_time": "2023-09-28T14:50:58",
            "upload_time_iso_8601": "2023-09-28T14:50:58.647464Z",
            "url": "https://files.pythonhosted.org/packages/c1/ca/8a056b7c634582d4dd855b47fd5ee3c0d39bc88ecdff8f7afbd0f1ed73f2/kitcolors-1.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-28 14:50:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "kitcolors"
}
        
Elapsed time: 0.12644s