Page 1 of 1

yellow+blue=green

Posted: 2018-09-19T08:14:48-07:00
by vandinem
I would like to merge images so that pixels represent the RGB result of combining the overlays. In the simplest case, a yellow pixel + a blue pixel would result in a green pixel. Does ImageMagick support a mechanism to do something like this?

Re: yellow+blue=green

Posted: 2018-09-19T09:49:40-07:00
by snibgo
"yellow+cyan->green" occurs in subtractive mixing, like paints or colour printers. So do the work in CMY colorspace, eg:

Code: Select all

magick -size 200x200 xc:Yellow xc:cyan -colorspace CMY -compose Add -composite -colorspace sRGB x.png