gtaylor / python-colormath

A python module that abstracts common color math operations. For example, converting from CIE L*a*b to XYZ, or from RGB to CMYK
python-colormath.readthedocs.org
BSD 3-Clause "New" or "Revised" License
456 stars 83 forks source link

Custom lightsource and material interaction #68

Closed electricgobo closed 7 years ago

electricgobo commented 7 years ago

I apologize beforehand if this functionality is already in ColorMath and this should turn out an error or lack of knowledge on my side:

Is there a way of doing math on the interaction between surface and light source color?

Simple example: A saturated orange tone surface X is lit with a saturated blue tone filtered light Y - presumably the apperance is a close blockout, a dark grey.

Advanced example: An array of surface colors A under a light source Z, which got a very rugged and bad spectral distribution. What is happening? What is left of an orange or a limegreen? What is the appearance?

How to calc for those multiplication effects? Is that possible already?

Thanks a lot, much appreciated! Axel

gtaylor commented 7 years ago

Sorry, I don't have much for guidance on this. I'm pretty rusty on my color math.