File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ pub enum Color {
29
29
Laba ( Laba ) ,
30
30
/// A color in the LCH color space with alpha.
31
31
Lcha ( Lcha ) ,
32
- /// A color in the Oklaba color space with alpha.
32
+ /// A color in the Oklab color space with alpha.
33
33
Oklaba ( Oklaba ) ,
34
- /// A color in the Oklcha color space with alpha.
34
+ /// A color in the Oklch color space with alpha.
35
35
Oklcha ( Oklcha ) ,
36
36
/// A color in the XYZ color space with alpha.
37
37
Xyza ( Xyza ) ,
Original file line number Diff line number Diff line change 10
10
//! - [`Laba`] (lightness, a-axis, b-axis, alpha)
11
11
//! - [`Lcha`] (lightness, chroma, hue, alpha)
12
12
//! - [`Oklaba`] (lightness, a-axis, b-axis, alpha)
13
+ //! - [`Oklcha`] (lightness, chroma, hue, alpha)
13
14
//! - [`Xyza`] (x-axis, y-axis, z-axis, alpha)
14
15
//!
15
16
//! Each of these color spaces is represented as a distinct Rust type.
39
40
//! and an analog of lightness in the form of value. In contrast, HWB instead uses whiteness and blackness
40
41
//! parameters, which can be used to lighten and darken a particular hue respectively.
41
42
//!
42
- //! Oklab and Okclch are perceptually uniform color spaces that are designed to be used for tasks such
43
+ //! Oklab and Oklch are perceptually uniform color spaces that are designed to be used for tasks such
43
44
//! as image processing. They are not as widely used as the other color spaces, but are useful
44
45
//! for tasks such as color correction and image analysis, where it is important to be able
45
46
//! to do things like change color saturation without causing hue shifts.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use crate::{
5
5
use bevy_reflect:: { Reflect , ReflectDeserialize , ReflectSerialize } ;
6
6
use serde:: { Deserialize , Serialize } ;
7
7
8
- /// Color in Oklaba color space, with alpha
8
+ /// Color in Oklab color space, with alpha
9
9
#[ doc = include_str ! ( "../docs/conversion.md" ) ]
10
10
/// <div>
11
11
#[ doc = include_str ! ( "../docs/diagrams/model_graph.svg" ) ]
You can’t perform that action at this time.
0 commit comments