Sha256: 3262341341d2a242d4a55eaeb9a40c89e45eb2d2065e3ec340d0b28984d0a0ea

Contents?: true

Size: 1.9 KB

Versions: 44

Compression:

Stored size: 1.9 KB

Contents

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" 
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="12cm" height="3.5cm" viewBox="0 0 1200 350"
     xmlns="http://www.w3.org/2000/svg">
  <desc>Example opacity01 - opacity property</desc>
  <rect x="1" y="1" width="1198" height="348"
        fill="none" stroke="blue" />
  <!-- Background blue rectangle -->
  <rect x="100" y="100" width="1000" height="150" fill="#0000ff"  />
  <!-- Red circles going from opaque to nearly transparent -->
  <circle cx="200" cy="100" r="50" fill="red" opacity="1"  />
  <circle cx="400" cy="100" r="50" fill="red" opacity=".8"  />
  <circle cx="600" cy="100" r="50" fill="red" opacity=".6"  />
  <circle cx="800" cy="100" r="50" fill="red" opacity=".4"  />
  <circle cx="1000" cy="100" r="50" fill="red" opacity=".2"  />
  <!-- Opaque group, opaque circles -->
  <g opacity="1" >
    <circle cx="182.5" cy="250" r="50" fill="red" opacity="1"  />
    <circle cx="217.5" cy="250" r="50" fill="green" opacity="1"  />
  </g>
  <!-- Group opacity: .5, opacity circles -->
  <g opacity=".5" >
    <circle cx="382.5" cy="250" r="50" fill="red" opacity="1"  />
    <circle cx="417.5" cy="250" r="50" fill="green" opacity="1"  />
  </g>
  <!-- Opaque group, semi-transparent green over red -->
  <g opacity="1" >
    <circle cx="582.5" cy="250" r="50" fill="red" opacity=".5"  />
    <circle cx="617.5" cy="250" r="50" fill="green" opacity=".5"  />
  </g>
  <!-- Opaque group, semi-transparent red over green -->
  <g opacity="1" >
    <circle cx="817.5" cy="250" r="50" fill="green" opacity=".5"  />
    <circle cx="782.5" cy="250" r="50" fill="red" opacity=".5"  />
  </g>
  <!-- Group opacity .5, semi-transparent green over red -->
  <g opacity=".5" >
    <circle cx="982.5" cy="250" r="50" fill="red" opacity=".5"  />
    <circle cx="1017.5" cy="250" r="50" fill="green" opacity=".5"  />
  </g>
</svg>

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
prawn-svg-0.36.0 spec/sample_svg/opacity01.svg
prawn-svg-0.35.1 spec/sample_svg/opacity01.svg
prawn-svg-0.35.0 spec/sample_svg/opacity01.svg
prawn-svg-0.34.2 spec/sample_svg/opacity01.svg
prawn-svg-0.34.1 spec/sample_svg/opacity01.svg
prawn-svg-0.34.0 spec/sample_svg/opacity01.svg
prawn-svg-0.33.0 spec/sample_svg/opacity01.svg
prawn-svg-0.32.0 spec/sample_svg/opacity01.svg
prawn-svg-0.31.0 spec/sample_svg/opacity01.svg
prawn-svg-0.30.0 spec/sample_svg/opacity01.svg
prawn-svg-0.29.1 spec/sample_svg/opacity01.svg
prawn-svg-0.29.0 spec/sample_svg/opacity01.svg
prawn-svg-0.28.0 spec/sample_svg/opacity01.svg
prawn-svg-0.27.1 spec/sample_svg/opacity01.svg
prawn-svg-0.27.0 spec/sample_svg/opacity01.svg
prawn-svg-0.26.0 spec/sample_svg/opacity01.svg
prawn-svg-0.25.2 spec/sample_svg/opacity01.svg
prawn-svg-0.25.1 spec/sample_svg/opacity01.svg
prawn-svg-0.25.0 spec/sample_svg/opacity01.svg
prawn-svg-0.24.0 spec/sample_svg/opacity01.svg