apca-introduction

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

commit
9305232ec5f36394397fe6682decb75cec12c589
parent
1126a01c61885de64eae7eb1152cd0e8c5e5958b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-07-17 04:55
use ratio as measure for error

Diffstat

M plots/sRGBtoY_comparison.png 0
M plots/sRGBtoY_comparison.py 4 ++--

2 files changed, 2 insertions, 2 deletions


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

@@ -42,7 +42,7 @@ if __name__ == '__main__':
   42    42 		for exp in APCA_EXPONENTS:
   43    43 			y = apca(x, APCA_FACTORS[i], exp)
   44    44 			axes[i][0].plot(x, y)
   45    -1 			axes[i][1].plot(x, wcag6 - y)
   -1    45 			axes[i][1].plot(x, y / wcag6)
   46    46 
   47    47 		axes[i][0].plot(x, wcag(x, WCAG_FACTORS[i], 0.05))
   48    48 		axes[i][0].plot(x, wcag6)
@@ -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('difference to WCAG 0.6')
   -1    56 	axes[0][1].set_title('ratio APCA / WCAG 0.6')
   57    57 
   58    58 	fig.legend([
   59    59 		'APCA 0.56',