blend function urgently needed in kdelibs

Tobias G. Pfeiffer tgpfeiffer at
Tue May 22 23:20:34 BST 2007


On Tuesday 22 May 2007, 00:41, David Faure wrote:
> On Tuesday 22 May 2007, Matthew Woehlke wrote:
> > Seven parameters (hehe... actually it's going to be eight) are pretty
> > well required if it's to be flexible
> Another solution is to create a KColorBlender class, with a number of
> setter methods and a blend() method (without arguments - i.e. the "do it
> now" method)... OK not sure it makes sense, just thinking out loud about
> how to avoid 8 params :)

Why not have something like
  blend(const QVector<KColor>&, const QVector<float>&, ...)?
You would a) reduce the number of parameters, b) avoid a hardcoded two-color, 
three-color etc. version.


follow the penguin...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list