Display color spaces in the order in which they are presented in the doc (#6140)

This commit is contained in:
Malo 2025-04-04 13:53:14 +02:00 committed by GitHub
parent bf8751c063
commit 387a8b4895
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,12 +120,12 @@ use crate::visualize::{Color, ColorSpace, WeightedColor};
/// #let spaces = (
/// ("Oklab", color.oklab),
/// ("Oklch", color.oklch),
/// ("linear-RGB", color.linear-rgb),
/// ("sRGB", color.rgb),
/// ("linear-RGB", color.linear-rgb),
/// ("CMYK", color.cmyk),
/// ("Grayscale", color.luma),
/// ("HSL", color.hsl),
/// ("HSV", color.hsv),
/// ("Grayscale", color.luma),
/// )
///
/// #for (name, space) in spaces {