Re: filling squares on chess board
Posted: 2012-03-08T23:15:21-07:00
here is my script
Also I wonder when I choose output file as something.svg & open it in in web browser .
It shows me the text commands not the image intended .
Code: Select all
#we will draw 50 pixel squares on a white paper
convert -size 800x600 xc:white board.jpg
#drawing board
convert.exe board.jpg -fill white -stroke black -draw " path 'M 200,100 l 400,0 l 0,400 l -400,0 l 0,-400' " square.jpg
# draw vertical lines over previously generated
magick-convert.exe square.jpg -fill white -stroke black -draw " path 'M 250,100 l 0,400 m 50,0 l 0,-400 m 50,0 l 0,400 m 50,0 l 0,-400 m 50,0 l 0,400 m 50,0 l 0,-400 m 50,0 l 0,400 ' " vertical.jpg
#draw horizontal lines over previously generated
convert.exe vertical.jpg -fill white -stroke black -draw " path 'M 200,150 l 400,0 m 0,50 l -400,0 m 0,50 l 400,0 m 0,50 l -400,0 m 0,50 l 400,0 m 0,50 l -400,0 m 0,50 l 400,0 ' " vert-horiz.jpg
It shows me the text commands not the image intended .