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.
Image
now stores the alpha as anf32
(#65 by @waywardmonkeys)- Use
color
crate. See below for details (#63 by @waywardmonkeys) Gradient
,Image
,Brush
now havewith_alpha
andGradient
also gets amultiply_alpha
(#67 by @waywardmonkeys)
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 forAlphaColor<Srgb>
from thecolor
crate.AlphaColor
does not, at this time, implDefault
,PartialEq
,PartialOrd
, orHash
.Brush
andBrushRef
no longer implPartialEq
.ColorStop
no longer implsDefault
orPartialOrd
.Brush
,BrushRef
, andColorStop
can be constructed from a variety of color types, although, for now,Brush
andBrushRef
convert this internally into an unclippedAlphaColor<Srgb>
.- The
color
crate is re-exported aspeniko::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 withincolor
: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.
- Breaking: An
alpha
multiplier toImage
(#40 by @DJMcNab) mint
feature to enablemint
support in kurbo (#46 by @waywardmonkeys)
- Breaking: Mark
Format
as#[non_exhaustive]
(#47 by @DJMcNab) - Rename
with_alpha_factor
tomultiply_alpha
(#52 by @DJMcNab)
0.1.1 (2024-05-27)
This release has an MSRV of 1.70.
0.1.0 (2024-02-15)
This release has an MSRV of 1.70.
- Initial release