長方形(グラデーション)

ファイル名 : grad.pxdx

<?xml version="1.0" encoding="utf-8"?>
<pxd paper-type="a4">
<page>
   <svg width="8cm" height="4cm" x="5cm" y="5cm" viewBox="0 0 800 400"
          xmlns="http://www.w3.org/2000/svg" version="1.1">
      <g>
         <defs>
            <linearGradient id="MyGradient">
               <stop offset="5%" stop-color="#F60" />
               <stop offset="95%" stop-color="#FF6" />
            </linearGradient>
         </defs>
         <!-- 描画領域の枠を青色にする -->
         <rect fill="none" stroke="blue"
                  x="1" y="1" width="798" height="398"/>
         <rect fill="url(#MyGradient)" stroke="black" stroke-width="5"
                  x="100" y="100" width="600" height="200"/>
      </g>
   </svg>
</page>
</pxd>