Color source for paintops

Cyrille Berger cberger at cberger.net
Sun Nov 22 19:05:34 CET 2009


Hello,

As discussed with Lukas on IRC last week, here is a patch that allow more 
flexibility on the color source used to colorize the dabs.

It introduce a new base class KisColorSource, which abstract color sources. 
There are two types of color source, uniform color sources, where the color is 
the same on the whole dab (but might be different at each stroke), and those 
who can have different color for each pixel of the dab. And we want to apply 
transformation to those color source (mostly color transformation).

This patch is an unfinished demonstration of the concept. It needs a bit of 
cleaning, and there are many things that are unimplemented. What it does: it 
adds a mixing settings, and show how to apply a transformation (currently only 
darken).
The mixing settings allow to mix between foreground and background, depending 
on the sensor input.

-- 
Cyrille Berger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: krita-color-source.diff
Type: text/x-patch
Size: 19599 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20091122/c6fbb82a/attachment.diff 


More information about the kimageshop mailing list