- commit
- cfb081a78afb73ff1d1db5818e03016edb9cd5fe
- parent
- 9305232ec5f36394397fe6682decb75cec12c589
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-07-16 10:40
refine wcag6 value to 0.4
Diffstat
| M | analysis.md | 2 | +- |
| M | plots/sRGBtoY_comparison.png | 0 | |
| M | plots/sRGBtoY_comparison.py | 6 | +++--- |
3 files changed, 4 insertions, 4 deletions
diff --git a/analysis.md b/analysis.md
@@ -231,7 +231,7 @@ function normalize(y) {
231 231
232 232 The four curves for APCA are very similar. Despite the very different formula,
233 233 the WCAG 2.x curve also has a similar shape. I added a modified WCAG 2.x curve
234 -1 with an ambient light value of 0.6 instead of 0.05. This one is very similar
-1 234 with an ambient light value of 0.4 instead of 0.05. This one is very similar
235 235 to the APCA curves. The second column shows the differences between the APCA
236 236 curves and this modified WCAG 2.x.
237 237
diff --git a/plots/sRGBtoY_comparison.png b/plots/sRGBtoY_comparison.png
Binary files differ.diff --git a/plots/sRGBtoY_comparison.py b/plots/sRGBtoY_comparison.py
@@ -37,7 +37,7 @@ if __name__ == '__main__': 37 37 fig, axes = plt.subplots(4, 2, sharex=True, sharey='col', figsize=(6.4, 8)) 38 38 39 39 for i in range(4):40 -1 wcag6 = wcag(x, WCAG_FACTORS[i], 0.6)-1 40 wcag6 = wcag(x, WCAG_FACTORS[i], 0.4) 41 41 42 42 for exp in APCA_EXPONENTS: 43 43 y = apca(x, APCA_FACTORS[i], exp) @@ -53,7 +53,7 @@ if __name__ == '__main__': 53 53 axes[3][0].set_ylabel('blue') 54 54 55 55 axes[0][0].set_title('sRGBtoY')56 -1 axes[0][1].set_title('ratio APCA / WCAG 0.6')-1 56 axes[0][1].set_title('ratio APCA / WCAG 0.4') 57 57 58 58 fig.legend([ 59 59 'APCA 0.56', @@ -61,7 +61,7 @@ if __name__ == '__main__': 61 61 'APCA 0.62', 62 62 'APCA 0.65', 63 63 'WCAG 0.05',64 -1 'WCAG 0.6',-1 64 'WCAG 0.4', 65 65 ], ncol=3, loc='lower center') 66 66 67 67 plt.tight_layout()