Algorithm for finding the color between two others - in the colorspace of painted colors

前端 未结 5 1411
长情又很酷
长情又很酷 2020-12-13 07:02

When mixing blue and yellow paint, the result is some sort of green.

I have two rgb colors:

blue = (0, 0, 255)

and yellow = (255, 255, 0)

Wha

5条回答
  •  -上瘾入骨i
    2020-12-13 07:33

    The colour space RBG is based on light emission, the colour space of dyes and pigments is based on light absorption.

    e.g. Plant's don't look green because they emit green light, but because they absorb all the other colours of light, reflecting only green.

    Based on this, you should be able to get pretty close by doing a conversion from RGB to an absorptive colour space, doing the "mix" and then back again.

提交回复
热议问题