Ratio Color
Color palette library.
Changelog
[0.4.0] - 2023-05-24
Changed
- A near complete rewrite of the library to support a more generic interface. Both categorical and
numerical palettes now use the same main trait/struct (Container/Palette). The key as well as the
type of value is generic for a palette. For instance, you can create a
&str
to palette::Srgba
categorical palette, and another &str
to ratio_color::LinearGradient
numerical palette (since
gradients can now be interpolated by fraction).
[0.3.2] - 2023-04-25
Changed
- Replaced HashMap internals to BTreeMaps for it's guaranteed internal key ordering.
- Allow for newer versions of palette.
[0.3.1] - 2023-04-13
Fixed
- Reverted to
palette
0.6.1 because of errors in any float multiplication. palette#283.
[0.3.0] - 2023-04-11
Added
- Added easy CSS linear-gradient getter to NumericalPalette.
[0.2.0] - 2023-04-03
Added
- PartialEq for NumericalPalette through a implementation that uses the Debug representation of the Linear interpolator.
[0.1.0] - 2023-04-03
Added