Mathematically increase the warmth of RGB color

I am looking for a way to make RGB color warmer. At first I tried to increase the R-component of the RGB color to make it warmer, but this gave unexpected results. What is the right way to increase the warmth of an RGB color?

+4
source share
1 answer

I'm not sure if you are using Python or not - in fact I just posted another answer that references the colorsys library, so I promise I will not sell it, but I would convert my RGB values ​​to HSV and increase the β€œvalue” or performed an if-then and checked some values ​​to see where I could increase my heat. Sometimes an increase in saturation causes the image to look cloudy, where you mostly regress from complex colors to basic ones.

Good luck

0
source

Source: https://habr.com/ru/post/1400330/


All Articles