apca-introduction

The missing introduction to APCA  https://p.ce9e.org/apca-introduction/
git clone https://git.ce9e.org/apca-introduction.git

commit
28922b6cf7e90a3d81c12acd9813735d8f8019eb
parent
2695b72560d0b6abc101937b4de58e999c47b186
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-07-18 19:19
fix typos

Diffstat

M README.md 2 +-
M analysis.md 8 ++++----

2 files changed, 5 insertions, 5 deletions


diff --git a/README.md b/README.md

@@ -48,7 +48,7 @@ function contrast(fg, bg) {
   48    48   }
   49    49 
   50    50   return c * 100;
   51    -1 };
   -1    51 }
   52    52 ```
   53    53 
   54    54 ([Source](https://github.com/Myndex/SAPC-APCA/blob/master/documentation/APCA-W3-LaTeX.md))

diff --git a/analysis.md b/analysis.md

@@ -39,8 +39,8 @@ answer each of these questions.
   39    39 ## The contrast formula
   40    40 
   41    41 There is no *true* contrast formula. Instead, these formulas are supposed to
   42    -1 predict how most humans will a color combination, even if they cannot be
   43    -1 correct 100% of the time..
   -1    42 predict how most humans perceive a color combination, even if they cannot be
   -1    43 correct 100% of the time.
   44    44 
   45    45 ### A naive approach
   46    46 
@@ -70,7 +70,7 @@ function gamma(x) {
   70    70   if (x < 0.04045) {
   71    71     return x / 12.92;
   72    72   } else {
   73    -1     return Math.pow((c + 0.055) / 1.055, 2.4);
   -1    73     return Math.pow((x + 0.055) / 1.055, 2.4);
   74    74   }
   75    75 }
   76    76 
@@ -379,7 +379,7 @@ How these values were derived is not completely clear:
  379   379 APCA defines 6 thresholds: 15, 30, 45, 60, 75, 90.
  380   380 
  381   381 The required threshold depends on the spatial frequency (see above). 45, 60,
  382    -1 and 70 loosely correspond to 3, 4.5, and 7 in WCAG 2.x.
   -1   382 and 75 loosely correspond to 3, 4.5, and 7 in WCAG 2.x.
  383   383 
  384   384 ## Conclusion
  385   385