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

前端 未结 5 1413
长情又很酷
长情又很酷 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条回答
  •  时光取名叫无心
    2020-12-13 07:09

    Actually, you get green from mixing (subtractively) yellow and cyan. Yellow is red + green (255, 255, 0), cyan is green + blue (0, 255, 255). Now make their opposite colors: blue (0, 0, 255) and red (255, 0, 0). Mix them additively and you get purple (255, 0, 255). Make its opposite and you get green (0, 255, 0).

    In other words, you can get a subtractive mix as the opposite of the additive mix of the opposites of your two colors.

提交回复
热议问题