Skip to main content

Blue and yellow colors for matplotlib.

Project description

B/Y Colors

A Python package for working with colors, providing an intuitive interface for color manipulation, transformation, and variant generation. Based palette is blue and yellow, which gives the name of the package.

Features

  • Simple and intuitive color manipulation
  • Support for RGB, RGBA, and HEX color formats
  • Color brightness adjustment (relative and absolute)
  • Opacity/transparency control
  • Automatic dark and light variant generation
  • Background color compositing for transparent colors

Installation

Install using pip:

pip install bycolors

Quick Start

from bycolors import colors as byc

# Basic color usage
blue = byc.blue
yellow = byc.yellow

# Color variants
dark_blue = blue.dark
light_yellow = yellow.light

# Custom brightness
custom_blue = blue.brightness(0.7)  # 70% relative brightness
very_dark = blue.absolute_brightness(0.2)  # 20% absolute brightness

# Transparency
semi_transparent = blue.opacity(0.5)
fully_transparent = blue.transparent

# Color format conversion
# here for illustration blue is a perfect blue (#0000FF)
rgb_values = blue.rgb        # (0, 0, 1)
rgba_values = blue.rgba      # (0, 0, 1, 1)
hex_value = blue.hex         # "#0000FF"

# Custom background for transparent colors
blue_on_white = blue.opacity(0.5, background_color=(1, 1, 1)).rgb  # (0.5, 0.5, 1)

Documentation

For detailed documentation, visit:

Contributing

Contributions are welcome! For any suggestions or issues:

  1. Open an issue to discuss the proposed changes
  2. Fork the repository
  3. Create a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

bycolors-0.3.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bycolors-0.3.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file bycolors-0.3.3.tar.gz.

File metadata

  • Download URL: bycolors-0.3.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for bycolors-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b47280e3223a9838c443f4dbcc533e16a942d642e2e9eac08bcd31a428c9511c
MD5 99e65acdc7a39fd258cc73016fd88ff4
BLAKE2b-256 30463a34fcb4aff0379715c1cb59f2e7ec0d41abdbd3dd3992c868da3ef0399a

See more details on using hashes here.

File details

Details for the file bycolors-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: bycolors-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for bycolors-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63ecc7c849b5c14a05fe1bc57ef1303b34c901556a199ed8934bf0a9c82080db
MD5 d25bcfae79af8b7cfaf684ce05beb9aa
BLAKE2b-256 48303636d71f6b91e323eec022036182af591418874fb8f86af3a27cee91c359

See more details on using hashes here.

Supported by

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