From bdf68c7a1242f497bfae7e1179363eefaaaf9b70 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Sat, 10 Sep 2022 11:00:19 +0200 Subject: [PATCH] Fix some typos in contrast docs (#216) --- docs/contrast.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/contrast.md b/docs/contrast.md index 4c392a240..5b96ed923 100644 --- a/docs/contrast.md +++ b/docs/contrast.md @@ -67,7 +67,7 @@ It is commonly used in lighting design, and also to examine small, sharp edged symbols and text on larger, uniformly-colored backgrounds. -> WC = Ymax - Ymin / Ymin +> WC = (Ymax - Ymin) / Ymin Any two colors can be used, and this formula does not care which is the text color and which is the background. @@ -85,7 +85,7 @@ Weber contrast is typically used with printed test charts with positive polarity (black text, white background). The formula thus can be expressed as: -> WCpp = Ybackground - Ytext / Ytext +> WCpp = (Ybackground - Ytext) / Ytext Hwang and Peli used a modified Weber contrast for tablet-based, negative polarity testing (white text on black background), @@ -95,7 +95,7 @@ and wrote: The formula for negative polarity is -> WCnp = Ytext - Ybackground / Ytext +> WCnp = (Ytext - Ybackground) / Ytext ## Michelson Contrast @@ -209,7 +209,7 @@ _This value is much higher than that in the sRGB standard, which puts white at 80 cd/m2 and black at 0.2cd/m2, a relative luminance boost of 0.0025._ -> WCAG21 = = (Ymax + 0.05) / (Ymin + 0.05) +> WCAG21 = (Ymax + 0.05) / (Ymin + 0.05) Because of it's widespread use, color.js provides this method, mainly to aid comparison.