Gradients: the Perceptual test describes the method in our own words

Review follow-up (CodeRabbit): the test's doc comment quoted a phrase from
the public help page. AGENTS.md allows feature names and a cited URL, not
copied wording; the comment now describes the behaviour itself and keeps
the URL.
This commit is contained in:
Taha-Mahmoodi
2026-10-23 01:53:30 +07:00
committed by bflatastic
parent 6beb68f934
commit 6fd1f566e1
+4 -5
View File
@@ -1083,11 +1083,10 @@ mod tests {
g
}
/// Illustrator 30's Perceptual method mixes colours "to match how the human eye perceives
/// differences between colors"
/// (https://helpx.adobe.com/illustrator/desktop/paint-and-fill/create-and-edit-gradients/control-perceptual-interpolation-in-gradients.html):
/// blue → yellow passes through a light blue-grey in OKLab, not the flat mid grey a display
/// RGB mix gives, and its lightness climbs evenly.
/// Illustrator 30's Perceptual method mixes colours in a perceptually even way
/// (https://helpx.adobe.com/illustrator/desktop/paint-and-fill/create-and-edit-gradients/control-perceptual-interpolation-in-gradients.html).
/// Here that is OKLab: blue → yellow passes through a light blue-grey, not the flat mid grey
/// a display RGB mix gives, and its lightness climbs evenly.
#[test]
fn perceptual_blue_to_yellow_is_not_the_grey_rgb_mix() {
let classic = blue_yellow(GradientMethod::Classic).sample(0.5).0.to_rgb();