Turn URL in Color documentation into an actual link
This commit is contained in:
parent
d8f08e78c6
commit
81ed466164
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ impl Color {
|
|||
}
|
||||
|
||||
/// Returns the relative luminance of the [`Color`].
|
||||
/// https://www.w3.org/TR/WCAG21/#dfn-relative-luminance
|
||||
/// <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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue