diff --git a/core/src/color.rs b/core/src/color.rs index ad60592a..954aad66 100644 --- a/core/src/color.rs +++ b/core/src/color.rs @@ -197,7 +197,7 @@ impl Color { } /// Returns the relative luminance of the [`Color`]. - /// https://www.w3.org/TR/WCAG21/#dfn-relative-luminance + /// pub fn relative_luminance(self) -> f32 { let linear = self.into_linear(); 0.2126 * linear[0] + 0.7152 * linear[1] + 0.0722 * linear[2]