| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
<!-- ========================================================================= --> |
| 24 |
<!-- Test description here --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
|
| 30 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500"> |
| 31 |
<title>Chessboard</title> |
| 32 |
<!-- ============================================================= --> |
| 33 |
<!-- Test content --> |
| 34 |
<!-- ============================================================= --> |
| 35 |
<g id="testContent"> |
| 36 |
<defs> |
| 37 |
|
| 38 |
<filter id="whiteCellFilter" filterUnits="objectBoundingBox" |
| 39 |
x="0%" y="0%" width="1" height="1"> |
| 40 |
<feTurbulence type="turbulence" baseFrequency="0.03" numOctaves="3"/> |
| 41 |
<feColorMatrix type="luminanceToAlpha"/> |
| 42 |
<feComponentTransfer> |
| 43 |
<feFuncA type="linear" slope=".5" intercept="0" /> |
| 44 |
</feComponentTransfer> |
| 45 |
<feComponentTransfer> |
| 46 |
<feFuncA type="gamma" amplitude="1" exponent="1.5" offset="0" /> |
| 47 |
</feComponentTransfer> |
| 48 |
</filter> |
| 49 |
|
| 50 |
<filter id="blackCellFilter" filterUnits="objectBoundingBox" |
| 51 |
x="0%" y="0%" width="1" height="1"> |
| 52 |
<feTurbulence type="turbulence" baseFrequency="0.03" numOctaves="3"/> |
| 53 |
<feColorMatrix type="luminanceToAlpha" /> |
| 54 |
<feComponentTransfer> |
| 55 |
<feFuncA type="linear" slope="1.5" intercept="0" /> |
| 56 |
</feComponentTransfer> |
| 57 |
<feColorMatrix type="matrix" values="0 0 0 -1 1 0 0 0 -1 1 0 0 0 -1 1 0 0 0 0 1" /> |
| 58 |
</filter> |
| 59 |
|
| 60 |
<pattern id="chessBoardPattern" patternUnits="userSpaceOnUse" x="25" y="25" width="100" height="100"> |
| 61 |
<rect id="blackCellTop" width="50" height="50" fill="black" filter="url(#blackCellFilter)" /> |
| 62 |
<rect id="whiteCellTop" transform="translate(30, 0)" x="20" y="0" width="50" height="50" fill="white" filter="url(#whiteCellFilter)"/> |
| 63 |
<rect id="whiteCellBottom" transform="translate(0, 50)" width="50" height="50" fill="black" filter="url(#whiteCellFilter)" /> |
| 64 |
<rect id="blackCellBottom" transform="translate(50, 50)" width="50" height="50" fill="white" filter="url(#blackCellFilter)" /> |
| 65 |
</pattern> |
| 66 |
|
| 67 |
<radialGradient id="light" gradientUnits="userSpaceOnUse" |
| 68 |
cx="200" cy="250" fx="20" fy="20" r="400"> |
| 69 |
<stop offset="30%" style="stop-color:black; stop-opacity:0" /> |
| 70 |
<stop offset="100%" style="stop-color:black; stop-opacity:.5" /> |
| 71 |
</radialGradient> |
| 72 |
|
| 73 |
</defs> |
| 74 |
|
| 75 |
|
| 76 |
<rect id="chessboard" x="25" y="25" width="400" height="400" fill="url(#chessBoardPattern)"/> |
| 77 |
<rect id="lightSquare" x="25" y="25" width="400" height="400" style="fill:url(#light);"/> |
| 78 |
|
| 79 |
<defs> |
| 80 |
<radialGradient id="psion" gradientUnits="objectBoundingBox" fx="20%" fy="24%" r="100%"> |
| 81 |
<stop offset="0%" style="stop-color:white;" /> |
| 82 |
<stop offset="50%" style="stop-color:black;" /> |
| 83 |
</radialGradient> |
| 84 |
<radialGradient id="psion2" gradientUnits="objectBoundingBox" fx="20%" fy="24%" r="60%"> |
| 85 |
<stop offset="0%" style="stop-color:white;" /> |
| 86 |
<stop offset="100%" style="stop-color:black;" /> |
| 87 |
</radialGradient> |
| 88 |
</defs> |
| 89 |
|
| 90 |
<g id="shadow" style="fill:black; opacity:.6;" transform="translate(172 168) rotate(120)"> |
| 91 |
<circle cx="19" cy="20" r="10"/> |
| 92 |
<path d="M13 28L24 28C27 28 24 42 32 48L8 48C13 42 13 34 13 28Z"/> |
| 93 |
<rect x="2" y="45" width="36" height="18"/> |
| 94 |
</g> |
| 95 |
|
| 96 |
<circle cx="100" cy="150" r="18" style="fill:url(#psion2); stroke:black; stroke-width:2"/> |
| 97 |
<circle cx="100" cy="150" r="10" style="fill:url(#psion);"/> |
| 98 |
</g> |
| 99 |
|
| 100 |
<!-- ============================================================= --> |
| 101 |
<!-- Batik sample mark --> |
| 102 |
<!-- ============================================================= --> |
| 103 |
<use xlink:href="batikLogo.svg#Batik_Tag_Box" /> |
| 104 |
|
| 105 |
</svg> |