Skip to content

Latest commit

 

History

History
89 lines (58 loc) · 3.35 KB

CHANGELOG.md

File metadata and controls

89 lines (58 loc) · 3.35 KB

Changelog

The latest published Peniko release is 0.2.0 which was released on 2024-09-19. You can find its changes documented below.

This release has an MSRV of 1.82.

Changed

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, PartialEq, PartialOrd, or Hash.
  • Brush and BrushRef no longer impl PartialEq.
  • 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>.
  • 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