From 6fd1f566e1b1f9ed70256ffe30a6ecdea2d0b0ec Mon Sep 17 00:00:00 2001 From: Taha-Mahmoodi <85902429+Taha-Mahmoodi@users.noreply.github.com> Date: Thu, 22 Oct 2026 23:22:30 +0430 Subject: [PATCH] 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. --- crates/color/src/gradient.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/color/src/gradient.rs b/crates/color/src/gradient.rs index bba8f6f33..e97ca634a 100644 --- a/crates/color/src/gradient.rs +++ b/crates/color/src/gradient.rs @@ -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();