Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

HueDirection now impls PartialEq #79

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ This release has an [MSRV][] of 1.82.
* Support for the `ACEScg` colorspace. ([#54][] by [@MightyBurger][])
* `DynamicColor` gets `with_alpha` and `multiply_alpha`. ([#71][] by [@waywardmonkeys][])
* `DynamicColor` now impls `Hash` and `PartialEq`. ([#75][] by [@waywardmonkeys][])
* `HueDirection` now impls `PartialEq`. ([#79][] by [@waywardmonkeys][])

### Changed

* The `mul_alpha` method was renamed to `multiply_alpha`. ([#65][] by [@waywardmonkeys][])
* Stray parenthesis in hex serialization of Rgba8 fixed ([#78][] by [@raphlinus][])

### Fixed

* Stray parenthesis in hex serialization of `Rgba8` fixed. ([#78][] by [@raphlinus][])

## [0.1.0][] (2024-11-20)

Expand All @@ -52,6 +56,7 @@ This is the initial release.
[#75]: https://github.com/linebender/color/pull/75
[#77]: https://github.com/linebender/color/pull/77
[#78]: https://github.com/linebender/color/pull/78
[#79]: https://github.com/linebender/color/pull/79

[Unreleased]: https://github.com/linebender/color/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/linebender/color/releases/tag/v0.1.0
Expand Down
2 changes: 1 addition & 1 deletion color/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub struct PremulColor<CS> {
/// 4 spec.
///
/// [`hue-interpolation-method`]: https://developer.mozilla.org/en-US/docs/Web/CSS/hue-interpolation-method
#[derive(Clone, Copy, Default, Debug)]
#[derive(Clone, Copy, Default, Debug, PartialEq)]
#[non_exhaustive]
pub enum HueDirection {
/// Hue angles take the shorter of the two arcs between starting and ending values.
Expand Down
Loading