diff options
Diffstat (limited to 'test/resources/fop/svg/paints.svg')
-rw-r--r-- | test/resources/fop/svg/paints.svg | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/test/resources/fop/svg/paints.svg b/test/resources/fop/svg/paints.svg new file mode 100644 index 000000000..3365fcd81 --- /dev/null +++ b/test/resources/fop/svg/paints.svg @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" + "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd"> +<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + +<g> + +<text x="20" y="20" style="font-size:18">Paints - Patterns & Gradients</text> + +<text x="10" y="35" style="font-size:12">Gradient</text> +<g> +<defs> + <linearGradient id="grad1" x1="0" y1="0" x2="1" y2="0"> + <stop offset="0" style="stop-color:crimson" /> + <stop offset="1" style="stop-color:gold" /> + </linearGradient> + <linearGradient id="grad2" x1="0" y1="0" x2="0" y2="1"> + <stop offset="0" style="stop-color:crimson" /> + <stop offset="1" style="stop-color:gold" /> + </linearGradient> + <linearGradient id="grad3" x1="0" y1="0" x2="1" y2="1"> + <stop offset="0" style="stop-color:crimson" /> + <stop offset="1" style="stop-color:gold" /> + </linearGradient> + <radialGradient id="rad" + fx="20%" fy="0%" rx="10%" ry="30%" r="40%"> + <stop offset="0" stop-color="gold" /> + <stop offset="1" stop-color="green" stop-opacity="0.4"/> + </radialGradient> +</defs> + <rect x="15" y="40" width="100" height="75" style="fill:url(#grad1)" /> + <rect x="15" y="117.5" width="100" height="75" style="fill:url(#grad2)" /> + <rect x="15" y="195" width="100" height="75" style="fill:url(#grad3)" /> + <rect x="15" y="275" width="100" height="75" style="fill:url(#rad)" /> + +</g> + +<text x="120" y="35" style="font-size:12">Pattern</text> +<g> +<defs> + <pattern id="pat1" x="0" y="0" width=".75" height="50%"> + <circle cx="10" cy="10" r="10" style="fill:red" /> + <rect x="10" y="10" width="15" height="15" style="fill:green"/> + </pattern> + <pattern id="pat2" x="0" y="0" width=".2" height="50%"> + <circle cx="10" cy="10" r="10" style="fill:red" /> + <rect x="10" y="10" width="15" height="15" style="fill:green"/> + </pattern> + <pattern id="pat3" x="0" y="0" width=".3" height="50%" patternTransform="matrix(1, 0.3, -0.5, 1, 5, 10)"> + <circle cx="10" cy="10" r="10" style="fill:red" /> + <rect x="10" y="10" width="15" height="15" style="fill:green"/> + </pattern> + <pattern id="see" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"> + <circle cx="10" cy="10" r="10" style="fill:red" /> + <rect x="10" y="10" width="15" height="15" style="fill:green;fill-opacity:0.5"/> + </pattern> +</defs> + <rect x="125" y="40" width="100" height="75" style="fill:url(#pat1)" /> + <rect x="125" y="117.5" width="100" height="75" style="fill:url(#pat2)" /> + <rect x="125" y="195" width="100" height="75" style="fill:url(#pat3)" /> + <rect x="125" y="275" width="100" height="75" style="fill:url(#see)" /> + +</g> + +</g> + +</svg> + |