One of the important roles of the -draw
option is filling an area with a specified color. There are many parameters for doing this. In fact all of them use point
as the basic parameter. In the next workshop we will study them in detail.
Make a 400x100
.png
file and draw the following items on it:You know how to do this from the previous workshop, don’t you? There is just one new tip. For defining and using a stoke around the text add the following code to your convert command call:
convert <required codes for page setting,color definitions & rectangle drawings> ... -stroke white strokewidth:2 -font Tahoma -pointsize 48 -fill black draw "text 3,70 'COLOR BOUNDARY'" color_test.png
The
-stroke
parameter sets the color of the stroke and-strokewidth
defines its thickness. Use the-font
parameter to specify a font for our text.Let's start our experiments by drawing a single white...