Metadata-Version: 2.1
Name: ketamine
Version: 1.0.1
Summary: A robust python library for colour conversion between colour models.
Project-URL: Homepage, https://github.com/sertdfyguhi/ketamine
Project-URL: Bug Tracker, https://github.com/sertdfyguhi/ketamine/issues
Author: sertdfyguhi
License-File: LICENSE
Keywords: color,color conversion,colour,colour conversion,conversion,graphics,rgb
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: >=2.7
Description-Content-Type: text/markdown

# ketamine: A robust python library for colour conversion.

A python library for colour conversion between colour models.

# Supported Colour Models

- RGB, RGBA, hex
- HSL
- HSV
- CMYK
- CIELAB
- CIEXYZ

# Installation

```sh
pip install ketamine
```

or install it from source:

```sh
git clone https://github.com/sertdfyguhi/ketamine/
cd ketamine
python3 -m build
pip install dist/*.whl
```

# Example Usage

```py
from ketamine import Colour

white = Colour.from_rgb(255, 255, 255)
print(white.to_hex()) # #ffffff
print(white.to_hsl()) # (0, 0.0, 1.0)

hsv = Colour.from_hsv(184, 0.85, 1.0)
print(hsv.to_rgb()) # (38.25000000000001, 240.54999999999995, 255.0)

# round RGB values first
hsv.round()

print(hsv.to_rgb()) # (38, 241, 255)
```

# Todo

- [x] Finish CIELAB colour conversion
  - [x] Correctly implement to_lab
- [x] Finish CMYK colour conversion
- [x] Publish to PyPI
