mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
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:
committed by
bflatastic
parent
6beb68f934
commit
6fd1f566e1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user