apca-introduction

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

commit
2989da99d661a7abdb2949a7e14ed20499d13c9a
parent
81cf96cc89c2333a42ca2e716a6c6c99f84c3765
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-08-05 10:47
typos

Diffstat

M analysis.md 4 ++--

1 files changed, 2 insertions, 2 deletions


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

@@ -282,9 +282,9 @@ function contrast(fg, bg) {
  282   282   var lbg = YtoL(ybg);
  283   283 
  284   284   if (ybg > yfg) {
  285    -1     return Math.pow(lbg, 0.56 / 0.6) - Math.pow(yfg, 0.57 / 0.6);
   -1   285     return Math.pow(lbg, 0.56 / 0.6) - Math.pow(lfg, 0.57 / 0.6);
  286   286   } else {
  287    -1     return Math.pow(ybg, 0.65 / 0.6) - Math.pow(yfg, 0.62 / 0.6);
   -1   287     return Math.pow(ybg, 0.65 / 0.6) - Math.pow(lfg, 0.62 / 0.6);
  288   288   }
  289   289 };
  290   290