Skip to content

7.0.0: The Chromatic Preservation Release

Choose a tag to compare

@waacton waacton released this 19 Apr 15:17
· 15 commits to main since this release

Unicolour

  • Add single-value achromatic constructors
    • e.g. var grey = new Unicolour(ColourSpace.Rgb, 0.5) · var black = new Unicolour(ColourSpace.Hsb, 0)
    • Guarantees hue is ignored during mixing for hued colour spaces
  • Remove .Constrained properties from individual colour representations
  • Allow out-of-gamut colours to be converted
    • No longer enforce constraining a colour representation before conversion
    • Any gamut limitations are explicitly handled as part of the conversion itself
    • This allows for unusual but intuitive edge cases where outlier values can still be roundtrip converted
    • e.g. RGB 255 255 510 (white but with 200% blue) → HSB 240.0° 50% 200% instead of HSB —° 0.0% 100.0%
    • All 80 conversion functions have been reviewed and testing expanded to cover out-of-gamut roundtrip conversions
  • Expose helper functions to convert between hue and wavelength, used as part of WXY colour space
    • Hue.FromWavelength(double wavelength, XyzConfiguration xyzConfig)
    • Hue.ToWavelength(double degrees, XyzConfiguration xyzConfig)
  • Rename chromatic adaptation type used in XyzConfiguration
    • e.g. Adaptation.VonKries is now ChromaticAdaptation.VonKries

Unicolour.Datasets

  • Add ISCC-NBS Munsell centroids

Unicolour.Experimental

  • Add colour wheel
  • Add colour harmonies

🎁 NuGet