tkormann    01/10/19 09:52:08

  Added:       samples  batikCandy.svg
  Log:
  add a new sample - just for fun (another Batik logo).
  
  Revision  Changes    Path
  1.1                  xml-batik/samples/batikCandy.svg
  
  Index: batikCandy.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
  
  <!-- ========================================================================= -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.        -->
  <!--                                                                           -->
  <!-- This software is published under the terms of the Apache Software License -->
  <!-- version 1.1, a copy of which has been included with this distribution in  -->
  <!-- the LICENSE file.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Batik Logo - looks like Techno-Candy                                      -->
  <!--                                                                           -->
  <!-- @author [EMAIL PROTECTED]                                                  -->
  <!-- @version $Id: batikCandy.svg,v 1.1 2001/10/19 16:52:08 tkormann Exp $ -->
  <!-- ========================================================================= -->
  
  <svg width="450" height="500" viewBox="0 0 450 500">
  
  <!-- ############################# -->
  <defs>
        <radialGradient id="grad" r=".5">
                <stop stop-color="white" offset="0" />
                <stop stop-color="gold" offset="1" />
        </radialGradient>
  </defs>
  
  
        <rect x="0" y="0" width="100%" height="100%" style="fill:gold" />
        <ellipse cx="0" cy="0" rx="40%" ry="20%" style="fill:url(#grad)" />
  
  <!-- ############################# -->
  
  <defs>
            <filter id="dropShadow"  filterUnits="objectBoundingBox" width="1.4" 
height="1.4">
                <feGaussianBlur in="SourceAlpha" stdDeviation="4" /> 
                <feOffset dx="4" dy="4" />
                <feComponentTransfer result="shadow">
                   <feFuncA type="linear" slope=".5" intercept="0" />
                </feComponentTransfer>
            </filter>
  
         <filter id="emboss" >
                <feGaussianBlur in="SourceAlpha" stdDeviation="2" result="blur"/>
                <feSpecularLighting in="blur" surfaceScale="-3" 
style="lighting-color:white"
                                    specularConstant="1" specularExponent="16" 
                                    result="spec" kernelUnitLength="1" >
                        <feDistantLight azimuth="45" elevation="45" />
                </feSpecularLighting>
                <feComposite in="spec" in2="SourceGraphic" operator="in" 
result="specOut"/>
         </filter>
  </defs>
  
  <g style="font-size:128; font-family:Impact; text-anchor:middle;">
        <text x="50%" y="35%" style="filter:url(#dropShadow)">Batik</text>
        <text x="50%" y="35%" style="fill:rgb(172,20,20)">Batik</text>
        <text x="50%" y="35%" style="filter:url(#emboss)">Batik</text>
  </g>
  
  <!-- ############################# -->
  
  <defs>
        <g id="eye" style="stroke-width:8">
                <line x1="0" y1="-10" x2="0" y2="10"/>
                <line x1="-10" y1="0" x2="10" y2="0"/>
        </g>
  
        <g id="face">
                <circle cx="225" cy="320" r="90" />
                <use xlink:href="#eye" x="195" y="305" />
                <use xlink:href="#eye" x="255" y="305" />
        </g>
  
            <filter id="dropShadow2"  filterUnits="objectBoundingBox" x="-1.2" 
y="-1.2" width="6" height="6">
                <feGaussianBlur in="SourceAlpha" stdDeviation="4" /> 
                <feOffset dx="4" dy="4" />
                <feComponentTransfer result="shadow">
                   <feFuncA type="linear" slope=".5" intercept="0" />
                </feComponentTransfer>
                <feComposite in2="shadow" in="SourceGraphic"/>
            </filter>
  
        <path id="eyeUp" d="M240 277 A20 25 0 0 1 270 277" />
  
  </defs>
  
  
  <g style="stroke:black; fill:none; stroke-width:12;">
        <use xlink:href="#face" style="filter:url(#dropShadow)" />
        <use xlink:href="#face" />
        <use xlink:href="#face" style="filter:url(#emboss)" />
  </g>
  
  <g style="stroke:black; fill:none; stroke-width:8; stroke-linecap:round; ">
        <use xlink:href="#eyeUp" style="filter:url(#dropShadow2)" />
        <use xlink:href="#eyeUp" style="stroke:rgb(172,20,20)" />
        <use xlink:href="#eyeUp" style="filter:url(#emboss)" />
  </g>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use xlink:href="batikLogo.svg#Batik_Tag_Box" />
  
  </svg>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to