Exclude colors that do not pass WCAG 2.0 AA level (#70)

Green and Yellow are too light and impact on user’s ability to read
the Captcha. Deep Purple and Pink are better choices

Ref: https://www.w3.org/TR/WCAG/#contrast-minimum
This commit is contained in:
Geremia Taglialatela 2018-12-14 06:19:53 +01:00 committed by Jason Lee
parent 1b3b38b93c
commit d44e64e496
2 changed files with 37 additions and 32 deletions

View File

@ -1,3 +1,8 @@
2.3.2
-------
- Change Yellow and Green colors to Pink and Deep Purple to pass WCAG 2.0's contrast test
2.3.1
-------

View File

@ -78,41 +78,41 @@ static char *colors[] = {
"\x29\x62\xFF"
"\xff\xff\xff" "," "\0\0\0\0" "\xc8\0\x46\0" "\0" "\x04",
// Green A700 #00C853
// Pink A700 #C51162
"GIF89a" "\xc8\0\x46\0" "\x83" "\0\0"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\x00\xC8\x53"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xC5\x11\x62"
"\xff\xff\xff" "," "\0\0\0\0" "\xc8\0\x46\0" "\0" "\x04",
// Yellow A700 #FFD600
// Deep Purple A700 #6200EA
"GIF89a" "\xc8\0\x46\0" "\x83" "\0\0"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\xFF\xD6\x00"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\x62\x00\xEA"
"\xff\xff\xff" "," "\0\0\0\0" "\xc8\0\x46\0" "\0" "\x04"
};