Skip to content

Instantly share code, notes, and snippets.

@yoya
Last active February 2, 2017 08:42
Show Gist options
  • Save yoya/95ee20785d9d52b4608fb48f0a371058 to your computer and use it in GitHub Desktop.
Save yoya/95ee20785d9d52b4608fb48f0a371058 to your computer and use it in GitHub Desktop.
RGB plus compose
convert -size 200x200 xc:black -fill "#f00" -draw "circle 100,75 60,35" r.png
convert -size 200x200 xc:black -fill "#0f0" -draw "circle 75,125 35,85" g.png
convert -size 200x200 xc:black -fill "#00f" -draw "circle 125,125 85,85" b.png
composite r.png -compose plus g.png rg.png
composite rg.png -compose plus b.png rgb.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment