mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
16107385af
# Objective - Even if we have `Laba` and `Oklcha` colorspaces using lightness as the L field name, `Oklaba` doesn't do the same - The shorthand function for creating a new color should be named `Oklaba::lab`, but is named `lch` ## Solution - Rename field l in `Oklaba` to lightness - Rename `Oklaba::lch` to `Oklaba::lab` --- ## Changelog ### Changed - Changed name in l field in `Oklaba` to lightness - Changed method name `Oklaba::lch` to `Oklaba::lab` ## Migration Guide If you were creating a Oklaba instance directly, instead of using L, you should use lightness ```rust // Before let oklaba = Oklaba { l: 1., ..Default::default() }; // Now let oklaba = Oklaba { lightness: 1., ..Default::default() }; ``` if you were using the function `Oklaba::lch`, now the method is named `Oklaba::lab` |
||
---|---|---|
.. | ||
crates/gen_tests | ||
docs | ||
src | ||
Cargo.toml |