title: Imagemagick create rectangles
body: <p>I am trying to create rectangles like this:<a href="https://i.stack.imgur.com/yiD4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yiD4u.png" alt="enter image description here"></a></p>
  
  <p>I tried following command: </p>
  
  <pre><code>convert -size 720x567 xc:black -stroke white -strokewidth 5 -draw "rectangle 100,200 300,350 " -draw "rectangle 65,55 45,95 " -draw "rectangle 80,55 90,95 " -draw "rectangle 95,55 105,95 " -draw "rectangle 110,55 120,95 " -draw "rectangle 125,55 135,50 " test.png
  </code></pre>
  
  <p>and it created me this:</p>
  
  <p><a href="https://i.stack.imgur.com/ZllE1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZllE1.png" alt="enter image description here"></a></p>
  
  <p>Any tips of how to achieve this</p>
  
  <p>I tried Mark Setchell suggestion:</p>
  
  <pre><code>convert -size 720x567 xc:black -stroke blue -strokewidth 5 \
     -draw "rectangle 50,300 230,450"                        \
     -draw "rectangle 250,300 430,450"                       \
     -draw "rectangle 450,300 630,450" test.png
  </code></pre>
  
  <p>But I get this :</p>
  
  <p><a href="https://i.stack.imgur.com/azXWA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/azXWA.png" alt="enter image description here"></a></p>