Skip to content

Instantly share code, notes, and snippets.

@yoya
Created February 2, 2017 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoya/8046c2a1f82621a464a1b55b24b14632 to your computer and use it in GitHub Desktop.
Save yoya/8046c2a1f82621a464a1b55b24b14632 to your computer and use it in GitHub Desktop.
CMY multiply compose
convert -size 200x200 xc:white -fill "#0ff" -draw "rectangle 50,30 150,130" c.png
convert -size 200x200 xc:white -fill "#f0f" -draw "rectangle 20,70 120,170" m.png
convert -size 200x200 xc:white -fill "#ff0" -draw "rectangle 80,70 180,170" y.png
composite c.png -compose multiply m.png cm.png
composite cm.png -compose multiply y.png cmy.png
@yoya
Copy link
Author

yoya commented Feb 2, 2017

I want "darken" operator in ImageMagick compose function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment