Skip to content

v0.3.2

Latest

Choose a tag to compare

@tomcur tomcur released this 10 Sep 10:21
· 3 commits to main since this release
82ffed8

Crates.io | Docs

This release has an MSRV of 1.82.

Added

  • Add interpolate_unpremultiplied and gradient_unpremultiplied for interpolating in unpremultiplied (straight) alpha space.

    While such interpolation will often give perceptually undesired results, this allows using Color to implement rendering features where such interpolation is specified, like in the HTML Canvas element. (#185 by @sagudev)

Changed

  • Specify XYZ-D65 color space conversion matrices as exact rationals. (#171 by @tomcur)
  • Improve documentation of AlphaColor vs PremulColor to clarify alpha premultiplication, and make both types more discoverable from each other. (#190 by @tomcur)

New Contributors

Full Changelog: v0.3.1...v0.3.2