Core color functionality.
Project description
colors-core
Core color functionality.
Installing
Python 3.8 or above is required.
pip
Installing the library with pip
is quite simple:
$ pip install colors-core
Alternatively, the library can be installed from source:
$ git clone https://github.com/nekitdev/colors-core.git
$ cd colors-core
$ python -m pip install .
poetry
You can add colors-core
as a dependency with the following command:
$ poetry add colors-core
Or by directly specifying it in the configuration like so:
[tool.poetry.dependencies]
colors-core = "^1.1.1"
Alternatively, you can add it directly from the source:
[tool.poetry.dependencies.colors-core]
git = "https://github.com/nekitdev/colors-core.git"
Examples
>>> from colors import Color
>>> color = Color(0x000000)
>>> print(color)
#000000
>>> color.to_rgb()
(0, 0, 0)
>>> color.to_rgba(0)
(0, 0, 0, 0)
>>> color.to_hsv()
(0.0, 0.0, 0.0)
Documentation
You can find the documentation here.
Support
If you need support with the library, you can send an email or refer to the official Discord server.
Changelog
You can find the changelog here.
Security Policy
You can find the Security Policy of colors-core
here.
Contributing
If you are interested in contributing to colors-core
, make sure to take a look at the
Contributing Guide, as well as the Code of Conduct.
License
colors-core
is licensed under the MIT License terms. See License 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
Built Distribution
File details
Details for the file colors_core-1.1.1.tar.gz
.
File metadata
- Download URL: colors_core-1.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2d71558b119c05f9b8ce148ccedd1448569abf00429c234524f112b7b384f5 |
|
MD5 | 87879dd25ae32aef027f0e0b2198a6a4 |
|
BLAKE2b-256 | 73dde69306d1d840f0b6e0c6b49758ee944484c638bdb1b159e2b1e284ad3e4f |
File details
Details for the file colors_core-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: colors_core-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88aa3dc00be9f5737ee8c99dc7c8712fb788f816d650c72250aca62af8bd4b70 |
|
MD5 | 7f7591b353c8ac7c3847b37e42d8b3c1 |
|
BLAKE2b-256 | e6f15644df764b872ea813fce15b5f992cecdcedb515a47b7956b6e2fb42f97c |