OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <template id="target-template"> |
| 5 <svg width="0" height="0"> |
| 6 <feDiffuseLighting class="target" /> |
| 7 </svg> |
| 8 </template> |
| 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s
cript> |
| 10 <script> |
| 11 'use strict'; |
| 12 assertAttributeInterpolation({ |
| 13 property: 'diffuseConstant', |
| 14 underlying: '3', |
| 15 from: '1', |
| 16 fromComposite: 'add', |
| 17 to: '6', |
| 18 toComposite: 'add', |
| 19 }, [ |
| 20 {at: -0.4, is: 2}, |
| 21 {at: 0, is: 4}, |
| 22 {at: 0.2, is: 5}, |
| 23 {at: 0.6, is: 7}, |
| 24 {at: 1, is: 9}, |
| 25 {at: 1.4, is: 11}, |
| 26 ]); |
| 27 |
| 28 assertAttributeInterpolation({ |
| 29 property: 'diffuseConstant', |
| 30 underlying: '5', |
| 31 from: '1', |
| 32 fromComposite: 'replace', |
| 33 to: '6', |
| 34 toComposite: 'add', |
| 35 }, [ |
| 36 {at: -0.4, is: -3}, |
| 37 {at: 0, is: 1}, |
| 38 {at: 0.2, is: 3}, |
| 39 {at: 0.6, is: 7}, |
| 40 {at: 1, is: 11}, |
| 41 {at: 1.4, is: 15}, |
| 42 ]); |
| 43 |
| 44 assertAttributeInterpolation({ |
| 45 property: 'diffuseConstant', |
| 46 underlying: '5', |
| 47 from: '', |
| 48 fromComposite: 'add', |
| 49 to: '10', |
| 50 toComposite: 'replace', |
| 51 }, [ |
| 52 {at: -0.4, is: 3}, |
| 53 {at: 0, is: 5}, |
| 54 {at: 0.2, is: 6}, |
| 55 {at: 0.6, is: 8}, |
| 56 {at: 1, is: 10}, |
| 57 {at: 1.4, is: 12}, |
| 58 ]); |
| 59 </script> |
| 60 </body> |
| 61 </html> |
OLD | NEW |