Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

docs(adjust): correct Levels and Curves composition order (#2212)

Coy Geekf4bc463ee8c9
diff --git a/crates/doc/src/adjust.rs b/crates/doc/src/adjust.rs
index 5ac5ceebd..accf7de9e 100644
--- a/crates/doc/src/adjust.rs
+++ b/crates/doc/src/adjust.rs
@@ -136,7 +136,8 @@ pub enum Adjustment {
contrast: f32,
legacy: bool,
},
- /// Composite channel first, then R, G, B (or the channels `space` names).
+ /// R, G, B (or the channels `space` names) first, then the master (composite) record.
+ /// In CMYK this also applies to `black`; in Lab the master is ignored.
Levels {
master: LevelsChannel,
per_channel: [LevelsChannel; 3],
@@ -146,7 +147,8 @@ pub enum Adjustment {
#[serde(default)]
black: LevelsChannel,
},
- /// Master curve then R, G, B curves (or the channels `space` names).
+ /// R, G, B curves (or the channels `space` names) first, then the master (composite) curve.
+ /// In CMYK this also applies to `black`; in Lab the master is ignored.
Curves {
master: Vec<CurvePoint>,
per_channel: [Vec<CurvePoint>; 3],