[Clipart] Gradients: sugestion

Bryce Harrington bryce at bryceharrington.com
Mon Jul 5 13:21:16 PDT 2004


On Mon, 5 Jul 2004, [ISO-8859-1] Alberto Simões wrote:
> Forgot the attach. Typical
> 
> On Mon, 5 Jul 2004 21:08:49 +0100, Alberto Simões <hashashin at gmail.com> wrote:
> > > > >   2. add another linearGradient with stops (do not know well what's this)
> > > >
> > > OK, Understood what stop are. But then, I need to add stops, or the rectangle
> > > becames a solid color. Right?
> > 
> > No, the rectangles already exist:
> > 
> >       <stop offset="0%" style="stop-color:green;stop-opacity:1"/>
> >       <stop offset="100%" style="stop-color:#BDCF0A;stop-opacity:1"/>
> > 
> > Now, why I have only one color in the rectangle? (see file in attach)

Here I've edited it in Inkscape to make it correctly show the gradient
(attached).

Bryce
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg
   height="500"
   width="500"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:ns="http://web.resource.org/cc/"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   id="svg1"
   sodipodi:version="0.32"
   inkscape:version="0.39cvs"
   sodipodi:docname="foo.svg"
   sodipodi:docbase="/home/bryce">
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.43415836"
     inkscape:cx="305.25953"
     inkscape:cy="417.84947"
     inkscape:window-width="640"
     inkscape:window-height="496"
     inkscape:window-x="30"
     inkscape:window-y="0" />
  <defs
     id="defs2">
    <linearGradient
       id="name"
       x1="0%"
       y1="0%"
       x2="100%"
       y2="0%"
       spreadMethod="pad"
       gradientUnits="objectBoundingBox">
      <stop
         offset="0%"
         style="stop-color:green;stop-opacity:1"
         id="stop4" />
      <stop
         offset="100%"
         style="stop-color:#BDCF0A;stop-opacity:1"
         id="stop5" />
    </linearGradient>
    <linearGradient
       xlink:href="#name"
       id="linearGradient1523"
       x1="0.015503876"
       y1="0.51562500"
       x2="0.97674417"
       y2="0.51562500" />
  </defs>
  <metadata
     id="metadata6">
    <rdf:RDF
       id="RDF7">
      <ns:Work
         rdf:about=""
         id="Work8">
        <dc:title
           id="title9">SVG Gradient Collection by Alan Horkan, 2004.</dc:title>
        <dc:description
           id="description11" />
        <dc:subject
           id="subject12" />
        <dc:publisher
           id="publisher13">
          <ns:Agent
             rdf:about=""
             id="Agent14">
            <dc:title
               id="title15" />
          </ns:Agent>
        </dc:publisher>
        <dc:creator
           id="creator16">
          <ns:Agent
             rdf:about=""
             id="Agent17">
            <dc:title
               id="title18">Alan Horkan</dc:title>
          </ns:Agent>
        </dc:creator>
        <dc:rights
           id="rights20">
          <ns:Agent
             rdf:about=""
             id="Agent21">
            <dc:title
               id="title22">Alan Horkan</dc:title>
          </ns:Agent>
        </dc:rights>
        <dc:date
           id="date24" />
        <dc:format
           id="format25">image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage"
           id="type27" />
        <ns:license
           rdf:resource="http://web.resource.org/cc/PublicDomain"
           id="license28">
          <dc:date
             id="date29" />
        </ns:license>
        <dc:language
           id="language30">en</dc:language>
      </ns:Work>
      <ns:License
         rdf:about="http://web.resource.org/cc/PublicDomain"
         id="License32">
        <ns:permits
           rdf:resource="http://web.resource.org/cc/Reproduction"
           id="permits33" />
        <ns:permits
           rdf:resource="http://web.resource.org/cc/Distribution"
           id="permits34" />
        <ns:permits
           rdf:resource="http://web.resource.org/cc/DerivativeWorks"
           id="permits35" />
      </ns:License>
    </rdf:RDF>
  </metadata>
  <rect
     style="font-size:12;fill:url(#linearGradient1523);fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1;"
     id="rect603"
     width="277.836395"
     height="277.836395"
     x="105.088387"
     y="112.756508" />
</svg>


More information about the clipart mailing list