apca-introduction

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

commit
350711d47bee9f386945831b2c50f8b39ee6d51f
parent
3df4fa022c59427e3be3ba538b1b333aefee5659
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-07-13 12:09
revert >90 category

https://git.apcacontrast.com/documentation/APCA_in_a_Nutshell

> Lc 90 is a suggested maximum for very large and bold fonts (greater
> than 36px bold), and large areas of color. Small fonts do not have a
> maximum.

Not sure if this is relevant. At the moment it is mostly confusing.

Diffstat

M apca.js 2 +-
M tool/tool.js 1 -

2 files changed, 1 insertions, 2 deletions


diff --git a/apca.js b/apca.js

@@ -1,4 +1,4 @@
    1    -1 export const levels = [45, 60, 75, 90];
   -1     1 export const levels = [45, 60, 75];
    2     2 
    3     3 const tests = [
    4     4   [[136, 136, 136], [255, 255, 255], 63.056469930209424],

diff --git a/tool/tool.js b/tool/tool.js

@@ -61,7 +61,6 @@ var makeGradient = function(scores) {
   61    61     'hsl(40, 100%, 45%)',
   62    62     'hsl(80, 60%, 45%)',
   63    63     'hsl(95, 60%, 41%)',
   64    -1     'hsl(-70, 80%, 40%)',
   65    64   ];
   66    65 
   67    66   var stops = [];