https://github.com/mvinyard/pylacroix
A python color palette for those that love sparkled beverages.
https://github.com/mvinyard/pylacroix
colorscheme lacroix python
Last synced: 4 months ago
JSON representation
A python color palette for those that love sparkled beverages.
- Host: GitHub
- URL: https://github.com/mvinyard/pylacroix
- Owner: mvinyard
- License: mit
- Created: 2021-11-07T02:25:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-08T07:20:01.000Z (almost 4 years ago)
- Last Synced: 2025-06-17T19:05:52.888Z (4 months ago)
- Topics: colorscheme, lacroix, python
- Language: Python
- Homepage:
- Size: 229 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 
[](https://pypi.python.org/pypi/pyLaCroix/)
[](https://badge.fury.io/py/pyLaCroix)
[](https://github.com/psf/black)A python color palette for those that love sparkled beverages.
```
pip install pyLaCroix
```### Interface
```python
# example use-case
from pyLaCroix import pyLaCroixpalette = pyLaCroix(n_points=5)
palette.apricot
```* Create a gradient with a flexible number of colors with any choice of beverage via the [colour](https://github.com/colour-science/colour) package (the only dependency).
### Notes
---
* Inspired by the [R implementation](https://github.com/johannesbjork/LaCroixColoR).
* Color choices a la [LaCroix Flavors](https://www.lacroixwater.com/flavors/)