Revision 691526

Go back to digest for 29th July 2007

Features in Office

Emanuele Tamponi committed changes in /trunk/koffice/krita/plugins/viewplugins/painterlymixer:

Yet another fix for the "autodarkening" color (that is, while stroking for example red, it gets darker and darker). It should be gone away definitively.

Now, let me introduce here how this Painterly Mixer works, and why would *could* get "wrong" (as in "not realistic") results (a part for the slowness, I hope to be able to do some profiling tomorrow).

- It's based on my KisKSColorSpace. This Color Space stores K and S values, 10 each, that represents the Absorption and Scattering of the current color at 10 differents bands of wavelenghts. For example the first pair represent how much light will be scattered and absorbed between 380 and 430 nanometers.

- This Color Space has an advantage: the color that results from a mixture is a linear combination of K and S, so it's amazing easy to get the real color of whatever mixture.

- But it has a disadvantage too: currently, there is not a perfect way to calculate K and S values from RGB (or CMYK or whatever). So sometimes the calculation that I do behind the scene gives wrong K and S values for a color, resulting in a bad mixing.

- So it looks like we are again at the starting point, not having a way to mix colors perfectly.

Completely wrong! The great advantage of this Color Space is that we can decide ourself the K and S values of our color! After some research by me, the 8 color spots in the mixer will contain the K and S values of common colors in a artist's palette, giving you the possibility of actually draw and mix as in reality!

- We have not finished with cool stuff: this Color Space, throught easy to use profiles (KisIlluminantProfile) can handle the light that illuminate the image! I mean, for example, that you can decide that your drawing is illuminated by a neon instead of the sun, obtaining the changes that you would expect!

I hope that the situation is more clear now... Sorry, I hoped to obtain pretty good K and S values from RGB, but I'm still working on a more robust algorithm. Enjoy!

File Changes

Modified 4 files
  • /trunk/koffice/krita/plugins/viewplugins/painterlymixer
  •   /kis_ks_colorspace.cpp
  •   /kis_ks_colorspace.h
  •   /mixertool.cpp
  •   /tests/illuminant_test.cpp
4 files changed in total