Generate color palettes using artificial intelligence (OpenAI).
Project description
Pailettes
Generate color palettes using artificial intelligence. The OpenAI API is used for this, so you will require an account.
Installation
Pipx
pipx install pailettes
Pip
pip install pailettes
Configuration
To configure your OpenAI API key, create an environment variable as follows.
Linux
export OPENAI_KEY="your-key-goes-here"
Windows
TODO
MacOS
TODO
This will set your OpenAI key for that terminal session. If you would like to permanently set the environment variable, consult the documentation of your OS/shell.
Usage
Quick Start
pailettes retro
This creates a color palette with a "retro" theme.
Number of colors
To specify the number of colors in your palette:
pailettes retro --color-count=6
Number of palettes
To specify the number of palettes to generate:
pailettes retro --palette-count=3
Output to JSON
To output the palettes in JSON format, use the to-json
parameter:
pailettes synthwave --palette-count=2 --to-json
And to output the JSON to a file, just add the json-file
parameter:
pailettes synthwave --palette-count=2 --to-json --json-file=palettes.json
An example output:
[
{
"name": "Neon Sunset",
"colors": [
"#FF0066",
"#FF9900",
"#FFCC00",
"#33CCFF"
]
},
{
"name": "Digital Dusk",
"colors": [
"#6600FF",
"#00FFCC",
"#FF33FF",
"#FF6600"
]
}
]
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
Hashes for pailettes-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67c45ac504df932ac5c9a060a66b088eb20c23d083e91c8ca9940861ef54163 |
|
MD5 | a66f6e172b1cb53513e247f7d0e1e419 |
|
BLAKE2b-256 | 31eb461e7b2a33fd3d6422a93df36f99b8600bfe93634278d32287c2a7c29e55 |