semvec/pypi-packages huggingface dataset:
chromatose 2.0.0
Personal palette collection, palette visualizer, interpolator, and extractor
License: MIT

Chromatose is a package for storing and visualizing palettes, constructing new ones via interpolation or extraction. The stored palettes are for personal record, featuring diverging and continuous palettes. Visualizations include swatches, pies, points, lines, scatters, and heatmaps. There are a multitude of beautiful gradients in packages like bokeh and colorcet that are, for the most part, static. The interpolation scheme here can be used to create entirely new ones given only a few intermediary points. The underlying algorithm uses a combination of linear and polynomial splines in customizable color space metrics RGB, HSL, or HSV. Heatmaps are a great way to visualize the results. To extract palettes from images, chromatose employs k-means clustering and median-cut algorithms.