#rgb #color #representation #convert #hsl #hsv #maps

color-lib

A library for implementing colors and converting between different representations. Includes a library easy access default colors.

1 unstable release

new 0.1.0 Feb 13, 2025

#7 in #hsv

Download history 125/week @ 2025-02-11

125 downloads per month

MIT/Apache

46KB
1K SLoC

This library implements the color representations RGB, HSV, HSL, and HSI with functions to convert between each type of representations. It also implements the Color trait and ColorMap trait which can be used to define custom colors and color maps.

This library is made to help implement colors in other libraries like plotting or other visualization libraries with shortcuts for common color maps in the "colors" and "maps" module.

No runtime deps