[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Review Request: KColorSpace::KHCY::KHCY(const & QColor)
From: Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date: 2009-06-26 16:06:16
Message-ID: h22rlo$nrg$1 () ger ! gmane ! org
[Download RAW message or body]
Johannes Sixt wrote:
> gamma() is a strictly monotonic function. Therefore, you can look at the
> integer RGB values of QColor in order to decide which branch to take.
No I can't. I consider redF() more canonical than red() (higher
precision, and QColor might become HDR in the future).
I could look at the pre-gamma-corrected values, but is that worth
keeping more variables around (or trusting the compiler to optimize
multiple calls to redF() and friends)?
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
> pinotree uses the large trout on tsdgeos and PutHuhn :)
> PutHuhn runs
> tsdgeos lights a fire and eats the trout
(with apologies to Pino Toscano, PutHuhn and Albert Astals Cid, who came
up with this entirely on their own)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic