Skip to content

Latest commit

 

History

History
112 lines (75 loc) · 4.38 KB

CHANGELOG.md

File metadata and controls

112 lines (75 loc) · 4.38 KB

Changelog

The latest published Peniko release is 0.3.0 which was released on 2024-12-18. You can find its changes documented below.

This release has an MSRV of 1.82.

0.3.0 (2024-12-18)

This release has an MSRV of 1.82.

Added

  • Gradient, Image, Brush now have with_alpha and Gradient also gets a multiply_alpha (#67 by @waywardmonkeys)
  • Gradient now tracks a hue direction and interpolation color space (#71 by @waywardmonkeys)
  • Compose, Extend, Fill, and Mix now optionally impl bytemuck traits (#72 by @waywardmonkeys)
  • Add x/y extend modes and quality hint to images, rename Format to ImageFormat (#77 by @dfrg)

Changed

Removed

  • Removed the deprecated Gradient::with_alpha_factor in favor of Gradient::multiply_alpha (#82 by @waywardmonkeys)

Color Changes

The old code behind peniko::Color has been removed and color functionality is now provided by the color crate.

This leads to a number of breaking changes:

  • peniko::Color is now a type alias for AlphaColor<Srgb> from the color crate.
  • AlphaColor does not, at this time, impl Default, PartialOrd, or Hash.
  • ColorStop no longer impls Default or PartialOrd.
  • Brush, BrushRef, and ColorStop can be constructed from a variety of color types, although, for now, Brush and BrushRef convert this internally into an unclipped AlphaColor<Srgb>.
  • ColorStops is now a newtype wrapper, rather than a type alias for SmallVec. This allows it to be used with CacheKey from Color.
  • The color crate is re-exported as peniko::color, so access to functionality from there is easy.
  • The various pre-defined color constants like peniko::Color::YELLOW are no longer available. Instead, use the CSS palette provided within color: peniko::color::palette::css::YELLOW.
  • Similarly, parsing a color string is now provided by the color crate.

This is the first step towards providing better support for richer color functionality throughout the Linebender stack.

0.2.0 (2024-09-19)

This release has an MSRV of 1.70.

Added

Changed

  • Breaking: Mark Format as #[non_exhaustive] (#47 by @DJMcNab)
  • Rename with_alpha_factor to multiply_alpha (#52 by @DJMcNab)

0.1.1 (2024-05-27)

This release has an MSRV of 1.70.

Added

  • serde feature to enable serde support (#26 by @ratmice)

0.1.0 (2024-02-15)

This release has an MSRV of 1.70.

  • Initial release