How to draw with tranparent color / how draw erasures?
Posted: 2018-09-20T01:15:07-07:00
I want create a blue doughnut on transparent background. So far I have a circle on trans[arenty background with a white middle:
How can I make the middle transparent instead of white? I tried -alpha transparent, but this gives me a completely white result:
I'm looking for some way to "draw" with transparency as the color.
Thanks for all pointers in advance!
Code: Select all
convert -size 1001x1001 xc:white -alpha transparent transparent.png
convert transparent.png -fill "#2244aa" -stroke "#2244aa" -draw "circle 500,500 1,500" circle.png
convert circle.png -fill "white" -stroke "white" -draw "circle 500,500 400,500" circle.png
convert circle.png -resize 19x19 circle.png
Code: Select all
convert circle.png -draw "circle 500,500 400,500" -alpha transparent circle.png
Thanks for all pointers in advance!