Kubelka-Munk implementation as Krita for mixing colors (colors) such as paint

Does anyone know where to find or implement the Kubelka-Munk function to mix color like natural paint? Emanuelle Tamponi implemented this feature in Krita , an open source project, but I can not find anywhere that this or a similar method is "natural" to mix colors. It may be commercially sensitive or closed, but if you do not ask, you will not know!

+4
colors
Apr 20 2018-12-12T00:
source share
3 answers

Remember to reuse the code we have in krita. This is in calligra / krita / plugins / extensions / painterlyframework. It needs a pigment library as a backup, but I think you can easily ignore it.

Please note that the code is under the GPLv2 + license. If you are reusing code or light source files, your code must also be GPL.

(for more information, please contact me - boud@valdyas.org or boud on #krita on irc.freenode.net, I am the accompanying person for Crete).

+4
Apr 21 '12 at 6:18
source share

It implements an implementation that uses the simplified Kubelka-Munk model. It is assumed that all colors have the same concentration when mixed and that all colors are opaque. If this is helpful, feel free to use it in any way.

https://github.com/benjholla/ColorMixer

+2
Feb 12 '13 at 19:19
source share

There is not enough information provided only by RGB values ​​to perform a true Kubelka-Munk calculation, because you need both absorption and scattering curves in the visible spectrum. Instead, you can generate representative reflection curves from RGB values, and then use the reflection information to perform a subtractive mixture, for example, by calculating the weighted geometric mean of the two reflection curves.

+2
Apr 30 '15 at 12:20
source share



All Articles