Skip to main content

A collection of cb-friendly color palettes

Project description

cb-palettes

GitHub version PyPI version License: GPL v3

A collection of cb-friendly color palettes

Installation

From PyPI:

$ pip install cb-palettes

From source:

$ git clone https://github.com/tjkessler/cb-palettes
$ cd cb-palettes
$ pip install .

Built-in palettes:

Paul Tol: bright

tolbright

from cb_palettes import TolBright

colors_hex: Tuple[str] = TolBright().hex
colors_hsv: Tuple[Tuple[float]] = TolBright().hsv
colors_rgb: Tuple[Tuple[int]] = TolBright().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolBright().rgb_norm

Paul Tol: dark

toldark

from cb_palettes import TolDark

colors_hex: Tuple[str] = TolDark().hex
colors_hsv: Tuple[Tuple[float]] = TolDark().hsv
colors_rgb: Tuple[Tuple[int]] = TolDark().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolDark().rgb_norm

Paul Tol: high contrast

tolhighcontrast

from cb_palettes import TolHighContrast

colors_hex: Tuple[str] = TolHighContrast().hex
colors_hsv: Tuple[Tuple[float]] = TolHighContrast().hsv
colors_rgb: Tuple[Tuple[int]] = TolHighContrast().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolHighContrast().rgb_norm

Paul Tol: light

tollight

from cb_palettes import TolLight

colors_hex: Tuple[str] = TolLight().hex
colors_hsv: Tuple[Tuple[float]] = TolLight().hsv
colors_rgb: Tuple[Tuple[int]] = TolLight().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolLight().rgb_norm

Paul Tol: medium contrast

tolmediumcontrast

from cb_palettes import TolMediumContrast

colors_hex: Tuple[str] = TolMediumContrast().hex
colors_hsv: Tuple[Tuple[float]] = TolMediumContrast().hsv
colors_rgb: Tuple[Tuple[int]] = TolMediumContrast().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolMediumContrast().rgb_norm

Paul Tol: muted

tolmuted

from cb_palettes import TolMuted

colors_hex: Tuple[str] = TolMuted().hex
colors_hsv: Tuple[Tuple[float]] = TolMuted().hsv
colors_rgb: Tuple[Tuple[int]] = TolMuted().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolMuted().rgb_norm

Paul Tol: pale

tolpale

from cb_palettes import TolPale

colors_hex: Tuple[str] = TolPale().hex
colors_hsv: Tuple[Tuple[float]] = TolPale().hsv
colors_rgb: Tuple[Tuple[int]] = TolPale().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolPale().rgb_norm

Paul Tol: vibrant

tolvibrant

from cb_palettes import TolVibrant

colors_hex: Tuple[str] = TolVibrant().hex
colors_hsv: Tuple[Tuple[float]] = TolVibrant().hsv
colors_rgb: Tuple[Tuple[int]] = TolVibrant().rgb
colors_rgb_norm: Tuple[Tuple[float]] = TolVibrant().rgb_norm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cb_palettes-0.1.1.tar.gz (15.1 kB view hashes)

Uploaded Source

Built Distribution

cb_palettes-0.1.1-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page