https://github.com/pacstall/pac-color
Dynamically generate swatches of color codes
https://github.com/pacstall/pac-color
Last synced: 4 months ago
JSON representation
Dynamically generate swatches of color codes
- Host: GitHub
- URL: https://github.com/pacstall/pac-color
- Owner: pacstall
- License: gpl-3.0
- Created: 2025-03-05T16:52:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-11-03T15:43:27.000Z (7 months ago)
- Last Synced: 2025-11-03T17:24:59.061Z (7 months ago)
- Language: Rust
- Homepage: https://colors.pacstall.dev
- Size: 153 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pac-color
Pac-color is a tiny web-app that dynamically generates solid-color images as well as getting JSON representation of color conversions to other formats.
We at pacstall use this tool to generate swatches for release notes ().
## Using pac-color
### Swatch
The most common usage is to get a color swatch, which can be done like this:
```bash
wget https://colors.pacstall.dev/E09540/preview
```
Which will download the swatch with the color #E09540.
You can also optionally change the size with `size` query parameter in the form: `${height}x${weight}`, such as `16x16`.
Finally, you can change the default generated filetype with the `type` query parameter. Currently, we accept the following:
* `png`
* `jpg`
* `gif`
* `ico`
* `webp`
* `tiff`
* `svg`
### Conversion data
If you remove `/preview` from the slug, you will get a neatly formatted JSON response containing various color conversions.