2016-09-28 31 views
0

如何创建一个三角形,看起来像这样用难懂的:难懂的创建三角

enter image description here

而这一次

enter image description here

我想下面的命令,但事实并非如此

convert -size 100x100 xc:black -fill blue -stroke black -draw "path 'M 25,60 L 25,10 L 70,10 L 20,55 Z' " output.png 

enter image description here

回答

1

像这样:

convert -size 100x100 xc:black -fill skyblue -stroke black -draw "path 'M 10,50 L 90,10 L 90,90 Z' " output.png 

enter image description here

创建另一个与-flop

convert output.png -flop output2.png 

enter image description here

+0

您也可以使用多段线。出于兴趣,我还没有看到信件与以前的点。 – Bonzo

+1

@Bonzo它只是'SVG'方法... https://www.w3.org/TR/SVG/paths.html#PathDataGeneralInformation –

+0

再次感谢:) – utdev