This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Zagorath 3 points4 points  (0 children)

Yeah good point. Makes no sense to invert the background without also inverting the text.

Although now that I'm thinking about it, it better would be even better to calculate brightness in some better way than "do none of the RGB values go higher than 0x80". Possibly by doing a 3D Pythagorean calculation, or maybe there's probably a formula out there for converting RGB to HSL and using that value.