bevy/crates/bevy_render
Zachary Harrold 6774e042c7
bevy_color: Add Oklch Color Space (#12168)
# Objective

- Complete compatibility with CSS Module 4

## Solution

- Added `Oklcha` which implements the Oklch color model.
- Updated `Color` and `LegacyColor` accordingly.

## Migration Guide

- Convert `Oklcha` to `Oklaba` using the provided `From` implementations
and then handle accordingly.

## Notes

This is the _last_ color space missing from the CSS Module 4 standard,
and is also the one I believe we should recommend users actually work
with for hand-crafting colours. It has all the uniformity benefits of
Oklab combined with the intuition chroma and hue provide (when compared
to a-axis and b-axis parameters).
2024-02-28 01:22:55 +00:00
..
macros Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
src bevy_color: Add Oklch Color Space (#12168) 2024-02-28 01:22:55 +00:00
Cargo.toml Made bevy_color a dependency of bevy_render (#12105) 2024-02-25 22:35:00 +00:00