[Libreoffice-ux-advise] [Bug 156182] FORMATTING Automatic text color can be unreadable with darker cell colors
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 12 15:37:02 UTC 2023
https://bugs.documentfoundation.org/show_bug.cgi?id=156182
--- Comment #7 from Myndex <me at andysomers.com> ---
Also I just ran the macro, there's an error in case 4
It is not correct to do a square root on Andy's down and dirty luminance:
aLum = sqr( (Red(aColor)/255)^2.2 * 0.2126 +
(Green(aColor)/255)^2.2 * 0.7152 + (Blue(aColor)/255)^2.2 * 0.0722 )
Threshold = 0.6
This should instead be
aLum = (Red(aColor)/255)^2.2 * 0.2126 +
(Green(aColor)/255)^2.2 * 0.7152 + (Blue(aColor)/255)^2.2 * 0.0722
Threshold = 0.36
Thank you!
Andy
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libreoffice-ux-advise
mailing list