Skip to content

5.0.0: The Pigments Release

Latest
Compare
Choose a tag to compare
@waacton waacton released this 08 Feb 19:40

Unicolour

  • Introduce pigments, which can be constructed from either absorption k and scattering s coefficients (two-constant) or a reflectance curve r (single-constant)
  • Enable Unicolour creation from a list of pigments and their concentrations
  • Add .Palette() as an alternative to .Mix() to easily acquire a range of interpolated colours
  • Clarify gamut mapping API
    • colour.IsInDisplayGamutcolour.IsInRgbGamut
    • colour.MapToGamut()colour.MapToRgbGamut()
  • Add two new gamut mapping options, alongside the default Oklch chroma reduction
  • Improve colour vision deficiency API
    • e.g. colour.SimulateProtanopia()colour.Simulate(Cvd.Protanopia)
  • Improve SPD API
    • e.g. new Spd({ { 575, 0.5 }, { 580, 1.0 }, { 585, 0.5 } })new Spd(575, 5, [0.5, 1.0, 0.5])
  • Fix comparison of colours with different configurations
  • Rename configuration property
    • colour.Configcolour.Configuration

Unicolour.Datasets

  • Add a dataset of pigments created from two-constant measurements (Artist Paint Spectral Database)

Unicolour.Experimental

  • Introduce new package of experimental additions
  • Add single-constant pigment generation from any colour
  • Add Spectral.js implementation, extended to be able to mix more than two colours

🎁 NuGet