next plan previous Logo

Le rendu : spécifications ( exemples )

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg SYSTEM "svg-19991203.dtd" >

<svg width="500" height="500" >
  <g style="stroke:black; stroke-width:6; text-rendering:optimizeLegibility; shape-rendering:default" >

    <text x="5" y="20" style="font-size:22">SVG Demo: Stroke and fill opacity.</text>

    <rect x="10"  y="100" width="400" height="100" style="fill:yellow"  />
    <rect x="10"  y="225" width="400" height="100" style="fill:green"  />

    <g style="stroke:blue;fill:cyan">
      <rect x="25"  y="50"  width="50"  height="320" style="stroke-opacity:0.2;fill-opacity:0.2"  />
      <rect x="100" y="50"  width="50"  height="320" style="stroke-opacity:0.4;fill-opacity:0.4"  />
      <rect x="175" y="50"  width="50"  height="320" style="stroke-opacity:0.6;fill-opacity:0.6"  />
      <rect x="250" y="50"  width="50"  height="320" style="stroke-opacity:0.8;fill-opacity:0.8"  />
      <rect x="325" y="50"  width="50"  height="320"   />
    </g>

    <text x="40"  y="385">0.2</text>
    <text x="115" y="385">0.4</text>
    <text x="190" y="385">0.6</text>
    <text x="265" y="385">0.8</text>
    <text x="340" y="385">1.0</text>

  </g>
</svg>
 


Didier Courtaud
Le langage SVG
25 Janvier 2000

50 / 74

Logo orateur