cowor 0.1.0

A color conversion and manipulation library
Documentation
  • Coverage
  • 83.33%
    30 out of 36 items documented24 out of 29 items with examples
  • Size
  • Source code size: 63.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.51 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • zatmos/cowor
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zatmos

cowor

A color conversion and manipulation library with color spaces' specifications enforced through the type system. All colors are always valid and there are no "unclamped" values.

Current state

Currently supporting the following color spaces:

  • sRGB
  • CIEXYZ
  • CIELAB
  • CIELCh(ab)

and the conversions between each of those.

How to use

Currently, only the conversions are implemented. To perform a conversion between two color spaces, simply use from/into for conversions in which the starting color space's colors can always be represented in the destination color space. Otherwise, use try_from/try_into. The error when the starting color falls outside the gamut of the destination color space is a OutOfGamut error.

License

Licensed under the GNU General Public License, Version 3.0