| <?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"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ========================================================================= --> |
| <!-- Test description here --> |
| <!-- --> |
| <!-- @author tkormann@apache.org --> |
| <!-- @version $Id $ --> |
| <!-- ========================================================================= --> |
| <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| |
| <svg xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink" |
| id="body" width="450" height="500" viewBox="0 0 450 500"> |
| |
| <title>feComposite Test</title> |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <g id="testContent"> |
| |
| <text x="225" y="40" class="title"> |
| feComposite Test |
| </text> |
| |
| <defs> |
| |
| <circle id="Circle1" cx="40" cy="60" r="30" style="fill:orange" /> |
| |
| <circle id="Circle2" cx="80" cy="60" r="30" style="fill:blue" /> |
| |
| <filter id="feImage1" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1"/> |
| </filter> |
| |
| <filter id="feImage2" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle2"/> |
| </filter> |
| |
| <filter id="feComposite1_2" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="over" /> |
| </filter> |
| |
| |
| <filter id="feComposite1_3" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="in" /> |
| </filter> |
| |
| <filter id="feComposite2_1" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="out" /> |
| </filter> |
| |
| <filter id="feComposite2_2" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="atop" /> |
| </filter> |
| |
| <filter id="feComposite2_3" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="xor" /> |
| </filter> |
| |
| <filter id="feComposite3_1" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="arithmetic" |
| k2="0.5" k3="0.5" /> |
| </filter> |
| |
| <filter id="feComposite3_2" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="arithmetic" |
| k2="0.75" k3="0.25" /> |
| </filter> |
| |
| <filter id="feComposite3_3" x="0" y="0" width="1" height="1"> |
| <feImage xlink:href="#Circle1" result="c1" /> |
| <feImage xlink:href="#Circle2" result="c2" /> |
| <feComposite in="c1" in2="c2" operator="arithmetic" |
| k1="1" k2="0.5" k3="0.5" k4="0.2" /> |
| </filter> |
| |
| </defs> |
| |
| <g transform="translate(0 40)" class="legend"> |
| |
| <!-- ============================================== --> |
| <!-- Composite_1_* --> |
| <!-- ============================================== --> |
| <g transform="translate(0 20)" class="row1" > |
| <g transform="translate(20 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feImage1)"/> |
| |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:PaleVioletRed; filter:url(#feImage2); "/> |
| |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle"> |
| 1.1 Check FeImage |
| </text> |
| </g> |
| </g> |
| |
| <g transform="translate(160 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite1_2)" /> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle"> |
| 1.2 Orange over blue |
| </text> |
| </g> |
| </g> |
| |
| |
| <g transform="translate(300 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite1_3)" /> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle"> |
| 1.3 Orange in blue |
| </text> |
| </g> |
| </g> |
| </g> |
| |
| <!-- ============================================== --> |
| <!-- Composite_2_* --> |
| <!-- ============================================== --> |
| <g transform="translate(0 160)" class="row2" > |
| <g transform="translate(20 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite2_1)"/> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle"> |
| 2.1 Orange out blue |
| </text> |
| </g> |
| </g> |
| |
| <g transform="translate(160 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite2_2)" /> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle"> |
| 2.2 Orange atop blue |
| </text> |
| </g> |
| </g> |
| |
| |
| <g transform="translate(300 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite2_3)" /> |
| <g transform="translate(60, 130)"> |
| <text x="0" y="0" style="text-anchor:middle"> |
| 2.3 Orange xor blue |
| </text> |
| </g> |
| </g> |
| </g> |
| |
| <!-- ============================================== --> |
| <!-- Composite_3_* --> |
| <!-- ============================================== --> |
| <g transform="translate(0 300)" class="row3" > |
| <g transform="translate(20 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite3_1)"/> |
| <text x="60" y="130" style="text-anchor:middle"> |
| 3.1 Orange arithmetic blue |
| </text> |
| <text x="60" y="140" style="text-anchor:middle"> |
| k1=0 k2=0.5 k3=0.5 k4=0 |
| </text> |
| </g> |
| |
| <g transform="translate(160 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite3_2)" /> |
| <text x="60" y="130" style="text-anchor:middle"> |
| 3.2 Orange arithmetic blue |
| </text> |
| <text x="60" y="140" style="text-anchor:middle"> |
| k1=0 k2=0.75 k3=0.25 k4=0 |
| </text> |
| </g> |
| |
| |
| <g transform="translate(300 0)"> |
| <rect x="0" y="0" width="120" height="120" style="fill:Beige"/> |
| <rect x="0" y="0" width="120" height="120" |
| style="fill:FireBrick; filter:url(#feComposite3_3)" /> |
| <text x="60" y="130" style="text-anchor:middle"> |
| 3.3 Orange arithmetic blue |
| </text> |
| <text x="60" y="140" style="text-anchor:middle"> |
| k1=1 k2=0.5 k3=0.5 k4=0.2 |
| </text> |
| </g> |
| </g> |
| |
| </g> |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |