View Single Post
Old 17 June 2017, 13:36   #14
chocsplease
Registered User
 
Join Date: Dec 2016
Location: london
Posts: 178
Many thanks for the replies.

Getting a nice looking output is proving a real mission.

Quote:
Originally Posted by mark_k View Post
A simple average isn't very good, because the human eye is much more sensitive to green than blue. A good-enough way to calculate the luminance is 3×red + 6×green + 1×blue
In the end I went for 0.21 R + 0.72 G + 0.07 B, though there are so many different suggestions on the net (should have googled first!) its kind of try it and see.

I suspect I'm either going to force the output background to be white (or as close to white as the user has) or force the percentage background to be white - playing around at present to see which looks best.
chocsplease is offline  
 
Page generated in 0.05737 seconds with 11 queries