https://github.com/nekketsuuu/palette-generator
Palette generator for VoxelShop
https://github.com/nekketsuuu/palette-generator
color color-palette dominant-colors voxel
Last synced: 4 months ago
JSON representation
Palette generator for VoxelShop
- Host: GitHub
- URL: https://github.com/nekketsuuu/palette-generator
- Owner: nekketsuuu
- License: other
- Created: 2018-11-27T09:31:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T10:13:01.000Z (over 6 years ago)
- Last Synced: 2023-08-29T18:39:09.899Z (almost 2 years ago)
- Topics: color, color-palette, dominant-colors, voxel
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Palette generator for VoxelShop
## About
This script extracts dominant colors of a illustration and generates a color palette for [VoxelShop](https://github.com/simlu/voxelshop).
For example, the script generates the following palette from the following icon.

↓

## Prerequisites
* cv2
* numpy
* sklearn (for k-means)## Usage
The following command generates a 10x16 palette `_palette.png`.
```
python main.py
```## License
[CC-BY 3.0 Unported](https://creativecommons.org/licenses/by/3.0/deed.en)