[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [KSudoku] Background color problem
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2008-06-02 16:26:59
Message-ID: g2170j$eef$1 () ger ! gmane ! org
[Download RAW message or body]

Percy Camilo Triveņo Aucahuasi wrote:
> int luminance = 0.2126*baseWndColor.red() + 0.7152*baseWndColor.green() +
> 0.0722*baseWndColor.blue();

For future reference, please consider using KColorUtils::luma :-). (At 
the very least, the above is redundant with qGray - KCU::luma uses gamma 
correction as well, which matches with how KCS handles light/dark stuff.)

-- 
Matthew
Somewhere there is a pun so egregious that uttering it will incite 
murderous rage in all who hear it. If anyone knows where it is, please 
let me know.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic