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

List:       kde-core-devel
Subject:    Re: What to do about KColor?
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-05-28 20:31:22
Message-ID: 20070528203122.GB14415 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 28.05.07 12:55:10, Aaron J. Seigo wrote:
> On Monday 28 May 2007, Andreas Pakulat wrote:
> > As I said above, just doing blendColor(c1,c2) doesn't give you anything
> > but c2 (unless c2 already has an alpha set). Thats the main point,
> > calling that function what I want to end up is a mix of those two
> > colors, not the original c2, without any extra work.
> 
> how much of a mix, exactly in between? if so, that is exactly one more method 
> that serves as a convenience method to the first one. since you know exactly 
> what you want, perhaps you could provide a patch? it's 3 lines of code, 
> including the header change. 

Uhm, the amount should be a parameter, possibly with a sane default
value. I've experimented with the current blendColor right now and it
seems to do what it supposed to, however I need to set an alpha value
and create a temporary color object myself. Thats what blendColor should
hide from the user of the API too. 

Yes I will provide a patch for that in a minute, but I wanted to test
blendColor first. 

Andreas

-- 
You're ugly and your mother dresses you funny.
[prev in list] [next in list] [prev in thread] [next in thread] 

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