index.html 301 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>

  <meta content="text/html; charset=UTF-8" http-equiv="content-type"></meta>
  <title>SVG Filters 1.2, Part 2: Language</title>
  
  
<link rel="stylesheet" type="text/css" href="style/svg-style.css"/>
  <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-WD"/>
</head>


<body>


<div class="head">
<p><a href="http://www.w3.org/"><img width="72" alt="W3C" src="http://www.w3.org/Icons/w3c_home" height="48"></img></a></p>

<h1>SVG Filters 1.2, Part 2: Language</h1>


<h2 id="pagesubtitle"> W3C Working Draft  01 May 2007</h2>

<dl>
  <dt>This version:</dt>
  <dd><a href="http://www.w3.org/TR/2007/WD-SVGFilter12-20070501/">http://www.w3.org/TR/2007/WD-SVGFilter12-20070501/</a></dd>
  <dt>Latest version:</dt>
  <dd><a href="http://www.w3.org/TR/SVGFilter12">http://www.w3.org/TR/SVGFilter12</a></dd>
  <dt>Editors:</dt>
    <dd>Erik Dahlström, Opera Software ASA &lt;<a href="mailto:ed@opera.com">ed@opera.com</a>&gt;</dd>
  <dt>Authors:</dt>
    <dd>The authors of this specification are the participants of the W3C SVG Working Group.</dd>
</dl>

  <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 2007 <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>&reg;</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p>
</div>
<hr title="Separator from Header"></hr>

<h2 id="abstract"> Abstract</h2>


<p>
SVG is language for describing vector graphics, however it's typically rendered on raster displays. SVG filter effects is a way of processing the generated raster image before it's displayed.
</p>
<p>Although originally designed for use in SVG, filter effects are defined in XML and are accessed via a presentation property, and therefore could be used in other environments, such as HTML styled with CSS and XSL:FO.
</p>
<p>
This document defines the markup used by SVG filters.
</p>

<h2 id="status"> Status of This Document</h2>


  <p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/">W3C technical reports index</a>  at http://www.w3.org/TR/.</em></p>

<p>This document is the First Public Working Draft of this specification.
There is an accompanying <a href="/TR/2007/WD-SVGFilterPrimer12-20070501">SVG Filters 1.2, Part
1: Primer</a> that lists the ways SVG filters may be used. </p>

  <p>
    This document has been produced by the  <a href="http://www.w3.org/Graphics/SVG/">W3C SVG Working Group</a> as
    part of the W3C <a href="http://www.w3.org/Graphics/Activity">Graphics Activity</a> within the
    <a href="http://www.w3.org/Interaction/">Interaction Domain</a>. The Working Group expects to advance this Working Draft to Recommendation Status.
  </p>

<p>We explicitly invite comments on this specification. Please send them to <a href="mailto:www-svg@w3.org">www-svg@w3.org</a>: the public email list for
issues related to vector graphics on the Web (<a href="http://lists.w3.org/Archives/Public/www-svg/">archives</a>). Acceptance
of the archiving policy is requested automatically upon first post to the
list. To subscribe send an email to 
  <a href="mailto:www-svg-request@w3.org">www-svg-request@w3.org</a> with
the word subscribe in the subject line. </p>

  <p>This document was produced by a group operating under the
    <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
      February 2004 <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.
    <acronym title="World Wide Web Consortium">W3C</acronym> maintains a <a href="http://www.w3.org/2004/01/pp-impl/19480/status" rel="disclosure">public list of any
      patent disclosures</a> made in connection with the
    deliverables of the group; that page also includes
    instructions for disclosing a patent.
    An individual who has actual knowledge of a patent which the
    individual believes contains <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the
    information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the <acronym title="World Wide Web Consortium">W3C</acronym> Patent Policy</a>.</p>

  <p>
    Publication as a Working Draft does not imply endorsement by the <acronym title="World Wide Web Consortium">W3C</acronym> Membership.
    This is a draft document and may be updated, replaced or obsoleted by other
    documents at any time. It is inappropriate to cite this document as other than
    work in progress.
  </p>
<hr></hr>

<h2 id="howto"> How to read this document and give feedback</h2>


<p>This draft of SVG Filters is essentially the filter chapter from <a href="#ref-svg11">SVG 1.1</a>. One of the goals is that this specification
can be re-used more easily by other specifications that want to have filter
effects. Some things that have been changed are: error handling is more
similar to SVG Tiny 1.2, the addition of a <a href="#feDropShadowElement"><span class="element-name">'feDropShadow'</span></a> filter primitive and the
possibility to filter bitmap data with the DOM. </p>

<p>
Sections have been marked with green sidebars if it's new since SVG 1.1, and in blue if it's been changed since SVG 1.1.
</p>

<p>The main purpose of this document is to encourage public feedback. The
best way to give feedback is by sending an email to <a href="mailto:public-svg-filters@w3.org">public-svg-filters@w3.org</a>. Please
include some kind of keyword that identifies the area of the specification
the comment is referring to in the subject line of your message (e.g "Section
X.Y - the 'filter' property" or "Filtering primitive handling"). If you have
comments on multiple areas of this document, then it is probably best to
split those comments into multiple messages. </p>

<p>The public are welcome to comment on any aspect in this document, but
there are a few areas in which the SVG Working Group are explicitly
requesting feedback. These areas are noted in place within this document.
There is also a specific area related to the specification that is listed
here: </p>

<h2 id="toc">Table of Contents</h2>
<ul class="toc">
<li>1 <a href="#introduction">Introduction</a>
</li>
<li>2 <a href="#FilterElement">The 'filter'element</a>
</li>
<li>3 <a href="#FilterProperty">The 'filter'property</a>
</li>
<li>4 <a href="#FilterEffectsRegion">Filter effects region</a>
<ul class="toc">
<li>4.1 <a href="#filter-margins">Filter Region extensions</a>
</li>
</ul>
</li>
<li>5 <a href="#AccessBackgroundImage">Accessing the background image</a>
<ul class="toc">
<li>5.1 <a href="#AccessBackgroundImageSVG">Accessing the background image in SVG</a>
</li>
</ul>
</li>
<li>6 <a href="#FilterPrimitivesOverview">Filter primitives overview</a>
<ul class="toc">
<li>6.1 <a href="#FilterPrimitivesOverviewIntro">Overview</a>
</li>
<li>6.2 <a href="#CommonAttributes">Common attributes</a>
</li>
<li>6.3 <a href="#FilterPrimitiveSubRegion">Filter primitive subregion</a>
</li>
</ul>
</li>
<li>7 <a href="#LightSourceDefinitions">Light source elements and properties</a>
<ul class="toc">
<li>7.1 <a href="#LightSourceIntro">Introduction</a>
</li>
<li>7.2 <a href="#feDistantLightElement">Light source 'feDistantLight'</a>
</li>
<li>7.3 <a href="#fePointLightElement">Light source 'fePointLight'</a>
</li>
<li>7.4 <a href="#feSpotLightElement">Light source 'feSpotLight'</a>
</li>
<li>7.5 <a href="#LightingColorProperty">The 'lighting-color' property</a>
</li>
</ul>
</li>
<li>8 <a href="#feBlendElement">Filter primitive 'feBlend'</a>
</li>
<li>9 <a href="#feColorMatrixElement">Filter primitive 'feColorMatrix'</a>
</li>
<li>10 <a href="#feComponentTransferElement">Filter primitive 'feComponentTransfer'</a>
</li>
<li>11 <a href="#feCompositeElement">Filter primitive 'feComposite'</a>
</li>
<li>12 <a href="#feConvolveMatrixElement">Filter primitive 'feConvolveMatrix'</a>
</li>
<li>13 <a href="#feDiffuseLightingElement">Filter primitive 'feDiffuseLighting'</a>
</li>
<li>14 <a href="#feDisplacementMapElement">Filter primitive 'feDisplacementMap'</a>
</li>
<li>15 <a href="#feFloodElement">Filter primitive 'feFlood'</a>
</li>
<li>16 <a href="#feGaussianBlurElement">Filter primitive 'feGaussianBlur'</a>
</li>
<li>17 <a href="#feImageElement">Filter primitive 'feImage'</a>
</li>
<li>18 <a href="#feMergeElement">Filter primitive 'feMerge'</a>
</li>
<li>19 <a href="#feMorphologyElement">Filter primitive 'feMorphology'</a>
</li>
<li>20 <a href="#feOffsetElement">Filter primitive 'feOffset'</a>
</li>
<li>21 <a href="#feSpecularLightingElement">Filter primitive 'feSpecularLighting'</a>
</li>
<li>22 <a href="#feTileElement">Filter primitive 'feTile'</a>
</li>
<li>23 <a href="#feTurbulenceElement">Filter primitive 'feTurbulence'</a>
</li>
<li>24 <a href="#feDropShadowElement">Filter primitive 'feDropShadow'</a>
</li>
<li>25 <a href="#feDiffuseSpecularElement">Filter primitive 'feDiffuseSpecular'</a>
</li>
<li>26 <a href="#feCustomElement">Filter primitive 'feCustom'</a>
</li>
<li>27 <a href="#RelaxNG">RelaxNG Schema for SVG Filters 1.2</a>
</li>
<li>28 <a href="#DOMInterfaces">DOM interfaces</a>
<ul class="toc">
<li>28.1 <a href="#InterfaceImageData">Interface ImageData</a>
</li>
<li>28.2 <a href="#InterfaceSVGFilterElement">Interface SVGFilterElement</a>
</li>
<li>28.3 <a href="#InterfaceSVGFilterPrimitiveStandardAttributes">Interface SVGFilterPrimitiveStandardAttributes</a>
</li>
<li>28.4 <a href="#InterfaceSVGFEBlendElement">Interface SVGFEBlendElement</a>
</li>
<li>28.5 <a href="#InterfaceSVGFEColorMatrixElement">Interface SVGFEColorMatrixElement</a>
</li>
<li>28.6 <a href="#InterfaceSVGFEComponentTransferElement">Interface SVGFEComponentTransferElement</a>
</li>
<li>28.7 <a href="#InterfaceSVGComponentTransferFunctionElement">Interface SVGComponentTransferFunctionElement</a>
</li>
<li>28.8 <a href="#InterfaceSVGFEFuncRElement">Interface SVGFEFuncRElement</a>
</li>
<li>28.9 <a href="#InterfaceSVGFEFuncGElement">Interface SVGFEFuncGElement</a>
</li>
<li>28.10 <a href="#InterfaceSVGFEFuncBElement">Interface SVGFEFuncBElement</a>
</li>
<li>28.11 <a href="#InterfaceSVGFEFuncAElement">Interface SVGFEFuncAElement</a>
</li>
<li>28.12 <a href="#InterfaceSVGFECompositeElement">Interface SVGFECompositeElement</a>
</li>
<li>28.13 <a href="#InterfaceSVGFEConvolveMatrixElement">Interface SVGFEConvolveMatrixElement</a>
</li>
<li>28.14 <a href="#InterfaceSVGFEDiffuseLightingElement">Interface SVGFEDiffuseLightingElement</a>
</li>
<li>28.15 <a href="#InterfaceSVGFEDistantLightElement">Interface SVGFEDistantLightElement</a>
</li>
<li>28.16 <a href="#InterfaceSVGFEPointLightElement">Interface SVGFEPointLightElement</a>
</li>
<li>28.17 <a href="#InterfaceSVGFESpotLightElement">Interface SVGFESpotLightElement</a>
</li>
<li>28.18 <a href="#InterfaceSVGFEDisplacementMapElement">Interface SVGFEDisplacementMapElement</a>
</li>
<li>28.19 <a href="#InterfaceSVGFEFloodElement">Interface SVGFEFloodElement</a>
</li>
<li>28.20 <a href="#InterfaceSVGFEGaussianBlurElement">Interface SVGFEGaussianBlurElement</a>
</li>
<li>28.21 <a href="#InterfaceSVGFEImageElement">Interface SVGFEImageElement</a>
</li>
<li>28.22 <a href="#InterfaceSVGFEMergeElement">Interface SVGFEMergeElement</a>
</li>
<li>28.23 <a href="#InterfaceSVGFEMergeNodeElement">Interface SVGFEMergeNodeElement</a>
</li>
<li>28.24 <a href="#InterfaceSVGFEMorphologyElement">Interface SVGFEMorphologyElement</a>
</li>
<li>28.25 <a href="#InterfaceSVGFEOffsetElement">Interface SVGFEOffsetElement</a>
</li>
<li>28.26 <a href="#InterfaceSVGFESpecularLightingElement">Interface SVGFESpecularLightingElement</a>
</li>
<li>28.27 <a href="#InterfaceSVGFETileElement">Interface SVGFETileElement</a>
</li>
<li>28.28 <a href="#InterfaceSVGFETurbulenceElement">Interface SVGFETurbulenceElement</a>
</li>
<li>28.29 <a href="#InterfaceSVGFEDropShadowElement">Interface SVGFEDropShadowElement</a>
</li>
</ul>
</li>
<li>29 <a href="#references1">References</a>
<ul class="toc">
<li>29.1 <a href="#normref">Normative References</a>
</li>
<li>29.2 <a href="#informref">Informative References</a>
</li>
</ul>
</li>
</ul>



<h2 id="introduction">1 Introduction</h2>


<p>This chapter describes a declarative filter effects feature set, which
when combined with the other web technologies, like SVG or HTML, can describe
much of the common artwork on the Web in such a way that client-side
generation and alteration can be performed easily. In addition, the ability
  to apply filter effects to SVG <a href="/TR/SVGMobile12/intro.html#TermGraphicsElement">graphics elements</a> and <a href="/TR/SVGMobile12/intro.html#TermContainerElement">container elements</a> helps to
maintain the semantic structure of the document, instead of resorting to
images which aside from generally being a fixed resolution tend to obscure
the original semantics of the elements they replace. This is especially true
for effects applied to text. The various usage scenarios are listed in the
SVG Filters Requirements document. </p>

<p>Note that even though this specification references parts of <a href="#ref-svg11">SVG 1.1</a> it does not require a complete SVG 1.1
implementation. </p>

<p>This document is normative. </p>

<p>This document contains explicit conformance criteria that overlap with
some RNG definitions in requirements. If there is any conflict between the
two, the explicit conformance criteria are the definitive reference. </p>

<p>A filter effect consists of a series of graphics operations that are
applied to a given <a id="TermSourceGraphic" name="TermSourceGraphic"><span class="SVG-Term">source graphic</span></a> to produce a modified graphical
result. The result of the filter effect is rendered to the target device
instead of the original source graphic. The following illustrates the
process:</p>

<div id="AnExample"><p><img src="examples/filters00.png" alt="Image showing source graphic transformed by filter effect" height="78" width="401"></img></p>

<p class="view-as-svg"><a href="examples/filters00.svg">View this example as
SVG (SVG-enabled browsers only)</a><br></br>
 </p></div>

<h2 id="FilterElement">2 The <span class="element-name">'filter'</span>
element</h2>


<p>The description of the <span class="element-name">'filter'</span> element
follows:</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="FilterElementFilterUnitsAttribute" name="FilterElementFilterUnitsAttribute"></a> <span class="adef">filterUnits</span> = "<em>userSpaceOnUse</em> |
  <em>objectBoundingBox</em>"</dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  <dt><a id="FilterElementPrimitiveUnitsAttribute" name="FilterElementPrimitiveUnitsAttribute"></a> <span class="adef">primitiveUnits</span> = "<em>userSpaceOnUse</em> |
  <em>objectBoundingBox</em>"</dt>
    <dd>Specifies the coordinate system for the various length values within
      the filter primitives and for the attributes that define the <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      If <strong>primitiveUnits="userSpaceOnUse"</strong>, any length values
      within the filter definitions represent values in the current user
      coordinate system in place at the time when the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element is referenced (i.e., the user coordinate system for the element
      referencing the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element via a <a href="#FilterProperty"><span class="prop-name">'filter'</span></a>
      property).<br></br>
      If <strong>primitiveUnits="objectBoundingBox"</strong>, then any length
      values within the filter definitions represent fractions or percentages
      of the bounding box on the referencing element (see Object bounding box
      units
      ).<br></br>
      If attribute <span class="attr-name">primitiveUnits</span> is not
      specified, then the effect is as if a value of <span class="attr-value">userSpaceOnUse</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  </dl>

<div class="new">
  <dl>
  <dt><a id="FilterElementFilterMarginUnitsAttribute" name="FilterElementFilterMarginUnitsAttribute"></a> <span class="adef">filterMarginUnits</span> = "<em>userSpaceOnUse</em> |
  <em>objectBoundingBox</em>"</dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  <dt><a id="FilterElementPrimitiveMarginUnitsAttribute" name="FilterElementPrimitiveMarginUnitsAttribute"></a> <span class="adef">primitiveMarginUnits</span> = "<em>userSpaceOnUse</em> |
  <em>objectBoundingBox</em>"</dt>
    <dd>Specifies the coordinate system for the margin attributes within the
      filter primitives which is used for determining the <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      If <strong>primitiveMarginUnits="userSpaceOnUse"</strong>, any margin
      attribute values within the filter definitions represent values in the
      current user coordinate system in place at the time when the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element is referenced (i.e., the user coordinate system for the element
      referencing the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element via a <a href="#FilterProperty"><span class="prop-name">'filter'</span></a>
      property).<br></br>
      If <strong>primitiveMarginUnits="objectBoundingBox"</strong>, then any
      margin attribute values within the filter definitions represent
      fractions or percentages of the bounding box on the referencing element
      (see Object bounding box units
      ).<br></br>
      If attribute <span class="attr-name">primitiveMarginUnits</span> is
      not specified, then the effect is as if a value of <span class="attr-value">userSpaceOnUse</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
    </dl>
  </div>

<dl>
  <dt><a id="FilterElementXAttribute" name="FilterElementXAttribute"></a>
  <span class="adef">x</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  <dt><a id="FilterElementYAttribute" name="FilterElementYAttribute"></a>
  <span class="adef">y</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  <dt><a id="FilterElementWidthAttribute" name="FilterElementWidthAttribute"></a> <span class="adef">width</span> =
  "<em>&lt;length&gt;</em>"</dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  <dt><a id="FilterElementHeightAttribute" name="FilterElementHeightAttribute"></a> <span class="adef">height</span> =
  "<em>&lt;length&gt;</em>"</dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  </dl>

<div class="new">
  <dl>
  <dt><a class="indexref-filter_primitives_common_attributes::mx#Q#_attribute" id="FilterElementMxAttribute" name="FilterElementMxAttribute"></a>
  <span class="adef">mx</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>The margin delta for the x coordinate of the subregion which
      restricts calculation and rendering of the given filter primitive. If
      this attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::my#Q#_attribute" id="FilterElementMyAttribute" name="FilterElementMyAttribute"></a>
  <span class="adef">my</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>The margin delta for the y coordinate of the subregion which
      restricts calculation and rendering of the given filter primitive. If
      this attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>. <br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::mw#Q#_attribute" id="FilterElementMwAttribute" name="FilterElementMwAttribute"></a>
  <span class="adef">mw</span> = "<em>&lt;length&gt;</em>"</dt>
    <dd>The margin delta for the width of the subregion which restricts
      calculation and rendering of the given filter primitive. If this
      attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::mh#Q#_attribute" id="FilterElementMhAttribute" name="FilterElementMhAttribute"></a>
  <span class="adef">mh</span> = "<em>&lt;length&gt;</em>"</dt>
    <dd>The margin delta for the height of the subregion which restricts
      calculation and rendering of the given filter primitive. If this
      attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
    </dl>
  </div>  

<dl>
<dt><a id="FilterElementFilterResAttribute" name="FilterElementFilterResAttribute"></a> <span class="adef">filterRes</span> = "<em>&lt;number-optional-number&gt;</em>"
  </dt>
    <dd>See <a href="#FilterEffectsRegion">Filter effects region</a>.</dd>
  </dl>
 <div class="changed">
   <dl>
 <dt>
   <a id="FilterElementHrefAttribute" name="FilterElementHrefAttribute"></a> <span class="adef">xlink:href</span>
  = "<span class="attr-value">&lt;XMLRI&gt;</span>"</dt>
    <dd><p>A URI reference
      to another <span class="element-name">'filter'</span> element within
      the current SVG document fragment. Any attributes which are defined on
      the referenced <span class="element-name">'filter'</span> element which
      are not defined on this element are inherited by this element. If this
      element has no defined filter nodes, and the referenced element has
      defined filter nodes (possibly due to its own <span class="attr-name">href</span> attribute), then this element inherits
      the filter nodes defined from the referenced <span class="element-name">'filter'</span> element. Inheritance can be
      indirect to an arbitrary level; thus, if the referenced <span class="element-name">'filter'</span> element inherits attributes or its
      filter node specification due to its own <span class="attr-name">href</span> attribute, then the current element can
      inherit those attributes or filter node specifications.</p> 

      <div class="note">
      This attribute is deprecated and should not be used, it's included for
      backwards compatibility reasons only.</div>
      <br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
     </dl>
   </div>

</div>

<p>Properties inherit into the <span class="element-name">'filter'</span>
element from its ancestors; properties do <em>not</em> inherit from the
element referencing the <span class="element-name">'filter'</span>
element.</p>

<p><span class="element-name">'filter'</span> elements are never rendered
directly; their only usage is as something that can be referenced using the
<a href="#FilterProperty"><span class="prop-name">'filter'</span></a>
property. The <span class="prop-name">'display'</span> property does not
apply to the <span class="element-name">'filter'</span> element; thus, <span class="element-name">'filter'</span> elements are not directly rendered even
if the <span class="prop-name">'display'</span> property is set to a value
other than <span class="prop-value">none</span>, and <span class="element-name">'filter'</span> elements are available for referencing
even when the <span class="prop-name">'display'</span> property on the <span class="element-name">'filter'</span> element or any of its ancestors is set
to <span class="prop-value">none</span>.</p>
<br></br>


<h2 id="FilterProperty">3 The <span class="prop-name">'filter'</span>
property</h2>


<p>The description of the <span class="prop-name">'filter'</span> property is
as follows:</p>

<div class="changed">

<div class="propdef">
<dl>
  <dt><span class="index-def" title="'margin-top'"><a class="propdef-title" id="propdef-filter" name="propdef-filter"><span class="prop-name">'filter'</span></a></span></dt>
    <dd>
      <table cellpadding="0" cellspacing="0" class="propinfo" summary="filter property">
        <tbody>
          <tr valign="baseline">
            <td><em>Value:</em>  </td>
            <td>&lt;FuncXMLRI&gt; | none | <a href="http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit noxref">inherit</span></a></td>
          </tr>
          <tr valign="baseline">
            <td><em>Initial:</em>  </td>
            <td>none</td>
          </tr>
          <tr valign="baseline">
            <td><em>Applies to:</em>  </td>
            <td>All elements that render. The host language is resposible for
              stating which elements render.
              For svg: container elements
              and graphics elements
              .</td>
          </tr>
          <tr valign="baseline">
            <td><em>Inherited:</em>  </td>
            <td>no</td>
          </tr>
          <tr valign="baseline">
            <td><em>Percentages:</em>  </td>
            <td>N/A</td>
          </tr>
          <tr valign="baseline">
            <td><em>Media:</em>  </td>
            <td>visual</td>
          </tr>
          <tr valign="baseline">
            <td><em>Animatable:</em>  </td>
            <td>yes</td>
          </tr>
        </tbody>
      </table>
    </dd>
</dl>
</div>
</div>
<dl>
  <dt><span class="prop-value">&lt;FuncXMLRI&gt;</span></dt>
    <dd>An IRI reference
      to a <a href="#FilterElement"><span class="element-name">'filter'</span></a> element which defines the
      filter effects that shall be applied to this element.
    </dd>
  <dt><span class="prop-value">none</span></dt>
    <dd>Do not apply any filter effects to this element.</dd>
</dl>
<br></br>


<h2 id="FilterEffectsRegion">4 Filter effects region</h2>


<p>A <a href="#FilterElement"><span class="element-name">'filter'</span></a>
element can define a region on the canvas to which a given filter effect
applies and can provide a resolution for any intermediate continuous tone
images used to process any raster-based filter primitives. </p>
<div class="new">
<h3 id="filter-margins">4.1 Filter Region extensions</h3>


<p>In <a href="#ref-svg11">SVG 1.1</a>, a <span class="element">filter</span>
defines the area upon which it applies. This makes it difficult to develop a
generic filter that can be applied to arbitrary graphics, since the filter
must define a large enough area to cover any graphical object to which it is
applied. An example of this is a generic "drop shadow" filter, which is
commonly specified as a combination of a Gaussian blur <a href="#feGaussianBlurElement"><span class="element-name">feGuassianBlur</span></a>) that is offset <a href="#feOffsetElement"><span class="element-name">feOffset</span></a>) and then composed <a href="#feCompositeElement"><span class="element-name">feComposite</span></a>) with the original source graphic.
Since the shadow has to extend beyond the original graphic's boundaries, the
filter must be defined to have a larger area than the original graphic.
Overestimating this margin has a negative effect on performance, since the
complex filter operation has to touch a larger amount of user space (ie.
pixels). </p>

<p>In order to solve this problem this spec allows additional control over
the filter region. The outer filter region is expressed by delta to the
<a href="#FilterElementXAttribute"><span class="attr-name">x</span></a>, 
<a href="#FilterElementYAttribute"><span class="attr-name">y</span></a>, 
<a href="#FilterElementWidthAttribute"><span class="attr-name">width</span></a>, 
<a href="#FilterElementHeightAttribute"><span class="attr-name">height</span></a>
 of the input filter region. </p>

<p>In particular, the <a href="#FilterElementFilterMarginUnitsAttribute"><span class="attr-name">filterMarginUnits</span></a>, <a href="#FilterElementPrimitiveMarginUnitsAttribute"><span class="attr-name">primitiveMarginUnits</span></a>, <a href="#FilterElementMxAttribute"><span class="attr-name">mx</span></a>, <a href="#FilterElementMyAttribute"><span class="attr-name">my</span></a>, <a href="#FilterElementMwAttribute"><span class="attr-name">mw</span></a> and <a href="#FilterElementMhAttribute"><span class="attr-name">mh</span></a> are
added to the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element. The <span class="attr-name">filterMarginUnits</span> specifies the coordinate space of
the new margin attributes, which are used to increase or decrease the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element's 
<a href="#FilterElementXAttribute"><span class="attr-name">x</span></a>, 
<a href="#FilterElementYAttribute"><span class="attr-name">y</span></a>, 
<a href="#FilterElementWidthAttribute"><span class="attr-name">width</span></a> and 
<a href="#FilterElementHeightAttribute"><span class="attr-name">height</span></a>
attributes (once they have been calculated). The <a href="#FilterElementPrimitiveMarginUnitsAttribute"><span class="attr-name">primitiveMarginUnits</span></a> specifies the units for the
new margin attributes on the filter primitives, also named 
<a href="#FilterElementMwAttribute"><span class="attr-name">mx</span></a>, 
<a href="#FilterElementMyAttribute"><span class="attr-name">my</span></a>, 
<a href="#FilterElementMwAttribute"><span class="attr-name">mw</span></a>, 
<a href="#FilterElementMhAttribute"><span class="attr-name">mh</span></a>. 
These margins attribute override those set on the parent <span class="element">filter</span> element. Note that this doesn't mean that a
filter primitive can expand the filter region itself, just that the
coordinate system used for filter primitives margin attributes can be
different than the one used for the margin attributes on the 
<a href="#FilterElement"><span class="element-name">'filter'</span></a> element. </p>

<p>An example of the new attributes, which defines a generic drop shadow
filter: </p>
<pre class="examplesource">	&lt;filter id="dropShadow" x="0" y="0" width="1" height="1"
			  filterMarginUnits="userSpaceOnUse"
			  mx="0" my="0" mw="5" mh="5" &gt;
		  &lt;feGaussianBlur stdDeviation="2" in="SourceAlpha" /&gt;
		  &lt;feOffset dx="2" /&gt;
		  &lt;feMerge&gt;
			   &lt;feMergeNode /&gt;
			   &lt;feMergeNode in="SourceGraphic" /&gt;
		  &lt;/feMerge&gt;
	&lt;/filter&gt; </pre>

<p>In the above example, the filter region by default covers the entire
bounds of the object (which is not enough to show the shadow). Adding the new
margins extends the width and height by 5 user units each, which is always
enough to display the blur (which has a standard deviation of 2 user units)
and offset (which is another 2 units). </p>
</div>
<p>The <a href="#FilterElement"><span class="element-name">'filter'</span></a>
element has the following attributes which work together to define the filter
effects region:</p>
<ul>
  <li><a class="indexref-filter#Q#_element::filterUnits#Q#_attribute" name="FilterUnitsAttribute" id="FilterUnitsAttribute"></a>
    <strong>filterUnits={ userSpaceOnUse | objectBoundingBox }</strong>.<br></br>
    Defines the coordinate system for attributes <a href="#FilterRegionXYWidthHeightAttributes"><span class="attr-name">x, y,
    width, height</span></a>.<br></br>
    If <strong>filterUnits="userSpaceOnUse"</strong>, <a href="#FilterRegionXYWidthHeightAttributes"><span class="attr-name">x, y,
    width, height</span></a> represent values in the current user coordinate
    system in place at the time when the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element is referenced (i.e., the
    user coordinate system for the element referencing the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
    element via a <a href="#FilterProperty"><span class="prop-name">'filter'</span></a> property).<br></br>
    If <strong>filterUnits="objectBoundingBox"</strong>, then <a href="#FilterRegionXYWidthHeightAttributes"><span class="attr-name">x, y,
    width, height</span></a> represent fractions or percentages of the
    bounding box on the referencing element (see Object bounding box units
    ).<br></br>
    If attribute <span class="attr-name">filterUnits</span> is not specified,
    then the effect is as if a value of <span class="attr-value">objectBoundingBox</span> were specified.<br></br>
    <span class="anim-target">Animatable:yes.</span></li>
  <li><a class="indexref-filter#Q#_element::x#Q#_attribute" name="FilterRegionXAttribute" id="FilterRegionXAttribute"></a> <a class="indexref-filter#Q#_element::y#Q#_attribute" name="FilterRegionYAttribute" id="FilterRegionYAttribute"></a> <a class="indexref-filter#Q#_element::width#Q#_attribute" name="FilterRegionWidthAttribute" id="FilterRegionWidthAttribute"></a> <a class="indexref-filter#Q#_element::height#Q#_attribute" name="FilterRegionHeightAttribute" id="FilterRegionHeightAttribute"></a> <a name="FilterRegionXYWidthHeightAttributes" id="FilterRegionXYWidthHeightAttributes"></a> <strong>x, y, width,
    height</strong>, which define a rectangular region on the canvas to which
    this filter applies.<br></br>
    The amount of memory and processing time required to apply the filter are
    related to the size of this rectangle and the <a href="#FilterElementFilterResAttribute"><span class="attr-name">filterRes</span></a> attribute of the filter.<br></br>
    The coordinate system for these attributes depends on the value for
    attribute <a href="#FilterUnitsAttribute"><span class="attr-name">filterUnits</span></a>.<br></br>
    The bounds of this rectangle act as a hard clipping region for each <a href="#FilterPrimitivesOverview">filter primitive</a> included with a
    given <a href="#FilterElement"><span class="element-name">'filter'</span></a> element; thus, if the effect of
    a given filter primitive would extend beyond the bounds of the rectangle
    (this sometimes happens when using a <a href="#feGaussianBlurElement"><span class="element-name">'feGaussianBlur'</span></a> filter primitive with a
    very large <a href="#feGaussianBlurStdDeviationAttribute"><span class="attr-name">stdDeviation</span></a>), parts of the effect will get
    clipped.<br></br>
    If <strong>x</strong> or <strong>y</strong> is not specified, the effect
    is as if a value of "-10%" were specified.<br></br>
    If <strong>width</strong> or <strong>height</strong> is not specified,
    the effect is as if a value of "120%" were specified.<br></br>
    Negative or zero values for <strong>width</strong> or
    <strong>height</strong> disable rendering of the element which referenced
    the filter. <br></br>
    <span class="anim-target">Animatable:yes.</span></li>
  </ul>

<div class="new">
  <ul>
  <li><a class="indexref-filter#Q#_element::filterMarginUnits#Q#_attribute" name="FilterMarginAttribute" id="FilterMarginAttribute"></a>
    <strong>filterMarginUnits={ userSpaceOnUse | objectBoundingBox
    }</strong>.<br></br>
    Defines the coordinate system for attributes <a href="#FilterRegionMXMYMWMHAttributes"><span class="attr-name">mx, my,
    mw, mh</span></a>.<br></br>
    If <strong>filterMarginUnits="userSpaceOnUse"</strong>, <a href="#FilterRegionMXMYMWMHAttributes"><span class="attr-name">mx, my,
    mw, mh</span></a> represent values in the current user coordinate system
    in place at the time when the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element is referenced (i.e., the
    user coordinate system for the element referencing the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
    element via a <a href="#FilterProperty"><span class="prop-name">'filter'</span></a> property).<br></br>
    If <strong>filterMarginUnits="objectBoundingBox"</strong>, then <a href="#FilterRegionMXMYMWMHAttributes"><span class="attr-name">mx, my,
    mw, mh</span></a> represent fractions or percentages of the bounding box
    on the referencing element (see Object bounding box units
    ).<br></br>
    If attribute <span class="attr-name">filterMarginUnits</span> is not
    specified, then the effect is as if a value of <span class="attr-value">userSpaceOnUse</span> were specified.<br></br>
    <span class="anim-target">Animatable:yes.</span></li>
  <li><a class="indexref-filter#Q#_element::mx#Q#_attribute" name="FilterRegionMxAttribute" id="FilterRegionMyAttribute"></a> <a class="indexref-filter#Q#_element::my#Q#_attribute" name="FilterRegionMyAttribute2" id="FilterRegionMyAttribute2"></a> <a class="indexref-filter#Q#_element::mw#Q#_attribute" name="FilterRegionMwAttribute" id="FilterRegionMwAttribute"></a> <a class="indexref-filter#Q#_element::mh#Q#_attribute" name="FilterRegionMhAttribute" id="FilterRegionMhAttribute"></a> <a name="FilterRegionMXMYMWMHAttributes" id="FilterRegionMXMYMWMHAttributes"></a> <strong>mx, my, mw, mh</strong>,
    which define deltas to the <a href="#FilterRegionXYWidthHeightAttributes"><span class="attr-name">x, y, width, height</span></a> of the filter region. <br></br>
    After the <a href="#FilterRegionXYWidthHeightAttributes"><span class="attr-name">x, y, width, height</span></a> have been calculated for the filter region the
    <a href="#FilterRegionMXMYMWMHAttributes"><span class="attr-name">mx, my, mw, mh</span></a> are calculated and added to the filter region. If the
    resulting filter region has a negative or zero width or height, the
    rendering of the element which referenced the filter is disabled.<br></br>
    The coordinate system for these attributes depends on the value for
    attribute <a href="#FilterElementFilterMarginUnitsAttribute"><span class="attr-name">filterMarginUnits</span></a>.<br></br>
    If <strong>mx</strong> or <strong>my</strong> is not specified, the
    effect is as if a value of <span class="attr-value">0</span> were
    specified.<br></br>
    If <strong>mw</strong> or <strong>mh</strong> is not specified, the
    effect is as if a value of <span class="attr-value">0</span> were
    specified.<br></br>
    <span class="anim-target">Animatable:yes.</span></li>
    </ul>
  </div>  
<ul>
<li><strong>filterRes</strong> (which has the form <code>x-pixels
    [y-pixels])</code> indicates the width and height of the intermediate
    images in pixels. If not provided, then a reasonable default resolution
    appropriate for the target device will be used. (For displays, an
    appropriate display resolution, preferably the current display's pixel
    resolution, is the default. For printing, an appropriate common printer
    resolution, such as 400dpi, is the default.)<br></br>
    Care should be taken when assigning a non-default value to this
    attribute. Too small of a value may result in unwanted pixelation in the
    result. Too large of a value may result in slow processing and large
    memory usage.<br></br>
    Negative or zero values disable rendering of the element which referenced
    the filter. <br></br>
    <span class="anim-target">Animatable:yes.</span></li>
</ul>

<p>Note that both of the two possible value for <span class="attr-name">filterUnits</span> (i.e., <span class="attr-value">objectBoundingBox</span> and <span class="attr-value">userSpaceOnUse</span>) result in a filter region whose
coordinate system has its X-axis and Y-axis each parallel to the X-axis and
Y-axis, respectively, of the user coordinate system for the element to which
the filter will be applied.</p>

<p>Sometimes implementers can achieve faster performance when the filter
region can be mapped directly to device pixels; thus, for best performance on
display devices, it is suggested that authors define their region such that
the user agent can align the filter region pixel-for-pixel with the
background. In particular, for best filter effects performance, avoid
rotating or skewing the user coordinate system. Explicit values for attribute
<span class="attr-name">filterRes</span> can either help or harm performance.
If <span class="attr-name">filterRes</span> is smaller than the automatic
(i.e., default) filter resolution, then filter effect might have faster
performance (usually at the expense of quality). If <span class="attr-name">filterRes</span> is larger than the automatic (i.e.,
default) filter resolution, then filter effects performance will usually be
slower.</p>

<p>It is often necessary to provide padding space because the filter effect
might impact bits slightly outside the tight-fitting bounding box on a given
object. For these purposes, it is possible to provide negative percentage
values for <strong>x, y</strong> and percentages values greater than 100% for
<strong>width, height</strong>. This, for example, is why the defaults for
the filter effects region are x="-10%" y="-10%" width="120%"
height="120%".</p>
<a class="indexref-filter_effects_background_image" id="FilterEffectsAccessingBackgroundImage" name="FilterEffectsAccessingBackgroundImage"></a> <a class="indexref-background_image" id="AccessingBackgroundImage" name="AccessingBackgroundImage"></a> 

<h2 id="AccessBackgroundImage">5 Accessing the background image</h2>


<p>Two possible pseudo input images for filter effects are <a href="#BackgroundImage">BackgroundImage</a> and <a href="#BackgroundAlpha">BackgroundAlpha</a>, which each represent an image
snapshot of the canvas under the filter region at the time that the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element
is invoked. <a href="#BackgroundImage">BackgroundImage</a> represents both
the color values and alpha channel of the canvas (i.e., RGBA pixel values),
whereas <a href="#BackgroundAlpha">BackgroundAlpha</a> represents only the
alpha channel.</p>

<p>Implementations 
will often need to maintain supplemental background image buffers in order to
support the <a href="#BackgroundImage">BackgroundImage</a> and <a href="#BackgroundAlpha">BackgroundAlpha</a> pseudo input images. Sometimes,
the background image buffers will contain an in-memory copy of the
accumulated painting operations on the current canvas.</p>

<p>Because in-memory image buffers can take up significant system resources, 
content must explicitly indicate to the 
user agent that the document needs access to the background image before <a href="#BackgroundImage">BackgroundImage</a> and <a href="#BackgroundAlpha">BackgroundAlpha</a> pseudo input images can be used.
</p>

<div class="new">
A background image is what's been <i>rendered before</i> the current element.
The host language is responsible for defining what <i>rendered before</i> in
this context means
. For SVG, that uses the painter's algorithm, <i>rendered before</i> means
all of the prior elements in pre order traversal previous to the element to
which the filter is applied. </div>

<p>The property which enables access to the background image is
<strong>'enable-background'</strong>:</p>
<a class="indexref-enable-background#Q#_property" id="EnableBackgroundProperty" name="EnableBackgroundProperty"></a> 

<div class="changed">

<div class="propdef">
<dl>
  <dt><span class="index-def" title="'margin-top'"><a class="propdef-title" id="propdef-enable-background" name="propdef-enable-background"><span class="prop-name">'enable-background'</span></a></span></dt>
    <dd>
      <table cellpadding="0" cellspacing="0" class="propinfo" summary="enable-background property">
        <tbody>
          <tr valign="baseline">
            <td><em>Value:</em>  </td>
            <td>accumulate | new [ &lt;x&gt; &lt;y&gt; &lt;width&gt;
              &lt;height&gt; ] | <a href="http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit noxref">inherit</span></a></td>
          </tr>
          <tr valign="baseline">
            <td><em>Initial:</em>  </td>
            <td>accumulate</td>
          </tr>
          <tr valign="baseline">
            <td><em>Applies to:</em>  </td>
            <td>Typically elements that can contain renderable elements. Host
              language is responsible for defining the applicable set of
              elements.
              For SVG: container elements</td>
          </tr>
          <tr valign="baseline">
            <td><em>Inherited:</em>  </td>
            <td>no</td>
          </tr>
          <tr valign="baseline">
            <td><em>Percentages:</em>  </td>
            <td>N/A</td>
          </tr>
          <tr valign="baseline">
            <td><em>Media:</em>  </td>
            <td>visual</td>
          </tr>
          <tr valign="baseline">
            <td><em>Animatable:</em>  </td>
            <td>no</td>
          </tr>
        </tbody>
      </table>
    </dd>
</dl>
</div>
</div>


<div class="changed">
<p>A value of <strong>new</strong> indicates two things:</p>
<ul>
  <li>It enables the ability of children of the current 
    element to access the background image.</li>
  <li>It indicates that a new (i.e., initially transparent black) background
    image canvas is established and that (in effect) all children of the
    current 
    element shall be rendered into the new background image canvas in
    addition to being rendered onto the target device.</li>
</ul>

<p>A meaning of <strong>enable-background: accumulate</strong> (the
initial/default value) depends on context:</p>
<ul>
  <li>If an ancestor 
    element has a property value of 'enable-background:new', then all 
    renderable child elements of the current 
    element are rendered both onto the parent 
    element's background image canvas and onto the target device.</li>
  <li>Otherwise, there is no current background image canvas, so it is only
    necessary to render 
    the renderable elements onto the target device. (No need to render to the
    background image canvas.)</li>
</ul>

<p>If a filter effect specifies either the <a href="#BackgroundImage">BackgroundImage</a> or the <a href="#BackgroundAlpha">BackgroundAlpha</a> pseudo input images and no
ancestor 
 element has a property value of 'enable-background:new', then the background
image request is technically in error. Processing will proceed without
interruption (i.e., no error message) and a transparent black image shall be
provided in response to the request.</p>

<p>The optional
<strong>&lt;x&gt;,&lt;y&gt;,&lt;width&gt;,&lt;height&gt;</strong> parameters
on the <strong>new</strong> value indicate the subregion of the 
 element to which enable-background applies' user space where access to the
background image is allowed to happen. These parameters enable the user
agent potentially to allocate smaller temporary image buffers than the
default values, which might require the user agent to allocate buffers as
large as the current viewport. Thus, the values
&lt;x&gt;,&lt;y&gt;,&lt;width&gt;,&lt;height&gt; act as a clipping rectangle
on the background image canvas. If more than zero but less than four of the
values &lt;x&gt;,&lt;y&gt;,&lt;width&gt; and &lt;height&gt; are specified or
if negative or zero values are specified for &lt;width&gt; or &lt;height&gt;,
<a href="#BackgroundImage">BackgroundImage</a> and <a href="#BackgroundAlpha">BackgroundAlpha</a> are processed as if background
image processing were not enabled. </p>
</div>

<div class="new">
<h3 id="AccessBackgroundImageSVG">5.1 Accessing the background image in SVG</h3>

<p>This section only applies to the SVG definition of enable-background.</p>
</div>

<p>Assume you have an element E in the document and that E has a series of
ancestors A<sub>1</sub> (its immediate parent), A<sub>2</sub>, etc. (Note:
A<sub>0</sub> is E.) Each ancestor A<sub>i</sub> will have a corresponding
temporary background image offscreen buffer BUF<sub>i</sub>. The contents of
the <em>background image</em> available to a <a href="#FilterElement"><span class="element-name">'filter'</span></a> referenced by E is defined as
follows:</p>
<ul>
  <li>Find the element A<sub>i</sub> with the smallest subscript i (including
    A<sub>0</sub>=E) for which the <a href="#EnableBackgroundProperty"><span class="prop-name">'enable-background'</span></a> property has the value
    <span class="prop-value">new</span>. (Note: if there is no such ancestor
    element, then there is no background image available to E, in which case
    a transparent black image will be used as E's background image.)</li>
  <li>For each A<sub>i</sub> (from i=n to 1), initialize BUF<sub>i</sub> to
    transparent black. Render all children of A<sub>i</sub> up to but not
    including A<sub>i-1</sub> into BUF<sub>i</sub>. The children are painted,
    then filtered, clipped, masked and composited using the various painting,
    filtering, clipping, masking and object opacity settings on the given
    child. Any filter effects, masking and group opacity that might be set on
    A<sub>i</sub> do <em>not</em> apply when rendering the children of
    A<sub>i</sub> into BUF<sub>i</sub>.<br></br>
    (Note that for the case of A<sub>0</sub>=E, the graphical contents of E
    are not rendered into BUF<sub>1</sub> and thus are not part of the
    background image available to E. Instead, the graphical contents of E are
    available via the <a href="#SourceGraphic">SourceGraphic</a> and <a href="#SourceAlpha">SourceAlpha</a> pseudo input images.)</li>
  <li>Then, for each A<sub>i</sub> (from i=1 to n-1), composite
    BUF<sub>i</sub> into BUF<sub>i+1</sub>.</li>
  <li>The accumulated result (i.e., BUF<sub>n</sub>) represents the
    background image available to E.</li>
</ul>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/enable-background-01.svg">enable-background-01.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0" standalone="no"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="13.5cm" height="2.7cm" viewBox="0 0 1350 270"
     xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
  &lt;title&gt;Example enable-background01&lt;/title&gt;
  &lt;desc&gt;This test case shows five pictures which illustrate the rules
        for background image processing.&lt;/desc&gt;

  &lt;defs&gt;
    &lt;filter id="ShiftBGAndBlur" 
            filterUnits="userSpaceOnUse" x="0" y="0" width="1200" height="400"&gt;
      &lt;desc&gt;
        This filter discards the SourceGraphic, if any, and just produces
        a result consisting of the BackgroundImage shifted down 125 units
        and then blurred.
      &lt;/desc&gt;
      &lt;feOffset in="BackgroundImage" dx="0" dy="125" /&gt;
      &lt;feGaussianBlur stdDeviation="8" /&gt;
    &lt;/filter&gt;
    &lt;filter id="ShiftBGAndBlur_WithSourceGraphic" 
            filterUnits="userSpaceOnUse" x="0" y="0" width="1200" height="400"&gt;
      &lt;desc&gt;
        This filter takes the BackgroundImage, shifts it down 125 units, blurs it,
        and then renders the SourceGraphic on top of the shifted/blurred background.
      &lt;/desc&gt;
      &lt;feOffset in="BackgroundImage" dx="0" dy="125" /&gt;
      &lt;feGaussianBlur stdDeviation="8" result="blur" /&gt;
      &lt;feMerge&gt;
        &lt;feMergeNode in="blur"/&gt;
        &lt;feMergeNode in="SourceGraphic"/&gt;
      &lt;/feMerge&gt;
    &lt;/filter&gt;
  &lt;/defs&gt;

  &lt;g transform="translate(0,0)"&gt;
    &lt;desc&gt;The first picture is our reference graphic without filters.&lt;/desc&gt;
    &lt;rect x="25" y="25" width="100" height="100" fill="red"/&gt;
    &lt;g opacity=".5"&gt;
      &lt;circle cx="125" cy="75" r="45" fill="green"/&gt;
      &lt;polygon points="160,25 160,125 240,75" fill="blue"/&gt;
    &lt;/g&gt;
    &lt;rect x="5" y="5" width="260" height="260" fill="none" stroke="blue"/&gt;
  &lt;/g&gt;

  &lt;g enable-background="new" transform="translate(270,0)"&gt;
    &lt;desc&gt;The second adds an empty 'g' element which invokes ShiftBGAndBlur.&lt;/desc&gt;
    &lt;rect x="25" y="25" width="100" height="100" fill="red"/&gt;
    &lt;g opacity=".5"&gt;
      &lt;circle cx="125" cy="75" r="45" fill="green"/&gt;
      &lt;polygon points="160,25 160,125 240,75" fill="blue"/&gt;
    &lt;/g&gt;
    &lt;g filter="url(#ShiftBGAndBlur)"/&gt;
    &lt;rect x="5" y="5" width="260" height="260" fill="none" stroke="blue"/&gt;
  &lt;/g&gt;

  &lt;g enable-background="new" transform="translate(540,0)"&gt;
    &lt;desc&gt;The third invokes ShiftBGAndBlur on the inner group.&lt;/desc&gt;
    &lt;rect x="25" y="25" width="100" height="100" fill="red"/&gt;
    &lt;g filter="url(#ShiftBGAndBlur)" opacity=".5"&gt;
      &lt;circle cx="125" cy="75" r="45" fill="green"/&gt;
      &lt;polygon points="160,25 160,125 240,75" fill="blue"/&gt;
    &lt;/g&gt;
    &lt;rect x="5" y="5" width="260" height="260" fill="none" stroke="blue"/&gt;
  &lt;/g&gt;

  &lt;g enable-background="new" transform="translate(810,0)"&gt;
    &lt;desc&gt;The fourth invokes ShiftBGAndBlur on the triangle.&lt;/desc&gt;
    &lt;rect x="25" y="25" width="100" height="100" fill="red"/&gt;
    &lt;g opacity=".5"&gt;
      &lt;circle cx="125" cy="75" r="45" fill="green"/&gt;
      &lt;polygon points="160,25 160,125 240,75" fill="blue"
               filter="url(#ShiftBGAndBlur)"/&gt;
    &lt;/g&gt;
    &lt;rect x="5" y="5" width="260" height="260" fill="none" stroke="blue"/&gt;
  &lt;/g&gt;

  &lt;g enable-background="new" transform="translate(1080,0)"&gt;
    &lt;desc&gt;The fifth invokes ShiftBGAndBlur_WithSourceGraphic on the triangle.&lt;/desc&gt;
    &lt;rect x="25" y="25" width="100" height="100" fill="red"/&gt;
    &lt;g opacity=".5"&gt;
      &lt;circle cx="125" cy="75" r="45" fill="green"/&gt;
      &lt;polygon points="160,25 160,125 240,75" fill="blue"
               filter="url(#ShiftBGAndBlur_WithSourceGraphic)"/&gt;
    &lt;/g&gt;
    &lt;rect x="5" y="5" width="260" height="260" fill="none" stroke="blue"/&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/enable-background-01.png" alt="Rendering of enable-background-01.svg" />
  </div>
</div>


<p>The example above contains five parts, described as follows:</p>
<ol>
  <li>The first set is the reference graphic. The reference graphic consists
    of a red rectangle followed by a 50% transparent <span class="element-name">'g'</span>
    element. Inside the <span class="element-name">'g'</span>
    is a green circle that partially overlaps the rectangle and a a blue
    triangle that partially overlaps the circle. The three objects are then
    outlined by a rectangle stroked with a thin blue line. No filters are
    applied to the reference graphic.</li>
  <li>The second set enables background image processing and adds an empty
    <span class="element-name">'g'</span>
    element which invokes the ShiftBGAndBlur filter. This filter takes the
    current accumulated background image (i.e., the entire reference graphic)
    as input, shifts its offscreen down, blurs it, and then writes the result
    to the canvas. Note that the offscreen for the filter is initialized to
    transparent black, which allows the already rendered rectangle, circle
    and triangle to show through after the filter renders its own result to
    the canvas.</li>
  <li>The third set enables background image processing and instead invokes
    the ShiftBGAndBlur filter on the inner <span class="element-name">'g'</span>
    element. The accumulated background at the time the filter is applied
    contains only the red rectangle. Because the children of the inner <span class="element-name">'g'</span>
    (i.e., the circle and triangle) are not part of the inner <span class="element-name">'g'</span>
    element's background and because ShiftBGAndBlur ignores SourceGraphic,
    the children of the inner <span class="element-name">'g'</span>
    do not appear in the result.</li>
  <li>The fourth set enables background image processing and invokes the
    ShiftBGAndBlur on the <span class="element-name">'polygon'</span>
    element that draws the triangle. The accumulated background at the time
    the filter is applied contains the red rectangle plus the green circle
    ignoring the effect of the <span class="prop-name">'opacity'</span>
    property on the inner <span class="element-name">'g'</span>
    element. (Note that the blurred green circle at the bottom does not let
    the red rectangle show through on its left side. This is due to ignoring
    the effect of the <span class="prop-name">'opacity'</span>
    property.) Because the triangle itself is not part of the accumulated
    background and because ShiftBGAndBlur ignores SourceGraphic, the triangle
    does not appear in the result.</li>
  <li>The fifth set is the same as the fourth except that filter
    ShiftBGAndBlur_WithSourceGraphic is invoked instead of ShiftBGAndBlur.
    ShiftBGAndBlur_WithSourceGraphic performs the same effect as
    ShiftBGAndBlur, but then renders the SourceGraphic on top of the shifted,
    blurred background image. In this case, SourceGraphic is the blue
    triangle; thus, the result is the same as in the fourth case except that
    the blue triangle now appears.</li>
</ol>

<h2 id="FilterPrimitivesOverview">6 Filter primitives overview</h2>


<h3 id="FilterPrimitivesOverviewIntro">6.1 Overview</h3>


<p>This section describes the various filter primtives that can be assembled
to achieve a particular filter effect.</p>

<p>Unless otherwise stated, all image filters operate on premultiplied RGBA
samples. Filters which work more naturally on non-premultiplied data
(feColorMatrix and feComponentTransfer) will temporarily undo and redo
premultiplication as specified. All raster effect filtering operations take 1
to N input RGBA images, additional attributes as parameters, and produce a
single output RGBA image.</p>

<p>The RGBA result from each filter primitive will be clamped into the
allowable ranges for colors and opacity values. Thus, for example, the result
from a given filter primitive will have any negative color values or opacity
values adjusted up to color/opacity of zero.</p>

<p>The color space in which a particular filter primitive performs its
operations is determined by the value of property <span class="prop-name">'color-interpolation-filters'</span> on the given filter
primitive. A different property, <span class="prop-name">'color-interpolation'</span> determines the color space for
other color operations. Because these two properties have different initial
values (<span class="prop-name">'color-interpolation-filters'</span> has an
initial value of <span class="prop-value">linearRGB</span> whereas <span class="prop-name">'color-interpolation'</span> has an initial value of <span class="prop-value">sRGB</span>), in some cases to achieve certain results
(e.g., when coordinating gradient interpolation with a filtering operation)
it will be necessary to explicitly set <span class="prop-name">'color-interpolation'</span> to <span class="prop-value">linearRGB</span> or <span class="prop-name">'color-interpolation-filters'</span> to <span class="prop-value">sRGB</span> on particular elements. Note that the examples
below do not explicitly set either <span class="prop-name">'color-interpolation'</span> or <span class="prop-name">'color-interpolation-filters'</span>, so the initial values
for these properties apply to the examples.</p>

<h3 id="CommonAttributes">6.2 Common attributes</h3>


<p>The following attributes are available for most of the filter
primitives:</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a class="indexref-filter_primitives_common_attributes::x#Q#_attribute" id="FilterPrimitiveXAttribute" name="FilterPrimitiveXAttribute"></a>
  <span class="adef">x</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>The minimum x coordinate for the subregion which restricts
      calculation and rendering of the given filter primitive. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::y#Q#_attribute" id="FilterPrimitiveYAttribute" name="FilterPrimitiveYAttribute"></a>
  <span class="adef">y</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>The minimum y coordinate for the subregion which restricts
      calculation and rendering of the given filter primitive. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>. <br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::width#Q#_attribute" id="FilterPrimitiveWidthAttribute" name="FilterPrimitiveWidthAttribute"></a>
  <span class="adef">width</span> = "<em>&lt;length&gt;</em>"</dt>
    <dd>The width of the subregion which restricts calculation and rendering
      of the given filter primitive. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      A negative or zero value disables the effect of the given filter
      primitive (i.e., the result is a transparent black image).<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::height#Q#_attribute" id="FilterPrimitiveHeightAttribute" name="FilterPrimitiveHeightAttribute"></a>
  <span class="adef">height</span> = "<em>&lt;length&gt;</em>"</dt>
    <dd>The height of the subregion which restricts calculation and rendering
      of the given filter primitive. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      A negative or zero value disables the effect of the given filter
      primitive (i.e., the result is a transparent black image).<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  </dl>

  <div class="new">
    <dl>
  <dt><a class="indexref-filter_primitives_common_attributes::mx#Q#_attribute" id="FilterCommonMxAttribute" name="FilterCommonMxAttribute"></a>
  <span class="adef">mx</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>The margin delta for the x coordinate of the subregion which
      restricts calculation and rendering of the given filter primitive. If
      this attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::my#Q#_attribute" id="FilterCommonMyAttribute" name="FilterCommonMyAttribute"></a>
  <span class="adef">my</span> = "<em>&lt;coordinate&gt;</em>"</dt>
    <dd>The margin delta for the y coordinate of the subregion which
      restricts calculation and rendering of the given filter primitive. If
      this attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>. <br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::mw#Q#_attribute" id="FilterCommonMwAttribute" name="FilterCommonMwAttribute"></a>
  <span class="adef">mw</span> = "<em>&lt;length&gt;</em>"</dt>
    <dd>The margin delta for the width of the subregion which restricts
      calculation and rendering of the given filter primitive. If this
      attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::mh#Q#_attribute" id="FilterCommonMhAttribute" name="FilterCommonMhAttribute"></a>
  <span class="adef">mh</span> = "<em>&lt;length&gt;</em>"</dt>
    <dd>The margin delta for the height of the subregion which restricts
      calculation and rendering of the given filter primitive. If this
      attribute is not specified, the effect is as if a value of <span class="attr-value">0</span> were specified. See <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
      </dl>
  </div>
<dl>
  <dt><a class="indexref-filter_primitives_common_attributes::result#Q#_attribute" id="FilterPrimitiveResultAttribute" name="FilterPrimitiveResultAttribute"></a>
  <span class="adef">result</span> =
  "<em>&lt;filter-primitive-reference&gt;</em>"</dt>
    <dd>Assigned name for this filter primitive. If supplied, then graphics
      that result from processing this filter primitive can be referenced by
      an <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> attribute on a subsequent filter
      primitive within the same <a href="#FilterElement"><span class="element-name">'filter'</span></a> element. If no value is
      provided, the output will only be available for re-use as the implicit
      input into the next filter primitive if that filter primitive provides
      no value for its <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> attribute.<br></br>
      Note that a <em>&lt;filter-primitive-reference&gt;</em> is not an XML
      ID; instead, a <em>&lt;filter-primitive-reference&gt;</em> is only
      meaningful within a given <a href="#FilterElement"><span class="element-name">'filter'</span></a> element and thus have only
      local scope. It is legal for the same
      <em>&lt;filter-primitive-reference&gt;</em> to appear multiple times
      within the same <a href="#FilterElement"><span class="element-name">'filter'</span></a> element. When referenced, the
      <em>&lt;filter-primitive-reference&gt;</em> will use the closest
      preceding filter primitive with the given result.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a class="indexref-filter_primitives_common_attributes::in#Q#_attribute" id="FilterPrimitiveInAttribute" name="FilterPrimitiveInAttribute"></a>
  <span class="adef">in</span> = "<em><a href="#SourceGraphic">SourceGraphic</a> | <a href="#SourceAlpha">SourceAlpha</a> | <a href="#BackgroundImage">BackgroundImage</a> | <a href="#BackgroundAlpha">BackgroundAlpha</a> | <a href="#FillPaint">FillPaint</a> | <a href="#StrokePaint">StrokePaint</a> |
  &lt;filter-primitive-reference&gt;</em>"</dt>
    <dd>Identifies input for the given filter primitive. The value can be
      either one of six keywords or can be a string which matches a previous
      <a href="#FilterPrimitiveResultAttribute"><span class="attr-name">result</span></a> attribute value within the same <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element. If no value is provided and this is the first filter
      primitive, then this filter primitive will use <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a>
      as its input. If no value is provided and this is a subsequent filter
      primitive, then this filter primitive will use the result from the
      previous filter primitive as its input. 
      <p>If the value for <span class="attr-name">result</span> appears
      multiple times within a given <a href="#FilterElement"><span class="element-name">'filter'</span></a> element, then a reference to
      that result will use the closest preceding filter primitive with the
      given value for attribute <span class="attr-name">result</span>.
      Forward references to results are not allowed, and will be treated as
      if no result was specified. </p>
      Definitions for the six keywords: 
      <dl>
        <dt><a id="SourceGraphic" name="SourceGraphic"><span class="attr-value">SourceGraphic</span></a></dt>
          <dd>This keyword represents the graphics elements
            that were the original input into the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element. For raster
            effects filter primitives, the graphics elements
            will be rasterized into an initially clear RGBA raster in image
            space. Pixels left untouched by the original graphic will be left
            clear. The image is specified to be rendered in linear RGBA
            pixels. The alpha channel of this image captures any
            anti-aliasing specified by SVG. (Since the raster is linear, the
            alpha channel of this image will represent the exact percent
            coverage of each pixel.)</dd>
        <dt><a id="SourceAlpha" name="SourceAlpha"><span class="attr-value">SourceAlpha</span></a></dt>
          <dd>This keyword represents the graphics elements
            that were the original input into the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element. <span class="attr-value">SourceAlpha</span> has all of the same rules
            as <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a> except that only the
            alpha channel is used. The input image is an RGBA image
            consisting of implicitly black color values for the RGB channels,
            but whose alpha channel is the same as <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a>. If this option is
            used, then some implementations might need to rasterize the
            graphics elements
            in order to extract the alpha channel.</dd>
        <dt><a id="BackgroundImage" name="BackgroundImage"><span class="attr-value">BackgroundImage</span></a></dt>
          <dd>This keyword represents an image snapshot of the canvas under
            the filter region at the time that the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element was invoked. See
            <a href="#AccessingBackgroundImage">Accessing the background
            image</a>.</dd>
        <dt><a id="BackgroundAlpha" name="BackgroundAlpha"><span class="attr-value">BackgroundAlpha</span></a></dt>
          <dd>Same as <a href="#BackgroundImage">BackgroundImage</a> except
            only the alpha channel is used. See <a href="#SourceAlpha"><span class="attr-value">SourceAlpha</span></a> and <a href="#AccessingBackgroundImage">Accessing the background
            image</a>.</dd>
</dl>
	<div class="changed">
	  <dl>
        <dt><a id="FillPaint" name="FillPaint"><span class="attr-value">FillPaint</span></a></dt>
          <dd>
	 <p> This keyword represents the target element <i>rendered filled</i>. The host language is responsible for specifying what <i>rendered filled</i> in this context means, if not specified FillPaint will be taken to mean a transparent black image. For svg this keyword represents the value of the <span class="prop-name">'fill'</span>
            property on the target element for the filter effect.</p>
<p>
	    Note that text is generally painted filled, not stroked.
</p>

	  <p>The FillPaint image has conceptually infinite extent.
	  Frequently this image is opaque everywhere, but it 
	  might not be if the "paint"
          itself has alpha, as in the case of a gradient or pattern which
          itself includes transparent or semi-transparent parts.</p>

	  </dd>
        <dt><a id="StrokePaint" name="StrokePaint"><span class="attr-value">StrokePaint</span></a></dt>
          <dd>
<p>This keyword represents the target element <i>rendered stroked</i>. The host language is responsible for specifying what <i>rendered stroked</i> in this context means, if not specified StrokePaint will be taken to mean a transparent black image. For svg this keyword represents the value of the <span class="prop-name">'stroke'</span>
            property on the target element for the filter effect.</p>
<p>
	    Note that text is generally painted filled, not stroked.
</p>

	  <p>The StrokePaint image has conceptually infinite extent.
	  Frequently this image is opaque everywhere, but it 
	  might not be if the "paint"
          itself has alpha, as in the case of a gradient or pattern which
          itself includes transparent or semi-transparent parts.</p>
          </dd>
	    </dl>
	</div>
      <span class="anim-target">Animatable:yes.</span> </dd>


</dl>
</div>

<h3 id="FilterPrimitiveSubRegion">6.3 Filter primitive subregion</h3>



<div class="changed">
  <p>All filter primitives have attributes <strong>x</strong>, <strong>y</strong>,
<strong>width</strong> and <strong>height</strong>, and <strong>mx</strong>,
<strong>my</strong>, <strong>mw</strong> and <strong>mh</strong>, which
together identify a subregion which restricts calculation and rendering of
the given filter primitive. The <strong>x</strong>, <strong>y</strong>,
<strong>width</strong> and <strong>height</strong> attributes are defined
according to the same rules as other filter primitives' coordinate and length
attributes and thus represent values in the coordinate system established by
attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element.
The <strong>mx</strong>, <strong>my</strong>, <strong>mw</strong> and
<strong>mh</strong> attributes contain deltas to the corresponding
<strong>x</strong>, <strong>y</strong>, <strong>width</strong> and
<strong>height</strong> attributes and contain values in the coordinate
system established by attribute <a href="#FilterElementPrimitiveMarginUnitsAttribute"><span class="attr-name">primitiveMarginUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element.
</p></div>


<p><strong>x</strong>, <strong>y</strong>, <strong>width</strong> and
<strong>height</strong> default to the union (i.e., tightest fitting bounding
box) of the subregions defined for all referenced nodes. If there are no
referenced nodes (e.g., for <a href="#feImageElement"><span class="element-name">'feImage'</span></a> or <a href="#feTurbulenceElement"><span class="element-name">'feTurbulence'</span></a>), or one or more of the
referenced nodes is a standard input (one of <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a>, <a href="#SourceAlpha"><span class="attr-value">SourceAlpha</span></a>, <a href="#BackgroundImage"><span class="attr-value">BackgroundImage</span></a>, <a href="#BackgroundAlpha"><span class="attr-value">BackgroundAlpha</span></a>,
<a href="#FillPaint"><span class="attr-value">FillPaint</span></a> or <a href="#StrokePaint"><span class="attr-value">StrokePaint</span></a>), or for
<a href="#feTileElement"><span class="element-name">'feTile'</span></a>
(which is special because its principal function is to replicate the
referenced node in X and Y and thereby produce a usually larger result), the
default subregion is 0%,0%,100%,100%, where percentages are relative to the
dimensions of the filter region.</p>

<div class="new">
<p>After the <strong>x</strong>, <strong>y</strong>, <strong>width</strong>,
<strong>height</strong> have been calculated for the filter primitive
subregion the margin attributes <strong>mx</strong>, <strong>my</strong>,
<strong>mw</strong>, <strong>mh</strong> are calculated and added to the
former to make the filter primitive subregion. If the filter primitive
subregion has a negative or zero width or height, the effect of the filter
primitive is disabled. </p>
</div>

<div class="changed">
<p>The filter primitive subregion act as a hard clip clipping rectangle for
the filter primitive.</p>

<p>All intermediate offscreens are defined to not exceed the intersection of
the filter primitive subregion with the <a href="#FilterEffectsRegion">filter
region</a>. The filter region and any of the filter primitive subregions are
to be set up such that all offscreens are made big enough to accommodate any
pixels which even partly intersect with either the filter region or the
filter primitive subregions.</p>

<p><a href="#feTileElement"><span class="element-name">'feTile'</span></a>
references a previous filter primitive and then stitches the tiles together
based on the filter primitive subregion of the referenced filter primitive in
order to fill its own <a href="#FilterPrimitiveSubRegion">filter primitive
subregion</a>.</p>
</div>

<div class="new">
<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/filtersubregion00.svg">filtersubregion00.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"&gt; 
	&lt;defs&gt;
		&lt;filter id="flood" x="0" y="0" width="100%" height="100%" primitiveUnits="objectBoundingBox"&gt;
		   &lt;feFlood x="25%" y="25%" width="50%" height="50%"
					flood-color="green" flood-opacity="0.75"/&gt;
		&lt;/filter&gt;
		&lt;filter id="blend" primitiveUnits="objectBoundingBox"&gt;
		   &lt;feBlend x="25%" y="25%" width="50%" height="50%"
					in2="SourceGraphic" mode="multiply"/&gt;
		&lt;/filter&gt;
		&lt;filter id="merge" primitiveUnits="objectBoundingBox"&gt;
		   &lt;feMerge x="25%" y="25%" width="50%" height="50%"&gt;
				&lt;feMergeNode in="SourceGraphic"/&gt;
				&lt;feMergeNode in="FillPaint"/&gt;
		   &lt;/feMerge&gt;
		&lt;/filter&gt;
	&lt;/defs&gt;
	
	&lt;g fill="none" stroke="blue" stroke-width="4"&gt;
	   &lt;rect width="200" height="200"/&gt;
	   &lt;line x2="200" y2="200"/&gt;
	   &lt;line x1="200" y2="200"/&gt;
	&lt;/g&gt;
	&lt;circle fill="green" filter="url(#flood)" cx="100" cy="100" r="90"/&gt;

	&lt;g transform="translate(200 0)"&gt;
		&lt;g fill="none" stroke="blue" stroke-width="4"&gt;
		   &lt;rect width="200" height="200"/&gt;
		   &lt;line x2="200" y2="200"/&gt;
		   &lt;line x1="200" y2="200"/&gt;
		&lt;/g&gt;
		&lt;circle fill="green" filter="url(#blend)" cx="100" cy="100" r="90"/&gt;
	&lt;/g&gt;
	
	&lt;g transform="translate(0 200)"&gt;
		&lt;g fill="none" stroke="blue" stroke-width="4"&gt;
		   &lt;rect width="200" height="200"/&gt;
		   &lt;line x2="200" y2="200"/&gt;
		   &lt;line x1="200" y2="200"/&gt;
		&lt;/g&gt;
		&lt;circle fill="green" fill-opacity="0.5" filter="url(#merge)" cx="100" cy="100" r="90"/&gt;
	&lt;/g&gt;
&lt;/svg&gt;    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/filtersubregion00.png" alt="Rendering of filtersubregion00.svg" />
  </div>
</div>


<p>
In the example above there are three rects that each have a cross and a circle in them. The circle element in each one has a different filter applied, but with the same filter primitive subregion. The filter output should be limited to the filter primitive subregion, so you should never see the circles themselves, just the rects that make up the filter primitive subregion. 
</p>
<ul>
<li>
The upper left rect shows an <a href="#feFloodElement"><span class="element-name">'feFlood'</span></a> with <span class="attr-name">flood-opacity</span>="<span class="attr-value">75%</span>" so the cross should be visible through the green rect in the middle.
</li>
<li>
The lower left rect shows an <a href="#feMergeElement"><span class="element-name">'feMerge'</span></a> that merges <span class="attr-value">SourceGraphic</span> with <span class="attr-value">FillPaint</span>. Since the circle has <span class="attr-name">fill-opacity</span>="<span class="attr-value">0.5</span>" it will also be transparent so that the cross is visible through the green rect in the middle.
</li>
<li>The upper right rect shows an <a href="#feBlendElement"><span class="element-name">'feBlend'</span></a> that has <span class="attr-name">mode</span>="<span class="attr-value">multiply</span>". Since the circle in this case isn't transparent the result is totally opaque. The rect should be dark green and the cross should not be visible through it.
</li>
</ul>
</div>

<h2 id="LightSourceDefinitions">7 Light source elements and properties</h2>


<h3 id="LightSourceIntro">7.1 Introduction</h3>


<p>The following sections define the elements that define a light source, <a href="#feDistantLightElement"><span class="element-name">'feDistantLight'</span></a>, <a href="#fePointLightElement"><span class="element-name">'fePointLight'</span></a> and
<a href="#feSpotLightElement"><span class="element-name">'feSpotLight'</span></a>,
and property <a href="#LightingColorProperty"><span class="prop-name">'lighting-color'</span></a>, which defines the color of the
light.</p>

<h3 id="feDistantLightElement">7.2 Light source <span class="element-name">'feDistantLight'</span></h3>


<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feDistantLightAzimuthAttribute" name="feDistantLightAzimuthAttribute"></a> <span class="adef">azimuth</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Direction angle for the light source on the XY plane (clockwise), in
      degrees.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDistantLightElevationAttribute" name="feDistantLightElevationAttribute"></a> <span class="adef">elevation</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Direction angle for the light source on the YZ plane, in degrees.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<h3 id="fePointLightElement">7.3 Light source <span class="element-name">'fePointLight'</span></h3>


<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="fePointLightXAttribute" name="fePointLightXAttribute"></a> <span class="adef">x</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>X location for the light source in the coordinate system established
      by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="fePointLightYAttribute" name="fePointLightYAttribute"></a> <span class="adef">y</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Y location for the light source in the coordinate system established
      by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="fePointLightZAttribute" name="fePointLightZAttribute"></a> <span class="adef">z</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Z location for the light source in the coordinate system established
      by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element, assuming that, in the initial coordinate system
      , the positive Z-axis comes out towards the person viewing the content
      and assuming that one unit along the Z-axis equals one unit in X or
      Y.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<h3 id="feSpotLightElement">7.4 Light source <span class="element-name">'feSpotLight'</span></h3>


<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feSpotLightXAttribute" name="feSpotLightXAttribute"></a> <span class="adef">x</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>X location for the light source in the coordinate system established
      by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightYAttribute" name="feSpotLightYAttribute"></a> <span class="adef">y</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Y location for the light source in the coordinate system established
      by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightZAttribute" name="feSpotLightZAttribute"></a> <span class="adef">z</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Z location for the light source in the coordinate system established
      by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element, assuming that, in the initial coordinate system
      , the positive Z-axis comes out towards the person viewing the content
      and assuming that one unit along the Z-axis equals one unit in X or
      Y.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightPointsAtXAttribute" name="feSpotLightPointsAtXAttribute"></a> <span class="adef">pointsAtX</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>X location in the coordinate system established by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element of the point at which the light source is pointing.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightPointsAtYAttribute" name="feSpotLightPointsAtYAttribute"></a> <span class="adef">pointsAtY</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Y location in the coordinate system established by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element of the point at which the light source is pointing.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightPointsAtZAttribute" name="feSpotLightPointsAtZAttribute"></a> <span class="adef">pointsAtZ</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Z location of the point at which the light source is pointing,
      assuming that, in the initial coordinate system
      , the positive Z-axis comes out towards the person viewing the content
      and assuming that one unit along the Z-axis equals one unit in X or
      Y.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightSpecularExponentAttribute" name="feSpotLightSpecularExponentAttribute"></a> <span class="adef">specularExponent</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Exponent value controlling the focus for the light source.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpotLightLimitingConeAngleAttribute" name="feSpotLightLimitingConeAngleAttribute"></a> <span class="adef">limitingConeAngle</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>A limiting cone which restricts the region where the light is
      projected. No light is projected outside the cone. <span class="attr-name">limitingConeAngle</span> represents the angle between
      the spot light axis (i.e. the axis between the light source and the
      point to which it is pointing at) and the spot light cone. User agents
      should apply a smoothing technique such as anti-aliasing at the
      boundary of the cone.<br></br>
      If no value is specified, then no limiting cone will be applied.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<h3 id="LightingColorProperty">7.5 The <span class="prop-name">'lighting-color'</span> property</h3>


<p>The <span class="prop-name">'lighting-color'</span> property defines the
color of the light source for filter primitives <a href="#feDiffuseLightingElement"><span class="element-name">'feDiffuseLighting'</span></a> and <a href="#feSpecularLightingElement"><span class="element-name">'feSpecularLighting'</span></a>.</p>

<div class="propdef">
<dl>
  <dt><span class="index-def" title="'margin-top'"><a class="propdef-title" id="propdef-lighting-color" name="propdef-lighting-color"><span class="prop-name">'lighting-color'</span></a></span></dt>
    <dd>
      <table cellpadding="0" cellspacing="0" class="propinfo" summary="lighting-color property">
        <tbody>
          <tr valign="baseline">
            <td><em>Value:</em>  </td>
            <td>currentColor |<br></br>
              &lt;color&gt;
              [icc-color(&lt;name&gt;[,&lt;icccolorvalue&gt;]*)] |<br></br>
              <a href="http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit noxref">inherit</span></a></td>
          </tr>
          <tr valign="baseline">
            <td><em>Initial:</em>  </td>
            <td>white</td>
          </tr>
          <tr valign="baseline">
            <td><em>Applies to:</em>  </td>
            <td><a href="#feDiffuseLightingElement"><span class="element-name">'feDiffuseLighting'</span></a> and <a href="#feSpecularLightingElement"><span class="element-name">'feSpecularLighting'</span></a>
            elements</td>
          </tr>
          <tr valign="baseline">
            <td><em>Inherited:</em>  </td>
            <td>no</td>
          </tr>
          <tr valign="baseline">
            <td><em>Percentages:</em>  </td>
            <td>N/A</td>
          </tr>
          <tr valign="baseline">
            <td><em>Media:</em>  </td>
            <td>visual</td>
          </tr>
          <tr valign="baseline">
            <td><em>Animatable:</em>  </td>
            <td>yes</td>
          </tr>
        </tbody>
      </table>
    </dd>
</dl>
</div>

<h2 id="feBlendElement">8 Filter primitive <span class="element-name">'feBlend'</span></h2>


<p>This filter composites two objects together using commonly used imaging
software blending modes. It performs a pixel-wise combination of two input
images.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feBlendModeAttribute" name="feBlendModeAttribute"></a> <span class="adef">mode</span> = "<em>normal | multiply | screen | darken |
  lighten</em>"</dt>
    <dd>One of the image blending modes (see <a href="#BlendingTable">table</a> below). Default is: normal.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feBlendIn2Attribute" name="feBlendIn2Attribute"></a> <span class="adef">in2</span> = "<em>(see <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a>
  attribute)</em>"</dt>
    <dd>The second input image to the blending operation. This attribute can
      take on the same values as the <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> attribute.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<p>For all feBlend modes, the result opacity is computed as follows:</p>
<pre>qr = 1 - (1-qa)*(1-qb)</pre>

<p>For the compositing formulas below, the following definitions apply:</p>
<pre>image A = in
image B = in2
cr = Result color (RGB) - premultiplied 
qa = Opacity value at a given pixel for image A 
qb = Opacity value at a given pixel for image B 
ca = Color (RGB) at a given pixel for image A - premultiplied 
cb = Color (RGB) at a given pixel for image B - premultiplied </pre>

<p><a id="BlendingTable" name="BlendingTable"></a>The following table
provides the list of available image blending modes:</p>

<div class="note-editor">
ED: make table look nicer</div>

<table width="500" border="1" summary="blending modes">
  <tbody>
    <tr>
      <td>Image Blending Mode</td>
      <td>Formula for computing result color</td>
    </tr>
    <tr>
      <td>normal</td>
      <td>cr = (1 - qa) * cb + ca</td>
    </tr>
    <tr>
      <td>multiply</td>
      <td>cr = (1-qa)*cb + (1-qb)*ca + ca*cb</td>
    </tr>
    <tr>
      <td>screen</td>
      <td>cr = cb + ca - ca * cb</td>
    </tr>
    <tr>
      <td>darken</td>
      <td>cr = Min ((1 - qa) * cb + ca, (1 - qb) * ca + cb)</td>
    </tr>
    <tr>
      <td>lighten</td>
      <td>cr = Max ((1 - qa) * cb + ca, (1 - qb) * ca + cb)</td>
    </tr>
  </tbody>
</table>

<p><span class="attr-value">'normal'</span> blend mode is equivalent to <a href="#feCompositeOperatorAttribute"><span class="attr-value">operator="over"</span></a> on the <a href="#feCompositeElement"><span class="element-name">'feComposite'</span></a>
filter primitive, matches the blending method used by <a href="#feMergeElement"><span class="element-name">'feMerge'</span></a> and matches
  the <a href="http://www.w3.org/TR/SVGMobile12/painting.html#CompositingSimpleAlpha">simple alpha compositing</a>
technique used in SVG for all compositing outside of filter effects.</p>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/feBlend.svg">feBlend.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="5cm" height="5cm" viewBox="0 0 500 500"
     xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
  &lt;title&gt;Example feBlend - Examples of feBlend modes&lt;/title&gt;
  &lt;desc&gt;Five text strings blended into a gradient,
        with one text string for each of the five feBlend modes.&lt;/desc&gt;
  &lt;defs&gt;
    &lt;linearGradient id="MyGradient" gradientUnits="userSpaceOnUse"
            x1="100" y1="0" x2="300" y2="0"&gt;
      &lt;stop offset="0" stop-color="#000000" /&gt;
      &lt;stop offset=".33" stop-color="#ffffff" /&gt;
      &lt;stop offset=".67" stop-color="#ff0000" /&gt;
      &lt;stop offset="1" stop-color="#808080" /&gt;
    &lt;/linearGradient&gt;
    &lt;filter id="Normal"&gt;
      &lt;feBlend mode="normal" in2="BackgroundImage" in="SourceGraphic"/&gt;
    &lt;/filter&gt;
    &lt;filter id="Multiply"&gt;
      &lt;feBlend mode="multiply" in2="BackgroundImage" in="SourceGraphic"/&gt;
    &lt;/filter&gt;
    &lt;filter id="Screen"&gt;
      &lt;feBlend mode="screen" in2="BackgroundImage" in="SourceGraphic"/&gt;
    &lt;/filter&gt;
    &lt;filter id="Darken"&gt;
      &lt;feBlend mode="darken" in2="BackgroundImage" in="SourceGraphic"/&gt;
    &lt;/filter&gt;
    &lt;filter id="Lighten"&gt;
      &lt;feBlend mode="lighten" in2="BackgroundImage" in="SourceGraphic"/&gt;
    &lt;/filter&gt;
  &lt;/defs&gt;
  &lt;rect fill="none" stroke="blue"  
        x="1" y="1" width="498" height="498"/&gt;
  &lt;g enable-background="new" &gt;
    &lt;rect x="100" y="20" width="300" height="460" fill="url(#MyGradient)" /&gt;
    &lt;g font-family="Verdana" font-size="75" fill="#888888" fill-opacity=".6" &gt;
      &lt;text x="50" y="90" filter="url(#Normal)" &gt;Normal&lt;/text&gt;
      &lt;text x="50" y="180" filter="url(#Multiply)" &gt;Multiply&lt;/text&gt;
      &lt;text x="50" y="270" filter="url(#Screen)" &gt;Screen&lt;/text&gt;
      &lt;text x="50" y="360" filter="url(#Darken)" &gt;Darken&lt;/text&gt;
      &lt;text x="50" y="450" filter="url(#Lighten)" &gt;Lighten&lt;/text&gt;
    &lt;/g&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/feBlend.png" alt="Rendering of feBlend.svg" />
  </div>
</div>


<h2 id="feColorMatrixElement">9 Filter primitive <span class="element-name">'feColorMatrix'</span></h2>


<p>This filter applies a matrix transformation:</p>
<pre>| R' |     | a00 a01 a02 a03 a04 |   | R |
| G' |     | a10 a11 a12 a13 a14 |   | G |
| B' |  =  | a20 a21 a22 a23 a24 | * | B |
| A' |     | a30 a31 a32 a33 a34 |   | A |
| 1  |     |  0   0   0   0   1  |   | 1 |</pre>

<div class="note-editor">
ED: Make this in mathml, how to export? (want same look as in
coords.html)</div>

<p>on the RGBA color and alpha values of every pixel on the input graphics to
produce a result with a new set of RGBA color and alpha values.</p>

<p>The calculations are performed on non-premultiplied color values. If the
input graphics consists of premultiplied color values, those values are
automatically converted into non-premultiplied color values for this
operation.</p>

<p>These matrices often perform an identity mapping in the alpha channel. If
that is the case, an implementation can avoid the costly undoing and redoing
of the premultiplication for all pixels with A = 1.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feColorMatrixTypeAttribute" name="feColorMatrixTypeAttribute"></a> <span class="adef">type</span> =
  "<em>matrix | saturate | hueRotate | luminanceToAlpha</em>"</dt>
    <dd>Indicates the type of matrix operation. The keyword <span class="attr-name">matrix</span> indicates that a full 5x4 matrix of
      values will be provided. The other keywords represent convenience
      shortcuts to allow commonly used color operations to be performed
      without specifying a complete matrix.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feColorMatrixValuesAttribute" name="feColorMatrixValuesAttribute"></a> <span class="adef">values</span> =
  "<em>list of &lt;number&gt;s</em>"</dt>
    <dd>The contents of <span class="attr-name">values</span> depends on the
      value of attribute <a href="#feColorMatrixTypeAttribute"><span class="attr-name">type</span></a>: 
      <ul>
        <li>For <span class="attr-value">type="matrix"</span>, <span class="attr-name">values</span> is a list of 20 matrix values (a00
          a01 a02 a03 a04 a10 a11 ... a34), separated by whitespace and/or a
          comma. For example, the identity matrix could be expressed as: 
          <pre>type="matrix" 
values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 1 0"</pre>
        </li>
        <li>For <span class="attr-value">type="saturate"</span>, <span class="attr-name">values</span> is a single real number value (0 to
          1). A <span class="attr-value">saturate</span> operation is
          equivalent to the following matrix operation: 
          <pre>| R' |     |0.213+0.787s  0.715-0.715s  0.072-0.072s 0  0 |   | R |
| G' |     |0.213-0.213s  0.715+0.285s  0.072-0.072s 0  0 |   | G |
| B' |  =  |0.213-0.213s  0.715-0.715s  0.072+0.928s 0  0 | * | B |
| A' |     |           0            0             0  1  0 |   | A |
| 1  |     |           0            0             0  0  1 |   | 1 |</pre>

          <div class="note-editor">
          ED: Make this in mathml, how to export? (want same look as in
          coords.html)</div>
        </li>
        <li>For <span class="attr-value">type="hueRotate"</span>, <span class="attr-name">values</span> is a single one real number value
          (degrees). A <span class="attr-value">hueRotate</span> operation is
          equivalent to the following matrix operation: 
          <pre>| R' |     | a00  a01  a02  0  0 |   | R |
| G' |     | a10  a11  a12  0  0 |   | G |
| B' |  =  | a20  a21  a22  0  0 | * | B |
| A' |     | 0    0    0    1  0 |   | A |
| 1  |     | 0    0    0    0  1 |   | 1 |</pre>

          <div class="note-editor">
          ED: Make this in mathml, how to export? (want same look as in
          coords.html)</div>
          where the terms a00, a01, etc. are calculated as follows: 
          <pre>| a00 a01 a02 |    [+0.213 +0.715 +0.072]
| a10 a11 a12 | =  [+0.213 +0.715 +0.072] +
| a20 a21 a22 |    [+0.213 +0.715 +0.072]
                        [+0.787 -0.715 -0.072]
cos(hueRotate value) *  [-0.213 +0.285 -0.072] +
                        [-0.213 -0.715 +0.928]
                        [-0.213 -0.715+0.928]
sin(hueRotate value) *  [+0.143 +0.140-0.283]
                        [-0.787 +0.715+0.072]</pre>

          <div class="note-editor">
          ED: Make this in mathml, how to export? (want same look as in
          coords.html)</div>
          Thus, the upper left term of the hue matrix turns out to be: 
          <pre>.213 + cos(hueRotate value)*.787 - sin(hueRotate value)*.213</pre>

          <div class="note-editor">
          ED: Make this in mathml, how to export? (want same look as in
          coords.html)</div>
        </li>
        <li>For <span class="attr-value">type="luminanceToAlpha"</span>,
          <span class="attr-name">values</span> is not applicable. A <span class="attr-value">luminanceToAlpha</span> operation is equivalent
          to the following matrix operation: 
          <pre>   | R' |     |      0        0        0  0  0 |   | R |
   | G' |     |      0        0        0  0  0 |   | G |
   | B' |  =  |      0        0        0  0  0 | * | B |
   | A' |     | 0.2125   0.7154   0.0721  0  0 |   | A |
   | 1  |     |      0        0        0  0  1 |   | 1 |</pre>

          <div class="note-editor">
          ED: Make this in mathml, how to export? (want same look as in
          coords.html)</div>
        </li>
      </ul>
      If the attribute is not specified, then the default behavior depends on
      the value of attribute <a href="#feColorMatrixTypeAttribute"><span class="attr-name">type</span></a>. If <span class="attr-value">type="matrix"</span>, then this attribute defaults
      to the identity matrix. If <span class="attr-value">type="saturate"</span>, then this attribute defaults
      to the value <span class="attr-value">1</span>, which results in the
      identify matrix. If <span class="attr-value">type="hueRotate"</span>,
      then this attribute defaults to the value <span class="attr-value">0</span>, which results in the identify matrix.<br></br>
      <span class="anim-target">Animatable:yes.</span> </dd>
</dl>
</div>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/feColorMatrix.svg">feColorMatrix.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="8cm" height="5cm" viewBox="0 0 800 500"
     xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
  &lt;title&gt;Example feColorMatrix - Examples of feColorMatrix operations&lt;/title&gt;
  &lt;desc&gt;Five text strings showing the effects of feColorMatrix: 
        an unfiltered text string acting as a reference, 
        use of the feColorMatrix matrix option to convert to grayscale,
        use of the feColorMatrix saturate option,
        use of the feColorMatrix hueRotate option,
        and use of the feColorMatrix luminanceToAlpha option.&lt;/desc&gt;
  &lt;defs&gt;
    &lt;linearGradient id="MyGradient" gradientUnits="userSpaceOnUse"
            x1="100" y1="0" x2="500" y2="0"&gt;
      &lt;stop offset="0" stop-color="#ff00ff" /&gt;
      &lt;stop offset=".33" stop-color="#88ff88" /&gt;
      &lt;stop offset=".67" stop-color="#2020ff" /&gt;
      &lt;stop offset="1" stop-color="#d00000" /&gt;
    &lt;/linearGradient&gt;
    &lt;filter id="Matrix" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feColorMatrix type="matrix" in="SourceGraphic"
           values=".33 .33 .33 0 0 
                   .33 .33 .33 0 0 
                   .33 .33 .33 0 0 
                   .33 .33 .33 0 0"/&gt;
    &lt;/filter&gt;
    &lt;filter id="Saturate40" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feColorMatrix type="saturate" in="SourceGraphic" values="40%"/&gt;
    &lt;/filter&gt;
    &lt;filter id="HueRotate90" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feColorMatrix type="hueRotate" in="SourceGraphic" values="90"/&gt;
    &lt;/filter&gt;
    &lt;filter id="LuminanceToAlpha" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feColorMatrix type="luminanceToAlpha" in="SourceGraphic" result="a"/&gt;
      &lt;feComposite in="SourceGraphic" in2="a" operator="in" /&gt;
    &lt;/filter&gt;
  &lt;/defs&gt;
  &lt;rect fill="none" stroke="blue"  
        x="1" y="1" width="798" height="498"/&gt;
  &lt;g font-family="Verdana" font-size="75" 
            font-weight="bold" fill="url(#MyGradient)" &gt;
    &lt;rect x="100" y="0" width="500" height="20" /&gt;
    &lt;text x="100" y="90"&gt;Unfiltered&lt;/text&gt;
    &lt;text x="100" y="190" filter="url(#Matrix)" &gt;Matrix&lt;/text&gt;
    &lt;text x="100" y="290" filter="url(#Saturate40)" &gt;Saturate&lt;/text&gt;
    &lt;text x="100" y="390" filter="url(#HueRotate90)" &gt;HueRotate&lt;/text&gt;
    &lt;text x="100" y="490" filter="url(#LuminanceToAlpha)" &gt;Luminance&lt;/text&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/feColorMatrix.png" alt="Rendering of feColorMatrix.svg" />
  </div>
</div>


<h2 id="feComponentTransferElement">10 Filter primitive <span class="element-name">'feComponentTransfer'</span></h2>


<p>This filter primitive performs component-wise remapping of data as
follows:</p>
<pre>R' = <a href="#feFuncRElement">feFuncR</a>( R )
G' = <a href="#feFuncGElement">feFuncG</a>( G )
B' = <a href="#feFuncBElement">feFuncB</a>( B )
A' = <a href="#feFuncAElement">feFuncA</a>( A )</pre>

<p>for every pixel. It allows operations like brightness adjustment, contrast
adjustment, color balance or thresholding.</p>

<p>The calculations are performed on non-premultiplied color values. If the
input graphics consists of premultiplied color values, those values are
automatically converted into non-premultiplied color values for this
operation. (Note that the undoing and redoing of the premultiplication can be
avoided if <a href="#feFuncAElement">feFuncA</a> is the identity transform
and all alpha values on the source graphic are set to 1.)</p>
<a id="feComponentTransferAttributes" name="feComponentTransferAttributes"></a> <a id="feFuncR" name="feFuncR"></a><a class="indexref-feFuncR#Q#_element" id="feFuncRElement" name="feFuncRElement"></a> <a id="feFuncG" name="feFuncG"></a><a class="indexref-feFuncG#Q#_element" id="feFuncGElement" name="feFuncGElement"></a> <a id="feFuncB" name="feFuncB"></a><a class="indexref-feFuncB#Q#_element" id="feFuncBElement" name="feFuncBElement"></a> <a id="feFuncA" name="feFuncA"></a><a class="indexref-feFuncA#Q#_element" id="feFuncAElement" name="feFuncAElement"></a> 
<dl>
  <dt>The specification of the transfer functions is defined by the
  sub-elements to <span class="element-name">'feComponentTransfer'</span>:</dt>
    <dd><span class="element-name">'feFuncR'</span>, transfer function for
      red component of the input graphic</dd>
    <dd><span class="element-name">'feFuncG'</span>, transfer function for
      green component of the input graphic</dd>
    <dd><span class="element-name">'feFuncB'</span>, transfer function for
      blue component of the input graphic</dd>
    <dd><span class="element-name">'feFuncA'</span>, transfer function for
      alpha component of the input graphic</dd>
</dl>

<p>The attributes below apply to sub-elements <span class="element-name">'feFuncR'</span>, <span class="element-name">'feFuncG'</span>, <span class="element-name">'feFuncB'</span> and <span class="element-name">'feFuncA'</span> define the transfer functions.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feComponentTransferTypeAttribute" name="feComponentTransferTypeAttribute"></a> <span class="adef">type</span>
  = "<em>identity | table | discrete | linear | gamma</em>"</dt>
    <dd><p>Indicates the type of component transfer function. The type of
      function determines the applicability of the other attributes.</p>
      <ul>
        <li>For <span class="attr-value">identity</span>: 
          <pre>C' = C</pre>
        </li>
        <li>For <span class="attr-value">table</span>, the function is
          defined by linear interpolation into a lookup table by attribute <a href="#feComponentTransferTableValuesAttribute"><span class="attr-name">tableValues</span></a>, which provides a list of
          <em>n+1</em> values (i.e., v<sub>0</sub> to v<sub>n</sub>) in order
          to identify <em>n</em> interpolation ranges. Interpolations use the
          following formula. 
          <p>For a value <code>C</code> pick a <code>k</code> such that:</p>
          <p class="filterformula">k/N &lt;= C &lt; (k+1)/N</p>
          <p>The result <code>C'</code> is given by:</p>
          <p class="filterformula">C' = v<sub>k</sub> + (C - k/N)*N *
          (v<sub>k+1</sub> - v<sub>k</sub>)</p>
        </li>
        <li>For <span class="attr-value">discrete</span>, the function is
          defined by the step function defined by attribute <a href="#feComponentTransferTableValuesAttribute"><span class="attr-name">tableValues</span></a>, which provides a list of
          <em>n</em> values (i.e., v<sub>0</sub> to v<sub>n-1</sub>) in order
          to identify a step function consisting of <em>n</em> steps. The
          step function is defined by the following formula. 
          <p>For a value <code>C</code> pick a <code>k</code> such that:</p>
          <p class="filterformula">k/N &lt;= C &lt; (k+1)/N</p>
          <p>The result <code>C'</code> is given by:</p>
          <p class="filterformula">C' = v<sub>k</sub></p>
        </li>
        <li>For <span class="attr-value">linear</span>, the function is
          defined by the following linear equation: 
          <p class="filterformula">C' = <a href="#feComponentTransferSlopeAttribute"><span class="attr-name">slope</span></a> * C + <a href="#feComponentTransferInterceptAttribute"><span class="attr-name">intercept</span></a></p>
        </li>
        <li>For <span class="attr-value">gamma</span>, the function is
          defined by the following exponential function: 
          <p class="filterformula">C' = <a href="#feComponentTransferAmplitudeAttribute"><span class="attr-name">amplitude</span></a> * pow(C, <a href="#feComponentTransferExponentAttribute"><span class="attr-name">exponent</span></a>) + <a href="#feComponentTransferOffsetAttribute"><span class="attr-name">offset</span></a></p>
        </li>
      </ul>
      <span class="anim-target">Animatable:yes.</span> </dd>
  <dt><a id="feComponentTransferTableValuesAttribute" name="feComponentTransferTableValuesAttribute"></a> <span class="adef">tableValues</span> = "<em>(list of &lt;number&gt;s)</em>"</dt>
    <dd>When <span class="attr-value">type="table"</span>, the list of
      &lt;number&gt;
      s <em>v0,v1,...vn</em>, separated by white space and/or a comma, which
      define the lookup table. An empty list results in an identity transfer
      function. If the attribute is not specified, then the effect is as if
      an empty list were provided.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feComponentTransferSlopeAttribute" name="feComponentTransferSlopeAttribute"></a> <span class="adef">slope</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>When <span class="attr-value">type="linear"</span>, the slope of the
      linear function.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feComponentTransferInterceptAttribute" name="feComponentTransferInterceptAttribute"></a> <span class="adef">intercept</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>When <span class="attr-value">type="linear"</span>, the intercept of
      the linear function.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feComponentTransferAmplitudeAttribute" name="feComponentTransferAmplitudeAttribute"></a> <span class="adef">amplitude</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>When <span class="attr-value">type="gamma"</span>, the amplitude of
      the gamma function.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feComponentTransferExponentAttribute" name="feComponentTransferExponentAttribute"></a> <span class="adef">exponent</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>When <span class="attr-value">type="gamma"</span>, the exponent of
      the gamma function.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feComponentTransferOffsetAttribute" name="feComponentTransferOffsetAttribute"></a> <span class="adef">offset</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>When <span class="attr-value">type="gamma"</span>, the offset of the
      gamma function.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
<dl>
  <dt><em>Attributes defined elsewhere:</em></dt>
    <dd><a href="http://www.w3.org/TR/SVGMobile12/struct.html#Core.attrib">%stdAttrs;</a>
      , <a href="#CommonAttributes">%filter_primitive_attributes_with_in;</a>,
      <a href="http://www.w3.org/TR/SVG11/styling.html#UsingPresentationAttributes">%PresentationAttributes-FilterPrimitives;</a>
      .</dd>
</dl>
</div>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/feComponentTransfer.svg">feComponentTransfer.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="8cm" height="4cm" viewBox="0 0 800 400"
     xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
  &lt;title&gt;Example feComponentTransfer - Examples of feComponentTransfer operations&lt;/title&gt;
  &lt;desc&gt;Four text strings showing the effects of feComponentTransfer: 
        an identity function acting as a reference, 
        use of the feComponentTransfer table option,
        use of the feComponentTransfer linear option,
        and use of the feComponentTransfer gamma option.&lt;/desc&gt;
  &lt;defs&gt;
    &lt;linearGradient id="MyGradient" gradientUnits="userSpaceOnUse"
            x1="100" y1="0" x2="600" y2="0"&gt;
      &lt;stop offset="0" stop-color="#ff0000" /&gt;
      &lt;stop offset=".33" stop-color="#00ff00" /&gt;
      &lt;stop offset=".67" stop-color="#0000ff" /&gt;
      &lt;stop offset="1" stop-color="#000000" /&gt;
    &lt;/linearGradient&gt;
    &lt;filter id="Identity" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feComponentTransfer&gt;
        &lt;feFuncR type="identity"/&gt;
        &lt;feFuncG type="identity"/&gt;
        &lt;feFuncB type="identity"/&gt;
        &lt;feFuncA type="identity"/&gt;
      &lt;/feComponentTransfer&gt;
    &lt;/filter&gt;
    &lt;filter id="Table" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feComponentTransfer&gt;
        &lt;feFuncR type="table" tableValues="0 0 1 1"/&gt;
        &lt;feFuncG type="table" tableValues="1 1 0 0"/&gt;
        &lt;feFuncB type="table" tableValues="0 1 1 0"/&gt;
      &lt;/feComponentTransfer&gt;
    &lt;/filter&gt;
    &lt;filter id="Linear" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feComponentTransfer&gt;
        &lt;feFuncR type="linear" slope=".5" intercept=".25"/&gt;
        &lt;feFuncG type="linear" slope=".5" intercept="0"/&gt;
        &lt;feFuncB type="linear" slope=".5" intercept=".5"/&gt;
      &lt;/feComponentTransfer&gt;
    &lt;/filter&gt;
    &lt;filter id="Gamma" filterUnits="objectBoundingBox" 
            x="0%" y="0%" width="100%" height="100%"&gt;
      &lt;feComponentTransfer&gt;
        &lt;feFuncR type="gamma" amplitude="2" exponent="5" offset="0"/&gt;
        &lt;feFuncG type="gamma" amplitude="2" exponent="3" offset="0"/&gt;
        &lt;feFuncB type="gamma" amplitude="2" exponent="1" offset="0"/&gt;
      &lt;/feComponentTransfer&gt;
    &lt;/filter&gt;
  &lt;/defs&gt;
  &lt;rect fill="none" stroke="blue"  
        x="1" y="1" width="798" height="398"/&gt;
  &lt;g font-family="Verdana" font-size="75" 
            font-weight="bold" fill="url(#MyGradient)" &gt;
    &lt;rect x="100" y="0" width="600" height="20" /&gt;
    &lt;text x="100" y="90"&gt;Identity&lt;/text&gt;
    &lt;text x="100" y="190" filter="url(#Table)" &gt;TableLookup&lt;/text&gt;
    &lt;text x="100" y="290" filter="url(#Linear)" &gt;LinearFunc&lt;/text&gt;
    &lt;text x="100" y="390" filter="url(#Gamma)" &gt;GammaFunc&lt;/text&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/feComponentTransfer.png" alt="Rendering of feComponentTransfer.svg" />
  </div>
</div>


<h2 id="feCompositeElement">11 Filter primitive <span class="element-name">'feComposite'</span></h2>


<p>This filter performs the combination of the two input images pixel-wise in
image space using one of the Porter-Duff [<a href="#ref-PORTERDUFF">PORTERDUFF</a>] compositing operations: <em>over, in,
atop, out, xor</em>. Additionally, a component-wise <em>arithmetic</em>
operation (with the result clamped between [0..1]) can be applied.</p>

<p>The <em>arithmetic</em> operation is useful for combining the output from
the <a href="#feDiffuseLightingElement"><span class="element-name">'feDiffuseLighting'</span></a> and <a href="#feSpecularLightingElement"><span class="element-name">'feSpecularLighting'</span></a> filters with texture
data. It is also useful for implementing <em>dissolve</em>. If the
<em>arithmetic</em> operation is chosen, each result pixel is computed using
the following formula:</p>
<pre>result = k1*i1*i2 + k2*i1 + k3*i2 + k4</pre>

<p>For this filter primitive, the extent of the resulting image might grow as
described in the section that describes the <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feCompositeOperatorAttribute" name="feCompositeOperatorAttribute"></a> <span class="adef">operator</span>
  = "<em>over | in | out | atop | xor | arithmetic</em>"</dt>
    <dd>The compositing operation that is to be performed. All of the <span class="attr-name">operator</span> types except <span class="attr-value">arithmetic</span> match the correspond operation as
      described in [<a href="#ref-PORTERDUFF">PORTERDUFF</a>]. The <span class="attr-value">arithmetic</span> operator is described above.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feCompositeK1Attribute" name="feCompositeK1Attribute"></a> <span class="adef">k1</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Only applicable if <span class="attr-value">operator="arithmetic"</span>.<br></br>
      If the attribute is not specified, the effect is as if a value of "0"
      were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feCompositeK2Attribute" name="feCompositeK2Attribute"></a> <span class="adef">k2</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Only applicable if <span class="attr-value">operator="arithmetic"</span>.<br></br>
      If the attribute is not specified, the effect is as if a value of "0"
      were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feCompositeK3Attribute" name="feCompositeK3Attribute"></a> <span class="adef">k3</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Only applicable if <span class="attr-value">operator="arithmetic"</span>.<br></br>
      If the attribute is not specified, the effect is as if a value of "0"
      were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feCompositeK4Attribute" name="feCompositeK4Attribute"></a> <span class="adef">k4</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Only applicable if <span class="attr-value">operator="arithmetic"</span>.<br></br>
      If the attribute is not specified, the effect is as if a value of "0"
      were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feCompositeIn2Attribute" name="feCompositeIn2Attribute"></a>
  <span class="adef">in2</span> = "<em>(see <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a>
  attribute)</em>"</dt>
    <dd>The second input image to the compositing operation. This attribute
      can take on the same values as the <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> attribute.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/feComposite.svg">feComposite.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="330" height="195" viewBox="0 0 1100 650" version="1.1"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;
  &lt;title&gt;Example feComposite - Examples of feComposite operations&lt;/title&gt;
  &lt;desc&gt;Four rows of six pairs of overlapping triangles depicting
        the six different feComposite operators under different
        opacity values and different clearing of the background.&lt;/desc&gt;
	&lt;defs&gt;
    &lt;desc&gt;Define two sets of six filters for each of the six compositing operators.
          The first set wipes out the background image by flooding with opaque white.
          The second set does not wipe out the background, with the result
          that the background sometimes shines through and is other cases
          is blended into itself (i.e., "double-counting").&lt;/desc&gt;
    &lt;filter id="overFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="over" result="comp"/&gt;
      &lt;feMerge&gt; &lt;feMergeNode in="flood"/&gt; &lt;feMergeNode in="comp"/&gt; &lt;/feMerge&gt;
    &lt;/filter&gt;
    &lt;filter id="inFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="in" result="comp"/&gt;
      &lt;feMerge&gt; &lt;feMergeNode in="flood"/&gt; &lt;feMergeNode in="comp"/&gt; &lt;/feMerge&gt;
    &lt;/filter&gt;
    &lt;filter id="outFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="out" result="comp"/&gt;
      &lt;feMerge&gt; &lt;feMergeNode in="flood"/&gt; &lt;feMergeNode in="comp"/&gt; &lt;/feMerge&gt;
    &lt;/filter&gt;
    &lt;filter id="atopFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="atop" result="comp"/&gt;
      &lt;feMerge&gt; &lt;feMergeNode in="flood"/&gt; &lt;feMergeNode in="comp"/&gt; &lt;/feMerge&gt;
    &lt;/filter&gt;
    &lt;filter id="xorFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="xor" result="comp"/&gt;
      &lt;feMerge&gt; &lt;feMergeNode in="flood"/&gt; &lt;feMergeNode in="comp"/&gt; &lt;/feMerge&gt;
    &lt;/filter&gt;
    &lt;filter id="arithmeticFlood" filterUnits="objectBoundingBox" 
            x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
                   operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/&gt;
      &lt;feMerge&gt; &lt;feMergeNode in="flood"/&gt; &lt;feMergeNode in="comp"/&gt; &lt;/feMerge&gt;
    &lt;/filter&gt;
    &lt;filter id="overNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="over" result="comp"/&gt;
    &lt;/filter&gt;
    &lt;filter id="inNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="in" result="comp"/&gt;
    &lt;/filter&gt;
    &lt;filter id="outNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="out" result="comp"/&gt;
    &lt;/filter&gt;
    &lt;filter id="atopNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="atop" result="comp"/&gt;
    &lt;/filter&gt;
    &lt;filter id="xorNoFlood" filterUnits="objectBoundingBox" x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" operator="xor" result="comp"/&gt;
    &lt;/filter&gt;
    &lt;filter id="arithmeticNoFlood" filterUnits="objectBoundingBox" 
            x="-5%" y="-5%" width="110%" height="110%"&gt;
      &lt;feComposite in="SourceGraphic" in2="BackgroundImage" result="comp"
                   operator="arithmetic" k1=".5" k2=".5" k3=".5" k4=".5"/&gt;
    &lt;/filter&gt;
    &lt;path id="Blue100" d="M 0 0 L 100 0 L 100 100 z" fill="#00ffff" /&gt;
    &lt;path id="Red100" d="M 0 0 L 0 100 L 100 0 z" fill="#ff00ff" /&gt;
    &lt;path id="Blue50" d="M 0 125 L 100 125 L 100 225 z" fill="#00ffff" fill-opacity=".5" /&gt;
    &lt;path id="Red50" d="M 0 125 L 0 225 L 100 125 z" fill="#ff00ff" fill-opacity=".5" /&gt;
    &lt;g id="TwoBlueTriangles"&gt;
      &lt;use xlink:href="#Blue100"/&gt;
      &lt;use xlink:href="#Blue50"/&gt;
    &lt;/g&gt;
    &lt;g id="BlueTriangles"&gt;
      &lt;use transform="translate(275,25)" xlink:href="#TwoBlueTriangles"/&gt;
      &lt;use transform="translate(400,25)" xlink:href="#TwoBlueTriangles"/&gt;
      &lt;use transform="translate(525,25)" xlink:href="#TwoBlueTriangles"/&gt;
      &lt;use transform="translate(650,25)" xlink:href="#TwoBlueTriangles"/&gt;
      &lt;use transform="translate(775,25)" xlink:href="#TwoBlueTriangles"/&gt;
      &lt;use transform="translate(900,25)" xlink:href="#TwoBlueTriangles"/&gt;
    &lt;/g&gt;
  &lt;/defs&gt;

  &lt;rect fill="none" stroke="blue" x="1" y="1" width="1098" height="648"/&gt;
  &lt;g font-family="Verdana" font-size="40" shape-rendering="crispEdges"&gt;
    &lt;desc&gt;Render the examples using the filters that draw on top of
          an opaque white surface, thus obliterating the background.&lt;/desc&gt;
    &lt;g enable-background="new"&gt;
      &lt;text x="15" y="75"&gt;opacity 1.0&lt;/text&gt;
      &lt;text x="15" y="115" font-size="27"&gt;(with feFlood)&lt;/text&gt;
      &lt;text x="15" y="200"&gt;opacity 0.5&lt;/text&gt;
      &lt;text x="15" y="240" font-size="27"&gt;(with feFlood)&lt;/text&gt;
      &lt;use xlink:href="#BlueTriangles"/&gt;
      &lt;g transform="translate(275,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#overFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#overFlood)" /&gt;
        &lt;text x="5" y="275"&gt;over&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(400,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#inFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#inFlood)" /&gt;
        &lt;text x="35" y="275"&gt;in&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(525,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#outFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#outFlood)" /&gt;
        &lt;text x="15" y="275"&gt;out&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(650,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#atopFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#atopFlood)" /&gt;
        &lt;text x="10" y="275"&gt;atop&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(775,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#xorFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#xorFlood)" /&gt;
        &lt;text x="15" y="275"&gt;xor&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(900,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#arithmeticFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#arithmeticFlood)" /&gt;
        &lt;text x="-25" y="275"&gt;arithmetic&lt;/text&gt;
      &lt;/g&gt;
    &lt;/g&gt;
    &lt;g transform="translate(0,325)" enable-background="new"&gt;
    &lt;desc&gt;Render the examples using the filters that do not obliterate
          the background, thus sometimes causing the background to continue
          to appear in some cases, and in other cases the background
          image blends into itself ("double-counting").&lt;/desc&gt;
      &lt;text x="15" y="75"&gt;opacity 1.0&lt;/text&gt;
      &lt;text x="15" y="115" font-size="27"&gt;(without feFlood)&lt;/text&gt;
      &lt;text x="15" y="200"&gt;opacity 0.5&lt;/text&gt;
      &lt;text x="15" y="240" font-size="27"&gt;(without feFlood)&lt;/text&gt;
      &lt;use xlink:href="#BlueTriangles"/&gt;
      &lt;g transform="translate(275,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#overNoFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#overNoFlood)" /&gt;
        &lt;text x="5" y="275"&gt;over&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(400,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#inNoFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#inNoFlood)" /&gt;
        &lt;text x="35" y="275"&gt;in&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(525,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#outNoFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#outNoFlood)" /&gt;
        &lt;text x="15" y="275"&gt;out&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(650,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#atopNoFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#atopNoFlood)" /&gt;
        &lt;text x="10" y="275"&gt;atop&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(775,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#xorNoFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#xorNoFlood)" /&gt;
        &lt;text x="15" y="275"&gt;xor&lt;/text&gt;
      &lt;/g&gt;
      &lt;g transform="translate(900,25)"&gt;
        &lt;use xlink:href="#Red100" filter="url(#arithmeticNoFlood)" /&gt;
        &lt;use xlink:href="#Red50" filter="url(#arithmeticNoFlood)" /&gt;
        &lt;text x="-25" y="275"&gt;arithmetic&lt;/text&gt;
      &lt;/g&gt;
    &lt;/g&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/feComposite.png" alt="Rendering of feComposite.svg" />
  </div>
</div>


<h2 id="feConvolveMatrixElement">12 Filter primitive <span class="element-name">'feConvolveMatrix'</span></h2>


<p>feConvolveMatrix applies a matrix convolution filter effect. A convolution
combines pixels in the input image with neighboring pixels to produce a
resulting image. A wide variety of imaging operations can be achieved through
convolutions, including blurring, edge detection, sharpening, embossing and
beveling.</p>

<p>A matrix convolution is based on an n-by-m matrix (the convolution kernel)
which describes how a given pixel value in the input image is combined with
its neighboring pixel values to produce a resulting pixel value. Each result
pixel is determined by applying the kernel matrix to the corresponding source
pixel and its neighboring pixels. The basic convolution formula which is
applied to each color value for a given pixel is:</p>

<p class="filterformula">RESULT<sub>X,Y</sub> = ( <br></br>
              SUM <sub>I=0 to [<a href="#feConvolveMatrixElementOrderAttribute">orderY</a>-1]</sub> { <br></br>
                SUM <sub>J=0 to [<a href="#feConvolveMatrixElementOrderAttribute">orderX</a>-1]</sub> { <br></br>
                  SOURCE <sub>X-<a href="#feConvolveMatrixElementTargetXAttribute">targetX</a>+J, Y-<a href="#feConvolveMatrixElementTargetYAttribute">targetY</a>+I</sub> *  <a href="#feConvolveMatrixElementKernelMatrixAttribute">kernelMatrix</a><sub><a href="#feConvolveMatrixElementOrderAttribute">orderX</a>-J-1,  <a href="#feConvolveMatrixElementOrderAttribute">orderY</a>-I-1</sub> <br></br>
                } <br></br>
              } <br></br>
            ) /  <a href="#feConvolveMatrixElementDivisorAttribute">divisor</a> +  <a href="#feConvolveMatrixElementBiasAttribute">bias</a><br></br>
</p>

<div class="note-editor">
ED: Consider making this into mathml</div>

<p>where "orderX" and "orderY" represent the X and Y values for the <a href="#feConvolveMatrixElementOrderAttribute"><span class="attr-name">order</span></a> attribute, "targetX" represents the value
of the <a href="#feConvolveMatrixElementTargetXAttribute"><span class="attr-name">targetX</span></a> attribute, "targetY" represents the
value of the <a href="#feConvolveMatrixElementTargetYAttribute"><span class="attr-name">targetY</span></a> attribute, "kernelMatrix" represents the
value of the <a href="#feConvolveMatrixElementKernelMatrixAttribute"><span class="attr-name">kernelMatrix</span></a> attribute, "divisor" represents the
value of the <a href="#feConvolveMatrixElementDivisorAttribute"><span class="attr-name">divisor</span></a> attribute, and "bias" represents the
value of the <a href="#feConvolveMatrixElementBiasAttribute"><span class="attr-name">bias</span></a> attribute.</p>

<p>Note in the above formulas that the values in the kernel matrix are
applied such that the kernel matrix is rotated 180 degrees relative to the
source and destination images in order to match convolution theory as
described in many computer graphics textbooks.</p>

<p>To illustrate, suppose you have a input image which is 5 pixels by 5
pixels, whose color values for one of the color channels are as follows:</p>
<pre>    0  20  40 235 235
  100 120 140 235 235
  200 220 240 235 235
  225 225 255 255 255
  225 225 255 255 255</pre>

<div class="note-editor">
ED: Consider making this into mathml</div>

<p>and you define a 3-by-3 convolution kernel as follows:</p>
<pre>  1 2 3
  4 5 6
  7 8 9</pre>

<div class="note-editor">
ED: Consider making this into mathml</div>

<p>Let's focus on the color value at the second row and second column of the
image (source pixel value is 120). Assuming the simplest case (where the
input image's pixel grid aligns perfectly with the kernel's pixel grid) and
assuming default values for attributes <span class="attr-name">divisor</span>, <span class="attr-name">targetX</span> and
<span class="attr-name">targetY</span>, then resulting color value will
be:</p>
<pre>(9*  0 + 8* 20 + 7* 40 +
6*100 + 5*120 + 4*140 +
3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1)</pre>

<div class="note-editor">
ED: Consider making this into mathml</div>

<p>Because they operate on pixels, matrix convolutions are inherently
resolution-dependent. To make <span class="element-name">'feConvolveMatrix</span> produce resolution-independent
results, an explicit value should be provided for either the <a href="#FilterElementFilterResAttribute"><span class="attr-name">filterRes</span></a> attribute on the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element
and/or attribute <span class="attr-name">kernelUnitLength</span>.</p>

<p><a href="#feConvolveMatrixElementKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a>, in combination with the other
attributes, defines an implicit pixel grid in the filter effects coordinate
system (i.e., the coordinate system established by the <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> attribute). If the pixel grid
established by <a href="#feConvolveMatrixElementKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a> is not scaled to match the
pixel grid established by attribute <a href="#FilterElementFilterResAttribute"><span class="attr-name">filterRes</span></a> (implicitly or explicitly), then the
input image will be temporarily rescaled to match its pixels with <a href="#feConvolveMatrixElementKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a>. The convolution happens on the
resampled image. After applying the convolution, the image is resampled back
to the original resolution.</p>

<p>When the image must be resampled to match the coordinate system defined by
<a href="#feConvolveMatrixElementKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a> prior to convolution, or
resampled to match the device coordinate system after convolution, it is
recommended that high quality viewers make use of appropriate interpolation
techniques, for example bilinear or bicubic. Depending on the speed of the
available interpolents, this choice may be affected by the <span class="prop-name">'image-rendering'</span> property setting. Note that
implementations might choose approaches that minimize or eliminate resampling
when not necessary to produce proper results, such as when the document is
zoomed out such that <span class="attr-name">kernelUnitLength</span> is
considerably smaller than a device pixel.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feConvolveMatrixElementOrderAttribute" name="feConvolveMatrixElementOrderAttribute"></a> <span class="adef">order</span> = "<span class="attr-value">&lt;number-optional-number&gt;</span>"</dt>
    <dd>Indicates the number of cells in each dimension for <span class="attr-name">kernelMatrix</span>. The values provided must be
      &lt;integer&gt;
      s greater than zero. The first number, &lt;orderX&gt;, indicates the
      number of columns in the matrix. The second number, &lt;orderY&gt;,
      indicates the number of rows in the matrix. If &lt;orderY&gt; is not
      provided, it defaults to &lt;orderX&gt;.<br></br>
      A typical value is order="3". It is recommended that only small values
      (e.g., 3) be used; higher values may result in very high CPU overhead
      and usually do not produce results that justify the impact on
      performance.<br></br>
      If the attribute is not specified, the effect is as if a value of "3"
      were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementKernelMatrixAttribute" name="feConvolveMatrixElementKernelMatrixAttribute"></a> <span class="adef">kernelMatrix</span> = "<span class="attr-value">&lt;list of
  numbers&gt;</span>"</dt>
    <dd>The list of &lt;number&gt;
      s that make up the kernel matrix for the convolution. Values are
      separated by space characters and/or a comma. The number of entries in
      the list must equal &lt;orderX&gt; times &lt;orderY&gt;.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementDivisorAttribute" name="feConvolveMatrixElementDivisorAttribute"></a> <span class="adef">divisor</span> = "<span class="attr-value">&lt;number&gt;</span>"</dt>
    <dd>After applying the <span class="attr-name">kernelMatrix</span> to the
      input image to yield a number, that number is divided by <span class="attr-name">divisor</span> to yield the final destination color
      value. A divisor that is the sum of all the matrix values tends to have
      an evening effect on the overall color intensity of the result. If the
      specified divisor is zero then the default value will be used instead.
      The default value is the sum of all values in kernelMatrix, with the
      exception that if the sum is zero, then the divisor is set to 1.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementBiasAttribute" name="feConvolveMatrixElementBiasAttribute"></a> <span class="adef">bias</span> = "<span class="attr-value">&lt;number&gt;</span>"</dt>
    <dd>After applying the <span class="attr-name">kernelMatrix</span> to the
      input image to yield a number and applying the <a href="#feConvolveMatrixElementDivisorAttribute"><span class="attr-name">divisor</span></a>, the <span class="attr-name">bias</span> attribute is added to each component. One
      application of <span class="attr-name">bias</span> is when it is
      desirable to have .5 gray value be the zero response of the filter. If
      <span class="attr-name">bias</span> is not specified, then the effect
      is as if a value of zero were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementTargetXAttribute" name="feConvolveMatrixElementTargetXAttribute"></a> <span class="adef">targetX</span> = "<span class="attr-value">&lt;integer&gt;</span>"</dt>
    <dd>Determines the positioning in X of the convolution matrix relative to
      a given target pixel in the input image. The leftmost column of the
      matrix is column number zero. The value must be such that: 0 &lt;=
      targetX &lt; orderX. By default, the convolution matrix is centered in
      X over each pixel of the input image (i.e., targetX = floor ( orderX /
      2 )).<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementTargetYAttribute" name="feConvolveMatrixElementTargetYAttribute"></a> <span class="adef">targetY</span> = "<span class="attr-value">&lt;integer&gt;</span>"</dt>
    <dd>Determines the positioning in Y of the convolution matrix relative to
      a given target pixel in the input image. The topmost row of the matrix
      is row number zero. The value must be such that: 0 &lt;= targetY &lt;
      orderY. By default, the convolution matrix is centered in Y over each
      pixel of the input image (i.e., targetY = floor ( orderY / 2 )).<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementEdgeModeAttribute" name="feConvolveMatrixElementEdgeModeAttribute"></a> <span class="adef">edgeMode</span> = "<span class="attr-value">duplicate | wrap |
  none</span>"</dt>
    <dd><p>Determines how to extend the input image as necessary with color
      values so that the matrix operations can be applied when the kernel is
      positioned at or near the edge of the input image.</p>
      <p>"duplicate" indicates that the input image is extended along each of
      its borders as necessary by duplicating the color values at the given
      edge of the input image.</p>
      <pre>Original N-by-M image, where m=M-1 and n=N-1:
          11 12 ... 1m 1M
          21 22 ... 2m 2M
          .. .. ... .. ..
          n1 n2 ... nm nM
          N1 N2 ... Nm NM
Extended by two pixels using "duplicate":
  11 11   11 12 ... 1m 1M   1M 1M
  11 11   11 12 ... 1m 1M   1M 1M
  11 11   11 12 ... 1m 1M   1M 1M
  21 21   21 22 ... 2m 2M   2M 2M
  .. ..   .. .. ... .. ..   .. ..
  n1 n1   n1 n2 ... nm nM   nM nM
  N1 N1   N1 N2 ... Nm NM   NM NM
  N1 N1   N1 N2 ... Nm NM   NM NM
  N1 N1   N1 N2 ... Nm NM   NM NM</pre>

      <div class="note-editor">
      ED: Consider making this into mathml</div>
      <p>"wrap" indicates that the input image is extended by taking the
      color values from the opposite edge of the image.</p>
      <pre>Extended by two pixels using "wrap":
  nm nM   n1 n2 ... nm nM   n1 n2
  Nm NM   N1 N2 ... Nm NM   N1 N2
  1m 1M   11 12 ... 1m 1M   11 12
  2m 2M   21 22 ... 2m 2M   21 22
  .. ..   .. .. ... .. ..   .. ..
  nm nM   n1 n2 ... nm nM   n1 n2
  Nm NM   N1 N2 ... Nm NM   N1 N2
  1m 1M   11 12 ... 1m 1M   11 12
  2m 2M   21 22 ... 2m 2M   21 22</pre>

      <div class="note-editor">
      ED: Consider making this into mathml</div>
      <p>"none" indicates that the input image is extended with pixel values
      of zero for R, G, B and A.</p>
      <p><span class="anim-target">Animatable:yes.</span></p>
    </dd>
  <dt><a id="feConvolveMatrixElementKernelUnitLengthAttribute" name="feConvolveMatrixElementKernelUnitLengthAttribute"></a> <span class="adef">kernelUnitLength</span> = "<span class="attr-value">&lt;number-optional-number&gt;</span>"</dt>
    <dd>The first number is the &lt;dx&gt; value. The second number is the
      &lt;dy&gt; value. If the &lt;dy&gt; value is not specified, it defaults
      to the same value as &lt;dx&gt;. Indicates the intended distance in
      current filter units (i.e., units as determined by the value of
      attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a>) between successive columns
      and rows, respectively, in the <span class="attr-name">kernelMatrix</span>. By specifying value(s) for <span class="attr-name">kernelUnitLength</span>, the kernel becomes defined
      in a scalable, abstract coordinate system. If <span class="attr-name">kernelUnitLength</span> is not specified, the default
      value is one pixel in the offscreen bitmap, which is a pixel-based
      coordinate system, and thus potentially not scalable. For some level of
      consistency across display media and user agents, it is necessary that
      a value be provided for at least one of <span class="attr-name">filterRes</span> and <span class="attr-name">kernelUnitLength</span>. In some implementations, the
      most consistent results and the fastest performance will be achieved if
      the pixel grid of the temporary offscreen images aligns with the pixel
      grid of the kernel.<br></br>
      If a negative or zero value is specified the default value will be used
      instead. <br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feConvolveMatrixElementPreserveAlphaAttribute" name="feConvolveMatrixElementPreserveAlphaAttribute"></a> <span class="adef">preserveAlpha</span> = "<span class="attr-value">false |
  true</span>"</dt>
    <dd>A value of <span class="attr-value">false</span> indicates that the
      convolution will apply to all channels, including the alpha channel.<br></br>
      A value of <span class="attr-value">true</span> indicates that the
      convolution will only apply to the color channels. In this case, the
      filter will temporarily unpremultiply the color component values, apply
      the kernel, and then re-premultiply at the end.<br></br>
      If <span class="attr-name">preserveAlpha</span> is not specified, then
      the effect is as if a value of <span class="attr-value">false</span>
      were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<h2 id="feDiffuseLightingElement">13 Filter primitive <span class="element-name">'feDiffuseLighting'</span></h2>


<p>This filter primitive lights an image using the alpha channel as a bump
map. The resulting image is an RGBA opaque image based on the light color
with alpha = 1.0 everywhere. The lighting calculation follows the standard
diffuse component of the Phong lighting model. The resulting image depends on
the light color, light position and surface geometry of the input bump
map.</p>

<p>The light map produced by this filter primitive can be combined with a
texture image using the multiply term of the <em>arithmetic</em> <a href="#feCompositeElement"><span class="element-name">'feComposite'</span></a> compositing method. Multiple
light sources can be simulated by adding several of these light maps together
before applying it to the texture image.</p>

<p>The formulas below make use of 3x3 filters. Because they operate on
pixels, such filters are inherently resolution-dependent. To make <span class="element-name">'feDiffuseLighting'</span> produce
resolution-independent results, an explicit value should be provided for
either the <a href="#FilterElementFilterResAttribute"><span class="attr-name">filterRes</span></a> attribute on the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element
and/or attribute <span class="attr-name">kernelUnitLength</span>.</p>

<p><a href="#feDiffuseLightingKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a>, in combination with the other
attributes, defines an implicit pixel grid in the filter effects coordinate
system (i.e., the coordinate system established by the <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> attribute). If the pixel grid
established by <a href="#feDiffuseLightingKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a> is not scaled to match the
pixel grid established by attribute <a href="#FilterElementFilterResAttribute"><span class="attr-name">filterRes</span></a> (implicitly or explicitly), then the
input image will be temporarily rescaled to match its pixels with <a href="#feDiffuseLightingKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a>. The 3x3 filters are applied to
the resampled image. After applying the filter, the image is resampled back
to its original resolution.</p>

<p>When the image must be resampled, it is recommended that high quality
viewers make use of appropriate interpolation techniques, for example
bilinear or bicubic. Depending on the speed of the available interpolents,
this choice may be affected by the <span class="prop-name">'image-rendering'</span> property setting. Note that
implementations might choose approaches that minimize or eliminate resampling
when not necessary to produce proper results, such as when the document is
zoomed out such that <span class="attr-name">kernelUnitLength</span> is
considerably smaller than a device pixel.</p>

<p>For the formulas that follow, the
<code>Norm(A<sub>x</sub>,A<sub>y</sub>,A<sub>z</sub>)</code> function is
defined as:</p>

<div class="note-editor">
ED: Consider making the following in mathml</div>

<p class="filterformula">Norm(A<sub>x</sub>,A<sub>y</sub>,A<sub>z</sub>) =
sqrt(A<sub>x</sub>^2+A<sub>y</sub>^2+A<sub>z</sub>^2)</p>

<p>The resulting RGBA image is computed as follows:</p>

<p class="filterformula">D<sub>r</sub> = k<sub>d</sub> * N.L *
L<sub>r</sub><br></br>
D<sub>g</sub> = k<sub>d</sub> * N.L * L<sub>g</sub><br></br>
D<sub>b</sub> = k<sub>d</sub> * N.L * L<sub>b</sub><br></br>
D<sub>a</sub> = 1.0</p>

<p>where</p>
<dl>
    <dd>k<sub>d</sub> = diffuse lighting constant<br></br>
      N = surface normal unit vector, a function of x and y<br></br>
      L = unit vector pointing from surface to light, a function of x and y
      in the point and spot light cases<br></br>
      L<sub>r</sub>,L<sub>g</sub>,L<sub>b</sub> = RGB components of light, a
      function of x and y in the spot light case</dd>
</dl>

<p>N is a function of x and y and depends on the surface gradient as
follows:</p>

<p>The surface described by the input alpha image A<sub>in</sub> (x,y) is:</p>

<p class="filterformula">Z (x,y) = surfaceScale * A<sub>in</sub> (x,y)</p>
<a class="indexref-feDiffuseLighting::surface_normal_calculations" name="SurfaceNormalCalculations" id="SurfaceNormalCalculations"></a> 

<p>Surface normal is calculated using the Sobel gradient 3x3 filter.
Different filter kernels are used depending on whether the given pixel is on
the interior or an edge. For each case, the formula is:</p>

<p class="filterformula">N<sub>x</sub> (x,y)= - surfaceScale *
FACTOR<sub>x</sub> *<br></br>
           (K <sub>x</sub>(0,0)*I(x-dx,y-dy) +
K<sub>x</sub>(1,0)*I(x,y-dy) + K<sub>x</sub>(2,0)*I(x+dx,y-dy) +<br></br>
            K <sub>x</sub>(0,1)*I(x-dx,y)   +
K<sub>x</sub>(1,1)*I(x,y)   + K<sub>x</sub>(2,1)*I(x+dx,y)   +<br></br>
            K <sub>x</sub>(0,2)*I(x-dx,y+dy) +
K<sub>x</sub>(1,2)*I(x,y+dy) + K<sub>x</sub>(2,2)*I(x+dx,y+dy))<br></br>
N<sub>y</sub> (x,y)= - surfaceScale * FACTOR<sub>y</sub> *<br></br>
           (K <sub>y</sub>(0,0)*I(x-dx,y-dy) +
K<sub>y</sub>(1,0)*I(x,y-dy) + K<sub>y</sub>(2,0)*I(x+dx,y-dy) +<br></br>
            K <sub>y</sub>(0,1)*I(x-dx,y)   +
K<sub>y</sub>(1,1)*I(x,y)   + K<sub>y</sub>(2,1)*I(x+dx,y)   +<br></br>
            K <sub>y</sub>(0,2)*I(x-dx,y+dy) +
K<sub>y</sub>(1,2)*I(x,y+dy) + K<sub>y</sub>(2,2)*I(x+dx,y+dy))<br></br>
N<sub>z</sub> (x,y) = 1.0<br></br>
<br></br>
N = (N<sub>x</sub>, N<sub>y</sub>, N<sub>z</sub>) /
Norm((N<sub>x</sub>,N<sub>y</sub>,N<sub>z</sub>))</p>

<p>In these formulas, the <code>dx</code> and <code>dy</code> values (e.g.,
<code>I(x-dx,y-dy)</code>), represent deltas relative to a given
<code>(x,y)</code> position for the purpose of estimating the slope of the
surface at that point. These deltas are determined by the value (explicit or
implicit) of attribute <a href="#feDiffuseLightingKernelUnitLengthAttribute"><span class="attr-name">kernelUnitLength</span></a>.</p>

<table border="1" summary="feDiffuseLighting formulas">
  <colgroup><col width="33.3%"></col><col width="33.3%"></col><col width="*"></col></colgroup>
  <tbody>
    <tr>
      <td><p>Top/left corner:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=2/(3*dx)<br></br>
        K<sub>x</sub> =<br></br>
            |  0  0  0 |<br></br>
            |  0 -2  2 |<br></br>
            |  0 -1  1 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=2/(3*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            |  0  0  0 |<br></br>
            |  0 -2 -1 |<br></br>
            |  0  2  1 |</p>
      </td>
      <td><p>Top row:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=1/(3*dx)<br></br>
        K<sub>x</sub> =<br></br>
            |  0  0  0 |<br></br>
            | -2  0  2 |<br></br>
            | -1  0  1 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=1/(2*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            |  0  0  0 |<br></br>
            | -1 -2 -1 |<br></br>
            |  1  2  1 |</p>
      </td>
      <td><p>Top/right corner:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=2/(3*dx)<br></br>
        K<sub>x</sub> =<br></br>
            |  0  0  0 |<br></br>
            | -2  2  0 |<br></br>
            | -1  1  0 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=2/(3*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            |  0  0  0 |<br></br>
            | -1 -2  0 |<br></br>
            |  1  2  0 |</p>
      </td>
    </tr>
    <tr>
      <td><p>Left column:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=1/(2*dx)<br></br>
        K<sub>x</sub> =<br></br>
            | 0 -1  1 |<br></br>
            | 0 -2  2 |<br></br>
            | 0 -1  1 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=1/(3*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            |  0 -2 -1 |<br></br>
            |  0  0  0 |<br></br>
            |  0  2  1 |</p>
      </td>
      <td><p>Interior pixels:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=1/(4*dx)<br></br>
        K<sub>x</sub> =<br></br>
            | -1  0  1 |<br></br>
            | -2  0  2 |<br></br>
            | -1  0  1 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=1/(4*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            | -1 -2 -1 |<br></br>
            |  0  0  0 |<br></br>
            |  1  2  1 |</p>
      </td>
      <td><p>Right column:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=1/(2*dx)<br></br>
        K<sub>x</sub> =<br></br>
            | -1  1  0|<br></br>
            | -2  2  0|<br></br>
            | -1  1  0|<br></br>
        <br></br>
        FACTOR<sub>y</sub>=1/(3*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            | -1 -2  0 |<br></br>
            |  0  0  0 |<br></br>
            |  1  2  0 |</p>
      </td>
    </tr>
    <tr>
      <td><p>Bottom/left corner:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=2/(3*dx)<br></br>
        K<sub>x</sub> =<br></br>
            | 0 -1  1 |<br></br>
            | 0 -2  2 |<br></br>
            | 0  0  0 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=2/(3*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            |  0 -2 -1 |<br></br>
            |  0  2  1 |<br></br>
            |  0  0  0 |</p>
      </td>
      <td><p>Bottom row:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=1/(3*dx)<br></br>
        K<sub>x</sub> =<br></br>
            | -1  0  1 |<br></br>
            | -2  0  2 |<br></br>
            |  0  0  0 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=1/(2*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            | -1 -2 -1 |<br></br>
            |  1  2  1 |<br></br>
            |  0  0  0 |</p>
      </td>
      <td><p>Bottom/right corner:</p>

        <p class="filterformula">FACTOR<sub>x</sub>=2/(3*dx)<br></br>
        K<sub>x</sub> =<br></br>
            | -1  1  0 |<br></br>
            | -2  2  0 |<br></br>
            |  0  0  0 |<br></br>
        <br></br>
        FACTOR<sub>y</sub>=2/(3*dy)<br></br>
        K<sub>y</sub> =  <br></br>
            | -1 -2  0 |<br></br>
            |  1  2  0 |<br></br>
            |  0  0  0 |</p>
      </td>
    </tr>
  </tbody>
</table>

<p>L, the unit vector from the image sample to the light, is calculated as
follows:</p>

<p>For Infinite light sources it is constant:</p>

<p class="filterformula">L<sub>x</sub> = cos(azimuth)*cos(elevation)<br></br>
L<sub>y</sub> = sin(azimuth)*cos(elevation)<br></br>
L<sub>z</sub> = sin(elevation)</p>

<p>For Point and spot lights it is a function of position:</p>

<p class="filterformula">L<sub>x</sub> = Light<sub>x</sub> - x<br></br>
L<sub>y</sub> = Light<sub>y</sub> - y<br></br>
L<sub>z</sub> = Light<sub>z</sub> - Z(x,y)<br></br>
<br></br>
L = (L<sub>x</sub>, L<sub>y</sub>, L<sub>z</sub>) / Norm(L<sub>x</sub>,
L<sub>y</sub>, L<sub>z</sub>)</p>

<p>where Light<sub>x</sub>, Light<sub>y</sub>, and Light<sub>z</sub> are the
input light position.</p>

<p>L<sub>r</sub>,L<sub>g</sub>,L<sub>b</sub>, the light color vector, is a
function of position in the spot light case only:</p>

<p class="filterformula">L<sub>r</sub> =
Light<sub>r</sub>*pow((-L.S),specularExponent)<br></br>
L<sub>g</sub> = Light<sub>g</sub>*pow((-L.S),specularExponent)<br></br>
L<sub>b</sub> = Light<sub>b</sub>*pow((-L.S),specularExponent)</p>

<p>where S is the unit vector pointing from the light to the point
(pointsAtX, pointsAtY, pointsAtZ) in the x-y plane:</p>

<p class="filterformula">S<sub>x</sub> = pointsAtX - Light<sub>x</sub><br></br>
S<sub>y</sub> = pointsAtY - Light<sub>y</sub><br></br>
S<sub>z</sub> = pointsAtZ - Light<sub>z</sub><br></br>
<br></br>
S = (S<sub>x</sub>, S<sub>y</sub>, S<sub>z</sub>) / Norm(S<sub>x</sub>,
S<sub>y</sub>, S<sub>z</sub>)</p>

<p>If L.S is positive, no light is present. (L<sub>r</sub> = L<sub>g</sub> =
L<sub>b</sub> = 0)</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feDiffuseLightingSurfaceScaleAttribute" name="feDiffuseLightingSurfaceScaleAttribute"></a> <span class="adef">surfaceScale</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>height of surface when A<sub>in</sub> = 1.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDiffuseLightingDiffuseConstantAttribute" name="feDiffuseLightingDiffuseConstantAttribute"></a> <span class="adef">diffuseConstant</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>kd in Phong lighting model. In SVG, this can be any non-negative
      number.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDiffuseLightingKernelUnitLengthAttribute" name="feDiffuseLightingKernelUnitLengthAttribute"></a> <span class="adef">kernelUnitLength</span> = "<span class="attr-value">&lt;number-optional-number&gt;</span>"</dt>
    <dd>The first number is the &lt;dx&gt; value. The second number is the
      &lt;dy&gt; value. If the &lt;dy&gt; value is not specified, it defaults
      to the same value as &lt;dx&gt;. Indicates the intended distance in
      current filter units (i.e., units as determined by the value of
      attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a>) for <code>dx</code> and
      <code>dy</code>, respectively, in the <a href="#SurfaceNormalCalculations">surface normal calculation
      formulas</a>. By specifying value(s) for <span class="attr-name">kernelUnitLength</span>, the kernel becomes defined
      in a scalable, abstract coordinate system. If <span class="attr-name">kernelUnitLength</span> is not specified, the
      <code>dx</code> and <code>dy</code> values should represent very small
      deltas relative to a given <code>(x,y)</code> position, which might be
      implemented in some cases as one pixel in the intermediate image
      offscreen bitmap, which is a pixel-based coordinate system, and thus
      potentially not scalable. For some level of consistency across display
      media and user agents, it is necessary that a value be provided for at
      least one of <span class="attr-name">filterRes</span> and <span class="attr-name">kernelUnitLength</span>. Discussion of intermediate
      images are in the <a href="#introduction">Introduction</a> and in the
      description of attribute <a href="#FilterElementFilterResAttribute"><span class="attr-name">filterRes</span></a>.<br></br>
      If a negative or zero value is specified the default value will be used
      instead. <br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<p>The light source is defined by one of the child elements <a href="#feDistantLightElement"><span class="element-name">'feDistantLight'</span></a>, <a href="#fePointLightElement"><span class="element-name">'fePointLight'</span></a> or <a href="#feSpotLightElement"><span class="element-name">'feSpotLight'</span></a>. The light color is specified
by property <a href="#LightingColorProperty"><span class="prop-name">'lighting-color'</span></a>.</p>

<h2 id="feDisplacementMapElement">14 Filter primitive <span class="element-name">'feDisplacementMap'</span></h2>


<p>This filter primitive uses the pixels values from the image from <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a>
to spatially displace the image from <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a>.
This is the transformation to be performed:</p>

<div class="changed">
<pre>	P'(x,y) ← P( x + scale * (XC(x,y) - .5), y + scale * (YC(x,y) - .5))
	</pre>
</div>

<p>where P(x,y) is the input image, <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a>, and
P'(x,y) is the destination. XC(x,y) and YC(x,y) are the component values of
the designated by the <em>xChannelSelector</em> and
<em>yChannelSelector</em>. For example, to use the R component of <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a>
to control displacement in x and the G component of Image2 to control
displacement in y, set <em>xChannelSelector</em> to "R" and
<em>yChannelSelector</em> to "G".</p>

<div class="changed">
<p>The displacement map, <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a>, defines the inverse of the mapping
performed.</p>
</div>

<p>The calculations using the pixel values from <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a>
are performed using non-premultiplied color values. If the image from <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a>
consists of premultiplied color values, those values are automatically
converted into non-premultiplied color values before performing this
operation.</p>

<p>This filter can have arbitrary non-localized effect on the input which
might require substantial buffering in the processing pipeline. However with
this formulation, any intermediate buffering needs can be determined by
<em>scale</em> which represents the maximum range of displacement in either x
or y.</p>

<p>When applying this filter, the source pixel location will often lie
between several source pixels. In this case it is recommended that high
quality viewers apply an interpolent on the surrounding pixels, for example
bilinear or bicubic, rather than simply selecting the nearest source pixel.
Depending on the speed of the available interpolents, this choice may be
affected by the <span class="prop-name">'image-rendering'</span> property
setting.</p>

<p>The <span class="prop-name">'color-interpolation-filters'</span> property
only applies to the <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a> source image and does not apply to the <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a>
source image.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feDisplacementMapScaleAttribute" name="feDisplacementMapScaleAttribute"></a> <span class="adef">scale</span>
  = "<em>&lt;number&gt;</em>"</dt>
    <dd>Displacement scale factor. The amount is expressed in the coordinate
      system established by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      When the value of this attribute is <span class="attr-value">0</span>,
      this operation has no effect on the source image.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDisplacementMapXChannelSelectorAttribute" name="feDisplacementMapXChannelSelectorAttribute"></a> <span class="adef">xChannelSelector</span> = "<em>R | G | B | A</em>"</dt>
    <dd>Indicates which channel from <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a> to use to displace the pixels in <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> along the x-axis.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDisplacementMapYChannelSelectorAttribute" name="feDisplacementMapYChannelSelectorAttribute"></a> <span class="adef">yChannelSelector</span> = "<em>R | G | B | A</em>"</dt>
    <dd>Indicates which channel from <a href="#feDisplacementMapIn2Attribute"><span class="attr-name">in2</span></a> to use to displace the pixels in <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> along the y-axis.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDisplacementMapIn2Attribute" name="feDisplacementMapIn2Attribute"></a> <span class="adef">in2</span> =
  "<em>(see <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> attribute)</em>"</dt>
    <dd>The second input image, which is used to displace the pixels in the
      image from attribute <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a>. This attribute can take on the same
      values as the <a href="#FilterPrimitiveInAttribute"><span class="attr-name">in</span></a> attribute.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<h2 id="feFloodElement">15 Filter primitive <span class="element-name">'feFlood'</span></h2>


<p>This filter primitive creates a rectangle filled with the color and
opacity values from properties <span class="prop-name">'flood-color'</span>
and <span class="prop-name">'flood-opacity'</span>. The rectangle is as large
as the <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>
established by the <span class="element-name">'feFlood'</span> element.</p>

<div class="adef-list">
  </div>

<p>The <span class="prop-name">'flood-color'</span> property indicates what
color to use to flood the current <a href="#FilterPrimitiveSubRegion">filter
primitive subregion</a>. The keyword <span class="attr-value">currentColor</span> and ICC colors can be specified in the
same manner as within a &lt;paint&gt; specification for the <span class="prop-name">'fill'</span> and <span class="prop-name">'stroke'</span>
properties.</p>
<a class="indexref-flood-color#Q#_property" id="FloodColorProperty" name="FloodColorProperty"></a> 

<div class="propdef">
<dl>
  <dt><span class="index-def" title="'margin-top'"><a class="propdef-title" id="propdef-flood-color" name="propdef-flood-color"><span class="prop-name">'flood-color'</span></a></span></dt>
    <dd>
      <table cellpadding="0" cellspacing="0" class="propinfo" summary="flood-color property">
        <tbody>
          <tr valign="baseline">
            <td><em>Value:</em>  </td>
            <td>currentColor |<br></br>
              &lt;color&gt;
              [icc-color(&lt;name&gt;[,&lt;icccolorvalue&gt;]*)] |<br></br>
              <a href="http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit noxref">inherit</span></a></td>
          </tr>
          <tr valign="baseline">
            <td><em>Initial:</em>  </td>
            <td>black</td>
          </tr>
          <tr valign="baseline">
            <td><em>Applies to:</em>  </td>
            <td><a href="#feFloodElement"><span class="element-name">'feFlood'</span></a> and <a href="#feDropShadowElement"><span class="element-name">'feDropShadow'</span></a> elements</td>
          </tr>
          <tr valign="baseline">
            <td><em>Inherited:</em>  </td>
            <td>no</td>
          </tr>
          <tr valign="baseline">
            <td><em>Percentages:</em>  </td>
            <td>N/A</td>
          </tr>
          <tr valign="baseline">
            <td><em>Media:</em>  </td>
            <td>visual</td>
          </tr>
          <tr valign="baseline">
            <td><em>Animatable:</em>  </td>
            <td>yes</td>
          </tr>
        </tbody>
      </table>
    </dd>
</dl>
</div>

<p>The <span class="prop-name">'flood-opacity'</span> property defines the
opacity value to use across the entire <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a>.</p>
<a class="indexref-opacity::flood-opacity#Q#_property" id="OpacityFloodOpacityProperty" name="OpacityFloodOpacityProperty"></a> <a class="indexref-flood-opacity#Q#_property" id="FloodOpacityProperty" name="FloodOpacityProperty"></a> 

<div class="propdef">
<dl>
  <dt><span class="index-def" title="'margin-top'"><a class="propdef-title" id="propdef-flood-opacity" name="propdef-flood-opacity"><span class="prop-name">'flood-opacity'</span></a></span></dt>
    <dd>
      <table cellpadding="0" cellspacing="0" class="propinfo" summary="flood-opacity property">
        <tbody>
          <tr valign="baseline">
            <td><em>Value:</em>  </td>
            <td>&lt;opacity-value&gt; | <a href="http://www.w3.org/TR/REC-CSS2/cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit noxref">inherit</span></a></td>
          </tr>
          <tr valign="baseline">
            <td><em>Initial:</em>  </td>
            <td>1</td>
          </tr>
          <tr valign="baseline">
            <td><em>Applies to:</em>  </td>
            <td><a href="#feFloodElement"><span class="element-name">'feFlood'</span></a> and <a href="#feDropShadowElement"><span class="element-name">'feDropShadow'</span></a> elements</td>
          </tr>
          <tr valign="baseline">
            <td><em>Inherited:</em>  </td>
            <td>no</td>
          </tr>
          <tr valign="baseline">
            <td><em>Percentages:</em>  </td>
            <td>N/A</td>
          </tr>
          <tr valign="baseline">
            <td><em>Media:</em>  </td>
            <td>visual</td>
          </tr>
          <tr valign="baseline">
            <td><em>Animatable:</em>  </td>
            <td>yes</td>
          </tr>
        </tbody>
      </table>
    </dd>
</dl>
</div>

<h2 id="feGaussianBlurElement">16 Filter primitive <span class="element-name">'feGaussianBlur'</span></h2>


<p>This filter primitive performs a Gaussian blur on the input image.</p>

<p>The Gaussian blur kernel is an approximation of the normalized
convolution:</p>

<p class="filterformula">H(x) = exp(-x<sup>2</sup>/ (2s<sup>2</sup>)) /
sqrt(2* pi*s<sup>2</sup>)</p>

<p>where 's' is the standard deviation specified by <a href="#feGaussianBlurStdDeviationAttribute"><span class="attr-name">stdDeviation</span></a>.</p>

<p>The value of <a href="#feGaussianBlurStdDeviationAttribute"><span class="attr-name">stdDeviation</span></a> can be either one or two numbers.
If two numbers are provided, the first number represents a standard deviation
value along the x-axis of the current coordinate system and the second value
represents a standard deviation in Y. If one number is provided, then that
value is used for both X and Y.</p>

<p>Even if only one value is provided for <a href="#feGaussianBlurStdDeviationAttribute"><span class="attr-name">stdDeviation</span></a>, this can be implemented as a
separable convolution.</p>

<p>For larger values of 's' (s &gt;= 2.0), an approximation can be used:
Three successive box-blurs build a piece-wise quadratic convolution kernel,
which approximates the Gaussian kernel to within roughly 3%.</p>

<p class="filterformula">let d = floor(s * 3*sqrt(2*pi)/4 + 0.5)</p>

<p>... if d is odd, use three box-blurs of size 'd', centered on the output
pixel.</p>

<p>... if d is even, two box-blurs of size 'd' (the first one centered on the
pixel boundary between the output pixel and the one to the left, the second
one centered on the pixel boundary between the output pixel and the one to
the right) and one box blur of size 'd+1' centered on the output pixel.</p>

<p>Frequently this operation will take place on alpha-only images, such as
that produced by the built-in input, <a href="#SourceAlpha"><span class="attr-value">SourceAlpha</span></a>. The implementation may notice this
and optimize the single channel case. If the input has infinite extent and is
constant, this operation has no effect. If the input has infinite extent and
is a tile, the filter is evaluated with periodic boundary conditions.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feGaussianBlurStdDeviationAttribute" name="feGaussianBlurStdDeviationAttribute"></a> <span class="adef">stdDeviation</span> =
  "<em>&lt;number-optional-number&gt;</em>"</dt>
    <dd>The standard deviation for the blur operation. If two &lt;number&gt;
      s are provided, the first number represents a standard deviation value
      along the x-axis of the coordinate system established by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element. The second value represents a standard deviation in Y. If one
      number is provided, then that value is used for both X and Y.<br></br>
      A negative or zero value disables the effect of the given filter
      primitive (i.e., the result is a transparent black image).<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<p><a href="#AnExample">The example</a> at the start of this chapter makes
use of the <span class="element-name">feGaussianBlur</span> filter primitive
to create a drop shadow effect.</p>

<h2 id="feImageElement">17 Filter primitive <span class="element-name">'feImage'</span></h2>


<p>This filter primitive refers to a graphic external to this filter element,
which is loaded or rendered into an RGBA raster and becomes the result of the
filter primitive.</p>

<p>This filter primitive can refer to an external image or can be a reference
to another piece of SVG. It produces an image similar to the built-in image
source <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a> except that the graphic comes
from an external source.</p>

<p>If the <span class="attr-name">xlink:href</span> references a stand-alone
image resource such as a JPEG, PNG or SVG file, then the image resource is
rendered according to the behavior of the <span class="element-name">'image'</span> element; otherwise, the referenced
resource is rendered according to the behavior of the <span class="element-name">'use'</span> element. In either case, the current user
coordinate system depends on the value of attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a> element.
The processing of the <span class="attr-name">preserveAspectRatio</span>
attribute on the <span class="element-name">'feImage'</span> element is
identical to that of the <a href="/TR/SVGMobile12/struct.html#ImageElement"><span class="element-name">'image'</span></a> element.</p>

<p>When the referenced image must be resampled to match the device coordinate
system, it is recommended that high quality viewers make use of appropriate
interpolation techniques, for example bilinear or bicubic. Depending on the
speed of the available interpolents, this choice may be affected by the <span class="prop-name">'image-rendering'</span> property setting.</p>

<div class="adef-list">
  </div>

<h2 id="feMergeElement">18 Filter primitive <span class="element-name">'feMerge'</span></h2>


<p>This filter primitive composites input image layers on top of each other
using the <em>over</em> operator with <em>Input1</em> (corresponding to the
first <a href="#feMergeNodeElement"><span class="element-name">'feMergeNode'</span></a> child element) on the bottom
and the last specified input, <em>InputN</em> (corresponding to the last <a href="#feMergeNodeElement"><span class="element-name">'feMergeNode'</span></a> child element), on top.</p>

<p>Many effects produce a number of intermediate layers in order to create
the final output image. This filter allows us to collapse those into a single
image. Although this could be done by using n-1 Composite-filters, it is more
convenient to have this common operation available in this form, and offers
the implementation some additional flexibility.</p>

<p>Each 'feMerge' element can have any number of 'feMergeNode' subelements,
each of which has an <a href="#CommonAttributes"><span class="attr-name">in</span></a> attribute.</p>

<p>The canonical implementation of feMerge is to render the entire effect
into one RGBA layer, and then render the resulting layer on the output
device. In certain cases (in particular if the output device itself is a
continuous tone device), and since merging is associative, it might be a
sufficient approximation to evaluate the effect one layer at a time and
render each layer individually onto the output device bottom to top.</p>

<p>If the topmost image input is <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a> and this <span class="element-name">'feMerge'</span> is the last filter primitive in the
filter, the implementation is encouraged to render the layers up to that
point, and then render the <a href="#SourceGraphic"><span class="attr-value">SourceGraphic</span></a> directly from its vector
description on top.</p>
<a id="feMergeNode" name="feMergeNode"></a> <a class="indexref-feMergeNode#Q#_element" id="feMergeNodeElement" name="feMergeNodeElement"></a> 

<div class="adef-list">
  </div>

<p><a href="#AnExample">The example</a> at the start of this chapter makes
use of the <span class="element-name">feMerge</span> filter primitive to
composite two intermediate filter results together.</p>

<h2 id="feMorphologyElement">19 Filter primitive <span class="element-name">'feMorphology'</span></h2>


<p>This filter primitive performs "fattening" or "thinning" of artwork. It is
particularly useful for fattening or thinning an alpha channel.</p>

<p>The dilation (or erosion) kernel is a rectangle with a width of
2*<em>x-radius</em> and a height of 2*<em>y-radius</em>. In dilation, the
output pixel is the individual component-wise maximum of the corresponding
R,G,B,A values in the input image's kernel rectangle. In erosion, the output
pixel is the individual component-wise minimum of the corresponding R,G,B,A
values in the input image's kernel rectangle.</p>

<p>Frequently this operation will take place on alpha-only images, such as
that produced by the built-in input, <a href="#SourceAlpha"><span class="attr-value">SourceAlpha</span></a>. In that case, the implementation
might want to optimize the single channel case.</p>

<p>If the input has infinite extent and is constant, this operation has no
effect. If the input has infinite extent and is a tile, the filter is
evaluated with periodic boundary conditions.</p>

<p>Because <span class="element-name">'feMorphology'</span> operates on
premultipied color values, it will always result in color values less than or
equal to the alpha channel.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feMorphologyOperatorAttribute" name="feMorphologyOperatorAttribute"></a> <span class="adef">operator</span> = "<em>erode | dilate</em>"</dt>
    <dd>A keyword indicating whether to erode (i.e., thin) or dilate (fatten)
      the source graphic.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feMorphologyRadiusAttribute" name="feMorphologyRadiusAttribute"></a> <span class="adef">radius</span> =
  "<em>&lt;number-optional-number&gt;</em>"</dt>
    <dd>The radius (or radii) for the operation. If two &lt;number&gt;
      s are provided, the first number represents a x-radius and the second
      value represents a y-radius. If one number is provided, then that value
      is used for both X and Y. The values are in the coordinate system
      established by attribute <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      A negative or zero value disables the effect of the given filter
      primitive (i.e., the result is a transparent black image).<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/feMorphology.svg">feMorphology.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="5cm" height="7cm" viewBox="0 0 700 500"
     xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
  &lt;title&gt;Example feMorphology - Examples of erode and dilate&lt;/title&gt;
  &lt;desc&gt;Five text strings drawn as outlines.
        The first is unfiltered. The second and third use 'erode'.
        The fourth and fifth use 'dilate'.&lt;/desc&gt;
  &lt;defs&gt;
    &lt;filter id="Erode3"&gt;
      &lt;feMorphology operator="erode" in="SourceGraphic" radius="3" /&gt;
    &lt;/filter&gt;
    &lt;filter id="Erode6"&gt;
      &lt;feMorphology operator="erode" in="SourceGraphic" radius="6" /&gt;
    &lt;/filter&gt;
    &lt;filter id="Dilate3"&gt;
      &lt;feMorphology operator="dilate" in="SourceGraphic" radius="3" /&gt;
    &lt;/filter&gt;
    &lt;filter id="Dilate6"&gt;
      &lt;feMorphology operator="dilate" in="SourceGraphic" radius="6" /&gt;
    &lt;/filter&gt;
  &lt;/defs&gt;
  &lt;rect fill="none" stroke="blue" stroke-width="2"  
        x="1" y="1" width="698" height="498"/&gt;
  &lt;g enable-background="new" &gt;
    &lt;g font-family="Verdana" font-size="75" 
              fill="none" stroke="black" stroke-width="6" &gt;
      &lt;text x="50" y="90"&gt;Unfiltered&lt;/text&gt;
      &lt;text x="50" y="180" filter="url(#Erode3)" &gt;Erode radius 3&lt;/text&gt;
      &lt;text x="50" y="270" filter="url(#Erode6)" &gt;Erode radius 6&lt;/text&gt;
      &lt;text x="50" y="360" filter="url(#Dilate3)" &gt;Dilate radius 3&lt;/text&gt;
      &lt;text x="50" y="450" filter="url(#Dilate6)" &gt;Dilate radius 6&lt;/text&gt;
    &lt;/g&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/feMorphology.png" alt="Rendering of feMorphology.svg" />
  </div>
</div>


<h2 id="feOffsetElement">20 Filter primitive <span class="element-name">'feOffset'</span></h2>


<p>This filter primitive offsets the input image relative to its current
position in the image space by the specified vector.</p>

<p>This is important for effects like drop shadows.</p>

<p>When applying this filter, the destination location may be offset by a
fraction of a pixel in device space. In this case a high quality viewer
should make use of appropriate interpolation techniques, for example bilinear
or bicubic. This is especially recommended for dynamic viewers where this
interpolation provides visually smoother movement of images. For static
viewers this is less of a concern. Close attention should be made to the
<span class="prop-name">'image-rendering'</span> property setting to
determine the authors intent.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feOffsetDxAttribute" name="feOffsetDxAttribute"></a> <span class="adef">dx</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>The amount to offset the input graphic along the x-axis. The offset
      amount is expressed in the coordinate system established by attribute
      <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feOffsetDyAttribute" name="feOffsetDyAttribute"></a> <span class="adef">dy</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>The amount to offset the input graphic along the y-axis. The offset
      amount is expressed in the coordinate system established by attribute
      <a href="#FilterElementPrimitiveUnitsAttribute"><span class="attr-name">primitiveUnits</span></a> on the <a href="#FilterElement"><span class="element-name">'filter'</span></a>
      element.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<p><a href="#AnExample">The example</a> at the start of this chapter makes
use of the <span class="element-name">feOffset</span> filter primitive to
offset the drop shadow from the original source graphic.</p>

<h2 id="feSpecularLightingElement">21 Filter primitive <span class="element-name">'feSpecularLighting'</span></h2>


<p>This filter primitive lights a source graphic using the alpha channel as a
bump map. The resulting image is an RGBA image based on the light color. The
lighting calculation follows the standard specular component of the Phong
lighting model. The resulting image depends on the light color, light
position and surface geometry of the input bump map. The result of the
lighting calculation is added. The filter primitive assumes that the viewer
is at infinity in the z direction (i.e., the unit vector in the eye direction
is (0,0,1) everywhere).</p>

<p>This filter primitive produces an image which contains the specular
reflection part of the lighting calculation. Such a map is intended to be
combined with a texture using the <em>add</em> term of the
<em>arithmetic</em> <a href="#feCompositeElement"><span class="element-name">'feComposite'</span></a> method. Multiple light sources
can be simulated by adding several of these light maps before applying it to
the texture image.</p>

<p>The resulting RGBA image is computed as follows:</p>

<p class="filterformula">S<sub>r</sub> = k<sub>s</sub> * pow(N.H,
specularExponent) * L<sub>r<br></br>
</sub> S<sub>g</sub> = k<sub>s</sub> * pow(N.H, specularExponent) *
L<sub>g<br></br>
</sub> S<sub>b</sub> = k<sub>s</sub> * pow(N.H, specularExponent) *
L<sub>b<br></br>
</sub> S<sub>a</sub> = max(S<sub>r,</sub> S<sub>g,</sub> S<sub>b</sub>)</p>

<p>where</p>
<dl>
    <dd>k<sub>s</sub> = specular lighting constant<br></br>
      N = surface normal unit vector, a function of x and y<br></br>
      H = "halfway" unit vector between eye unit vector and light unit
      vector<br></br>
      <br></br>
      L<sub>r</sub>,L<sub>g</sub>,L<sub>b</sub> = RGB components of light</dd>
</dl>

<p>See <a href="#feDiffuseLightingElement"><span class="element-name">'feDiffuseLighting'</span></a> for definition of N and
(L<sub>r</sub>, L<sub>g</sub>, L<sub>b</sub>).</p>

<p>The definition of H reflects our assumption of the constant eye vector E =
(0,0,1):</p>

<p class="filterformula">H = (L + E) / Norm(L+E)</p>

<p>where L is the light unit vector.</p>

<p>Unlike the <a href="#feDiffuseLightingElement"><span class="element-name">'feDiffuseLighting'</span></a>, the <span class="element-name">'feSpecularLighting'</span> filter produces a non-opaque
image. This is due to the fact that the specular result
(S<sub>r</sub>,S<sub>g</sub>,S<sub>b</sub>,S<sub>a</sub>) is meant to be
added to the textured image. The alpha channel of the result is the max of
the color components, so that where the specular light is zero, no additional
coverage is added to the image and a fully white highlight will add
opacity.</p>

<p>The <a href="#feDiffuseLightingElement"><span class="element-name">'feDiffuseLighting'</span></a> and <span class="element-name">'feSpecularLighting'</span> filters will often be
applied together. An implementation may detect this and calculate both maps
in one pass, instead of two.</p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feSpecularLightingSurfaceScaleAttribute" name="feSpecularLightingSurfaceScaleAttribute"></a> <span class="adef">surfaceScale</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>height of surface when A<sub>in</sub> = 1.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpecularLightingSpecularConstantAttribute" name="feSpecularLightingSpecularConstantAttribute"></a> <span class="adef">specularConstant</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>ks in Phong lighting model. In SVG, this can be any non-negative
      number.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feSpecularLightingSpecularExponentAttribute" name="feSpecularLightingSpecularExponentAttribute"></a> <span class="adef">specularExponent</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>Exponent for specular term, larger is more "shiny". Range 1.0 to
      128.0.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<p>The light source is defined by one of the child elements <a href="#feDistantLightElement"><span class="element-name">'feDistantLight'</span></a>, <a href="#fePointLightElement"><span class="element-name">'fePointLight'</span></a> or <a href="#feDistantLightElement"><span class="element-name">'feDistantLight'</span></a>. The light color is
specified by property <a href="#LightingColorProperty"><span class="prop-name">'lighting-color'</span></a>.</p>

<p><a href="#AnExample">The example</a> at the start of this chapter makes
use of the <span class="element-name">feSpecularLighting</span> filter
primitive to achieve a highly reflective, 3D glowing effect.</p>

<h2 id="feTileElement">22 Filter primitive <span class="element-name">'feTile'</span></h2>


<p>This filter primitive fills a target rectangle with a repeated, tiled
pattern of an input image. </p>
<div class="changed">
The target rectangle is as large as the <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a> established
by the <span class="element-name">'feTile'</span> element. </div>


<p>Typically, the input image has been defined with its own <a href="#FilterPrimitiveSubRegion">filter primitive subregion</a> in order to
define a reference tile. <span class="element-name">'feTile'</span>
replicates the reference tile in both X and Y to completely fill the target
rectangle. The top/left corner of each given tile is at location
<code>(x+i*width,y+j*height)</code>, where <code>(x,y)</code> represents the
top/left of the input image's filter primitive subregion, <code>width</code>
and <code>height</code> represent the width and height of the input image's
filter primitive subregion, and <code>i</code> and <code>j</code> can be any
integer value. In most cases, the input image will have a smaller filter
primitive subregion than the <span class="element-name">'feTile'</span> in
order to achieve a repeated pattern effect.</p>

<p>Implementers must take appropriate measures in constructing the tiled
image to avoid artifacts between tiles, particularly in situations where the
user to device transform includes shear and/or rotation. Unless care is
taken, interpolation can lead to edge pixels in the tile having opacity
values lower or higher than expected due to the interaction of painting
adjacent tiles which each have partial overlap with particular pixels.</p>

<div class="adef-list">
  </div>

<h2 id="feTurbulenceElement">23 Filter primitive <span class="element-name">'feTurbulence'</span></h2>


<p>This filter primitive creates an image using the Perlin turbulence
function. It allows the synthesis of artificial textures like clouds or
marble. For a detailed description the of the Perlin turbulence function, see
"Texturing and Modeling", Ebert et al, AP Professional, 1994. The resulting
image will fill the entire <a href="#FilterPrimitiveSubRegion">filter
primitive subregion</a> for this filter primitive.</p>

<p>It is possible to create bandwidth-limited noise by synthesizing only one
octave.</p>

<p>The C code below shows the exact algorithm used for this filter effect.</p>

<p>For fractalSum, you get a turbFunctionResult that is aimed at a range of
-1 to 1 (the actual result might exceed this range in some cases). To convert
to a color value, use the formula <code>colorValue = ((turbFunctionResult *
255) + 255) / 2</code>, then clamp to the range 0 to 255.</p>

<p>For turbulence, you get a turbFunctionResult that is aimed at a range of 0
to 1 (the actual result might exceed this range in some cases). To convert to
a color value, use the formula <code>colorValue = (turbFunctionResult *
255)</code>, then clamp to the range 0 to 255.</p>

<p>The following order is used for applying the pseudo random numbers. An
initial seed value is computed based on attribute <span class="attr-name">seed</span>. Then the implementation computes the lattice
points for R, then continues getting additional pseudo random numbers
relative to the last generated pseudo random number and computes the lattice
points for G, and so on for B and A.</p>

<p>The generated color and alpha values are in the color space determined by
the value of property <span class="prop-name">'color-interpolation-filters'</span>:</p>
<pre class="svgsamplecompressed">/* Produces results in the range [1, 2**31 - 2].
Algorithm is: r = (a * r) mod m
where a = 16807 and m = 2**31 - 1 = 2147483647
See [Park &amp; Miller], CACM vol. 31 no. 10 p. 1195, Oct. 1988
To test: the algorithm should produce the result 1043618065
as the 10,000th generated number if the original seed is 1.
*/
#define RAND_m 2147483647 /* 2**31 - 1 */
#define RAND_a 16807 /* 7**5; primitive root of m */
#define RAND_q 127773 /* m / a */
#define RAND_r 2836 /* m % a */
long setup_seed(long lSeed)
{
  if (lSeed &lt;= 0) lSeed = -(lSeed % (RAND_m - 1)) + 1;
  if (lSeed &gt; RAND_m - 1) lSeed = RAND_m - 1;
  return lSeed;
}
long random(long lSeed)
{
  long result;
  result = RAND_a * (lSeed % RAND_q) - RAND_r * (lSeed / RAND_q);
  if (result &lt;= 0) result += RAND_m;
  return result;
}
#define BSize 0x100
#define BM 0xff
#define PerlinN 0x1000
#define NP 12 /* 2^PerlinN */
#define NM 0xfff
static uLatticeSelector[BSize + BSize + 2];
static double fGradient[4][BSize + BSize + 2][2];
struct StitchInfo
{
  int nWidth; // How much to subtract to wrap for stitching.
  int nHeight;
  int nWrapX; // Minimum value to wrap.
  int nWrapY;
};
static void init(long lSeed)
{
  double s;
  int i, j, k;
  lSeed = setup_seed(lSeed);
  for(k = 0; k &lt; 4; k++)
  {
    for(i = 0; i &lt; BSize; i++)
    {
      uLatticeSelector[i] = i;
      for (j = 0; j &lt; 2; j++)
        fGradient[k][i][j] = (double)(((lSeed = random(lSeed)) % (BSize + BSize)) - BSize) / BSize;
      s = double(sqrt(fGradient[k][i][0] * fGradient[k][i][0] + fGradient[k][i][1] * fGradient[k][i][1]));
      fGradient[k][i][0] /= s;
      fGradient[k][i][1] /= s;
    }
  }
  while(--i)
  {
    k = uLatticeSelector[i];
    uLatticeSelector[i] = uLatticeSelector[j = (lSeed = random(lSeed)) % BSize];
    uLatticeSelector[j] = k;
  }
  for(i = 0; i &lt; BSize + 2; i++)
  {
    uLatticeSelector[BSize + i] = uLatticeSelector[i];
    for(k = 0; k &lt; 4; k++)
      for(j = 0; j &lt; 2; j++)
        fGradient[k][BSize + i][j] = fGradient[k][i][j];
  }
}
#define s_curve(t) ( t * t * (3. - 2. * t) )
#define lerp(t, a, b) ( a + t * (b - a) )
double noise2(int nColorChannel, double vec[2], StitchInfo *pStitchInfo)
{
  int bx0, bx1, by0, by1, b00, b10, b01, b11;
  double rx0, rx1, ry0, ry1, *q, sx, sy, a, b, t, u, v;
  register i, j;
  t = vec[0] + PerlinN;
  bx0 = (int)t;
  bx1 = bx0+1;
  rx0 = t - (int)t;
  rx1 = rx0 - 1.0f;
  t = vec[1] + PerlinN;
  by0 = (int)t;
  by1 = by0+1;
  ry0 = t - (int)t;
  ry1 = ry0 - 1.0f;
  // If stitching, adjust lattice points accordingly.
  if(pStitchInfo != NULL)
  {
    if(bx0 &gt;= pStitchInfo-&gt;nWrapX)
      bx0 -= pStitchInfo-&gt;nWidth;
    if(bx1 &gt;= pStitchInfo-&gt;nWrapX)
      bx1 -= pStitchInfo-&gt;nWidth;
    if(by0 &gt;= pStitchInfo-&gt;nWrapY)
      by0 -= pStitchInfo-&gt;nHeight;
    if(by1 &gt;= pStitchInfo-&gt;nWrapY)
      by1 -= pStitchInfo-&gt;nHeight;
  }
  bx0 &amp;= BM;
  bx1 &amp;= BM;
  by0 &amp;= BM;
  by1 &amp;= BM;
  i = uLatticeSelector[bx0];
  j = uLatticeSelector[bx1];
  b00 = uLatticeSelector[i + by0];
  b10 = uLatticeSelector[j + by0];
  b01 = uLatticeSelector[i + by1];
  b11 = uLatticeSelector[j + by1];
  sx = double(s_curve(rx0));
  sy = double(s_curve(ry0));
  q = fGradient[nColorChannel][b00]; u = rx0 * q[0] + ry0 * q[1];
  q = fGradient[nColorChannel][b10]; v = rx1 * q[0] + ry0 * q[1];
  a = lerp(sx, u, v);
  q = fGradient[nColorChannel][b01]; u = rx0 * q[0] + ry1 * q[1];
  q = fGradient[nColorChannel][b11]; v = rx1 * q[0] + ry1 * q[1];
  b = lerp(sx, u, v);
  return lerp(sy, a, b);
}
double turbulence(int nColorChannel, double *point, double fBaseFreqX, double fBaseFreqY,
          int nNumOctaves, bool bFractalSum, bool bDoStitching,
          double fTileX, double fTileY, double fTileWidth, double fTileHeight)
{
  StitchInfo stitch;
  StitchInfo *pStitchInfo = NULL; // Not stitching when NULL.
  // Adjust the base frequencies if necessary for stitching.
  if(bDoStitching)
  {
    // When stitching tiled turbulence, the frequencies must be adjusted
    // so that the tile borders will be continuous.
    if(fBaseFreqX != 0.0)
    {
      double fLoFreq = double(floor(fTileWidth * fBaseFreqX)) / fTileWidth;
      double fHiFreq = double(ceil(fTileWidth * fBaseFreqX)) / fTileWidth;
      if(fBaseFreqX / fLoFreq &lt; fHiFreq / fBaseFreqX)
        fBaseFreqX = fLoFreq;
      else
        fBaseFreqX = fHiFreq;
    }
    if(fBaseFreqY != 0.0)
    {
      double fLoFreq = double(floor(fTileHeight * fBaseFreqY)) / fTileHeight;
      double fHiFreq = double(ceil(fTileHeight * fBaseFreqY)) / fTileHeight;
      if(fBaseFreqY / fLoFreq &lt; fHiFreq / fBaseFreqY)
        fBaseFreqY = fLoFreq;
      else
        fBaseFreqY = fHiFreq;
    }
    // Set up initial stitch values.
    pStitchInfo = &amp;stitch;
    stitch.nWidth = int(fTileWidth * fBaseFreqX + 0.5f);
    stitch.nWrapX = fTileX * fBaseFreqX + PerlinN + stitch.nWidth;
    stitch.nHeight = int(fTileHeight * fBaseFreqY + 0.5f);
    stitch.nWrapY = fTileY * fBaseFreqY + PerlinN + stitch.nHeight;
  }
  double fSum = 0.0f;
  double vec[2];
  vec[0] = point[0] * fBaseFreqX;
  vec[1] = point[1] * fBaseFreqY;
  double ratio = 1;
  for(int nOctave = 0; nOctave &lt; nNumOctaves; nOctave++)
  {
    if(bFractalSum)
      fSum += double(noise2(nColorChannel, vec, pStitchInfo) / ratio);
    else
      fSum += double(fabs(noise2(nColorChannel, vec, pStitchInfo)) / ratio);
    vec[0] *= 2;
    vec[1] *= 2;
    ratio *= 2;
    if(pStitchInfo != NULL)
    {
      // Update stitch values. Subtracting PerlinN before the multiplication and
      // adding it afterward simplifies to subtracting it once.
      stitch.nWidth *= 2;
      stitch.nWrapX = 2 * stitch.nWrapX - PerlinN;
      stitch.nHeight *= 2;
      stitch.nWrapY = 2 * stitch.nWrapY - PerlinN;
    }
  }
  return fSum;
}</pre>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feTurbulenceBaseFrequencyAttribute" name="feTurbulenceBaseFrequencyAttribute"></a> <span class="adef">baseFrequency</span> =
  "<em>&lt;number-optional-number&gt;</em>"</dt>
    <dd>The base frequency (frequencies) parameter(s) for the noise function.
      If two &lt;number&gt;
      s are provided, the first number represents a base frequency in the X
      direction and the second value represents a base frequency in the Y
      direction. If one number is provided, then that value is used for both
      X and Y.<br></br>
      If the attribute is not specified, or if a negative value for base
      frequency is specified, then the effect is as if a value of <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feTurbulenceNumOctavesAttribute" name="feTurbulenceNumOctavesAttribute"></a> <span class="adef">numOctaves</span> = "<em>&lt;integer&gt;</em>"</dt>
    <dd>The numOctaves parameter for the noise function.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">1</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feTurbulenceSeedAttribute" name="feTurbulenceSeedAttribute"></a>
  <span class="adef">seed</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>The starting number for the pseudo random number generator.<br></br>
      If the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">0</span> were specified.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feTurbulenceStitchTilesAttribute" name="feTurbulenceStitchTilesAttribute"></a> <span class="adef">stitchTiles</span> = "<em>stitch | noStitch</em>"</dt>
    <dd>If <span class="attr-value">stitchTiles="noStitch"</span>, no attempt
      it made to achieve smooth transitions at the border of tiles which
      contain a turbulence function. Sometimes the result will show clear
      discontinuities at the tile borders.<br></br>
      If <span class="attr-value">stitchTiles="stitch"</span>, then the user
      agent will automatically adjust baseFrequency-x and baseFrequency-y
      values such that the feTurbulence node's width and height (i.e., the
      width and height of the current subregion) contains an integral number
      of the Perlin tile width and height for the first octave. The
      baseFrequency will be adjusted up or down depending on which way has
      the smallest relative (not absolute) change as follows: Given the
      frequency, calculate <code>lowFreq=floor(width*frequency)/width</code>
      and <code>hiFreq=ceil(width*frequency)/width</code>. If
      frequency/lowFreq &lt; hiFreq/frequency then use lowFreq, else use
      hiFreq. While generating turbulence values, generate lattice vectors as
      normal for Perlin Noise, except for those lattice points that lie on
      the right or bottom edges of the active area (the size of the resulting
      tile). In those cases, copy the lattice vector from the opposite edge
      of the active area.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feTurbulenceTypeAttribute" name="feTurbulenceTypeAttribute"></a>
  <span class="adef">type</span> = "<em>fractalNoise | turbulence</em>"</dt>
    <dd>Indicates whether the filter primitive should perform a noise or
      turbulence function.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>

<div class="example">
  <div class="exampleheader">
    <strong>Example:</strong> <a href="examples/feTurbulence.svg">feTurbulence.svg</a>
  </div>
  <div class="examplesource">
    <pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
&lt;svg width="450px" height="325px" viewBox="0 0 450 325"
     xmlns="http://www.w3.org/2000/svg" version="1.1"&gt;
  &lt;title&gt;Example feTurbulence - Examples of feTurbulence operations&lt;/title&gt;
  &lt;desc&gt;Six rectangular areas showing the effects of 
        various parameter settings for feTurbulence.&lt;/desc&gt;
  &lt;g  font-family="Verdana" text-anchor="middle" font-size="10" &gt;
    &lt;defs&gt;
      &lt;filter id="Turb1" filterUnits="objectBoundingBox" 
              x="0%" y="0%" width="100%" height="100%"&gt;
        &lt;feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/&gt;
      &lt;/filter&gt;
      &lt;filter id="Turb2" filterUnits="objectBoundingBox" 
              x="0%" y="0%" width="100%" height="100%"&gt;
        &lt;feTurbulence type="turbulence" baseFrequency="0.1" numOctaves="2"/&gt;
      &lt;/filter&gt;
      &lt;filter id="Turb3" filterUnits="objectBoundingBox" 
              x="0%" y="0%" width="100%" height="100%"&gt;
        &lt;feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="8"/&gt;
      &lt;/filter&gt;
      &lt;filter id="Turb4" filterUnits="objectBoundingBox" 
              x="0%" y="0%" width="100%" height="100%"&gt;
        &lt;feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="4"/&gt;
      &lt;/filter&gt;
      &lt;filter id="Turb5" filterUnits="objectBoundingBox" 
              x="0%" y="0%" width="100%" height="100%"&gt;
        &lt;feTurbulence type="fractalNoise" baseFrequency="0.4" numOctaves="4"/&gt;
      &lt;/filter&gt;
      &lt;filter id="Turb6" filterUnits="objectBoundingBox" 
              x="0%" y="0%" width="100%" height="100%"&gt;
        &lt;feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/&gt;
      &lt;/filter&gt;
    &lt;/defs&gt;

    &lt;rect x="1" y="1" width="448" height="323"
          fill="none" stroke="blue" stroke-width="1"  /&gt;

    &lt;rect x="25" y="25" width="100" height="75" filter="url(#Turb1)"  /&gt;
    &lt;text x="75" y="117"&gt;type=turbulence&lt;/text&gt;
    &lt;text x="75" y="129"&gt;baseFrequency=0.05&lt;/text&gt;
    &lt;text x="75" y="141"&gt;numOctaves=2&lt;/text&gt;

    &lt;rect x="175" y="25" width="100" height="75" filter="url(#Turb2)"  /&gt;
    &lt;text x="225" y="117"&gt;type=turbulence&lt;/text&gt;
    &lt;text x="225" y="129"&gt;baseFrequency=0.1&lt;/text&gt;
    &lt;text x="225" y="141"&gt;numOctaves=2&lt;/text&gt;

    &lt;rect x="325" y="25" width="100" height="75" filter="url(#Turb3)"  /&gt;
    &lt;text x="375" y="117"&gt;type=turbulence&lt;/text&gt;
    &lt;text x="375" y="129"&gt;baseFrequency=0.05&lt;/text&gt;
    &lt;text x="375" y="141"&gt;numOctaves=8&lt;/text&gt;

    &lt;rect x="25" y="180" width="100" height="75" filter="url(#Turb4)"  /&gt;
    &lt;text x="75" y="272"&gt;type=fractalNoise&lt;/text&gt;
    &lt;text x="75" y="284"&gt;baseFrequency=0.1&lt;/text&gt;
    &lt;text x="75" y="296"&gt;numOctaves=4&lt;/text&gt;

    &lt;rect x="175" y="180" width="100" height="75" filter="url(#Turb5)"  /&gt;
    &lt;text x="225" y="272"&gt;type=fractalNoise&lt;/text&gt;
    &lt;text x="225" y="284"&gt;baseFrequency=0.4&lt;/text&gt;
    &lt;text x="225" y="296"&gt;numOctaves=4&lt;/text&gt;

    &lt;rect x="325" y="180" width="100" height="75" filter="url(#Turb6)"  /&gt;
    &lt;text x="375" y="272"&gt;type=fractalNoise&lt;/text&gt;
    &lt;text x="375" y="284"&gt;baseFrequency=0.1&lt;/text&gt;
    &lt;text x="375" y="296"&gt;numOctaves=1&lt;/text&gt;
  &lt;/g&gt;
&lt;/svg&gt;

    </pre>
  </div>
  <div class="exampleimage">
    <img src="examples/feTurbulence.png" alt="Rendering of feTurbulence.svg" />
  </div>
</div>


<div class="new">
<h2 id="feDropShadowElement">24 Filter primitive <span class="element-name">'feDropShadow'</span></h2>


<p>This filter creates a drop shadow of the input image. It is a shorthand
filter, and is defined in terms of combinations of other filter primitives.
The expectation is that it can be optimized more easily by
implementations.</p>

<p>The result of a <span class="element-name">'feDropShadow'</span> filter
primitive is equivalent to the following: </p>

<pre class="examplesource">
  &lt;feGaussianBlur in="<b>alpha-channel-of-feDropShadow-in</b>" stdDeviation="<b>stdDeviation-of-feDropShadow</b>"/&gt; 
  &lt;feOffset dx="<b>dx-of-feDropShadow</b>" dy="<b>dy-of-feDropShadow</b>" result="offsetblur"/&gt; 
  &lt;feFlood flood-color="<b>flood-color-of-feDropShadow</b>" flood-opacity="<b>flood-opacity-of-feDropShadow</b>"/&gt; 
  &lt;feComposite in2="offsetblur" operator="in"/&gt; 
  &lt;feMerge&gt; 
    &lt;feMergeNode/&gt;
    &lt;feMergeNode in="<b>in-of-feDropShadow</b>"/&gt; 
  &lt;/feMerge&gt;
</pre>


<p>
The above divided into steps:</p>
<ol>
  <li>Take the alpha channel of the input to the <span class="element-name">'feDropShadow'</span> filter primitive and the <a href="#feDropShadowStdDeviationAttribute"><span class="attr-name">stdDeviation</span></a> on the <span class="element-name">'feDropShadow'</span> and do processing as if the
    following <a href="#feGaussianBlurElement"><span class="element-name">'feGaussianBlur'</span></a> was applied: 
    <pre class="examplesource">	&lt;feGaussianBlur in="<b>alpha-channel-of-feDropShadow-in</b>" stdDeviation="<b>stdDeviation-of-feDropShadow</b>"/&gt;</pre>
    <br></br>
  </li>
  <li>Offset the result of step 1 by <a href="#feDropShadowDxAttribute"><span class="attr-name">dx</span></a> and <a href="#feDropShadowDyAttribute"><span class="attr-name">dy</span></a> as
    specified on the <span class="element-name">'feDropShadow'</span>
    element, equivalent to applying an <a href="#feOffsetElement"><span class="element-name">'feOffset'</span></a> with these parameters: 
    <pre class="examplesource">	&lt;feOffset dx="<b>dx-of-feDropShadow</b>" dy="<b>dy-of-feDropShadow</b>" result="offsetblur"/&gt;</pre>
    <br></br>
  </li>
  <li>Do processing as if an <a href="#feFloodElement"><span class="element-name">'feFlood'</span></a> element with <a href="#propdef-flood-color"><span class="prop-name">'flood-color'</span></a> and <a href="#propdef-flood-opacity"><span class="prop-name">'flood-opacity'</span></a> as specified on the <span class="element-name">'feDropShadow'</span> was applied: 
    <pre class="examplesource">	&lt;feFlood flood-color="<b>flood-color-of-feDropShadow</b>" flood-opacity="<b>flood-opacity-of-feDropShadow</b>"/&gt;</pre>
    <br></br>
  </li>
  <li>Composite the result of the <a href="#feFloodElement"><span class="element-name">'feFlood'</span></a> in step 3 with the result of
    the <a href="#feOffsetElement"><span class="element-name">'feOffset'</span></a> in step 2 as if an <a href="#feCompositeElement"><span class="element-name">'feComposite'</span></a> filter primitive with <a href="#feCompositeOperatorAttribute"><span class="attr-name">operator</span></a>='in' was applied: 
    <pre class="examplesource">	&lt;feComposite in2="offsetblur" operator="in"/&gt;</pre>
    <br></br>
  </li>
  <li>Finally merge the result of the previous step, doing processing as if
    the following <a href="#feMergeElement"><span class="element-name">'feMerge'</span></a> was performed: 
    <pre class="examplesource">	&lt;feMerge&gt;
	    &lt;feMergeNode/&gt;
	    &lt;feMergeNode in="<b>in-of-feDropShadow</b>"/&gt;
	&lt;/feMerge&gt;</pre>
  </li>
</ol>


<p>Note that while the definition of the <span class="element-name">'feDropShadow'</span> filter primitive says that it can
be expanded into an equivalent tree it is not required that it is implemented
like that. The expectation is that user agents can optimize the handling by not having to do all the steps separately. Beyond the DOM interface <a href="#InterfaceSVGFEDropShadowElement">SVGFEDropShadow</a> there is no way
of accessing the internals of the <span class="element-name">'feDropShadow'</span> filter primitive, meaning if the
filter primitive is implemented as an equivalent tree then that tree must not
be exposed to the DOM. </p>

<div class="adef-list">
<p><em>Attribute definitions:</em></p>
<dl>
  <dt><a id="feDropShadowDxAttribute" name="feDropShadowDxAttribute"></a>
  <span class="adef">dx</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>The x offset of the drop shadow. If the attribute is not specified,
      then the effect is as if a value of <span class="attr-value">2</span>
      were specified. This attribute is then forwarded to the <span class="attr-name">dx</span> attribute of the internal <a href="#feOffsetElement"><span class="element-name">'feOffset'</span></a> element.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDropShadowDyAttribute" name="feDropShadowDyAttribute"></a>
  <span class="adef">dy</span> = "<em>&lt;number&gt;</em>"</dt>
    <dd>The y offset of the drop shadow. If the attribute is not specified,
      then the effect is as if a value of <span class="attr-value">2</span>
      were specified. This attribute is then forwarded to the <span class="attr-name">dy</span> attribute of the internal <a href="#feOffsetElement"><span class="element-name">'feOffset'</span></a> element.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
  <dt><a id="feDropShadowStdDeviationAttribute" name="feDropShadowStdDeviationAttribute"></a> <span class="adef">stdDeviation</span> =
  "<em>&lt;number-optional-number&gt;</em>"</dt>
    <dd>The standard deviation for the blur operation in the drop shadow. If
      the attribute is not specified, then the effect is as if a value of
      <span class="attr-value">2</span> were specified. This attribute is
      then forwarded to the <a href="#feDropShadowStdDeviationAttribute"><span class="attr-name">stdDeviation</span></a> attribute of the internal <a href="#feGaussianBlurElement"><span class="element-name">'feGaussianBlur'</span></a> element.<br></br>
      <span class="anim-target">Animatable:yes.</span></dd>
</dl>
</div>
</div>

<div class="note">
<h2 id="feDiffuseSpecularElement">25 Filter primitive <span class="element-name">'feDiffuseSpecular'</span></h2>

The SVG WG is looking at providing a shorthand for diffuse+specular.
</div>

<div class="note">
<h2 id="feCustomElement">26 Filter primitive <span class="element-name">'feCustom'</span></h2>

The SVG WG is looking to add a filter primitive that allows programmatic access
to the pixel data for a filter.
</div>

<div class="new">
<h2 id="RelaxNG">27 RelaxNG Schema for SVG Filters 1.2</h2>


<p>The schema for SVG Filters 1.2 is written in <a href="http://www.y12.doe.gov/sgml/sc34/document/0362_files/relaxng-is.pdf">RelaxNG</a>
[<a href="#ref-RNG">RelaxNG</a>], a namespace-aware schema language that uses
the datatypes from <a href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">XML Schema Part
2</a> [<a href="#ref-Schema2">Schema2</a>]. This allows namespaces and
modularity to be much more naturally expressed than using DTD syntax. The
RelaxNG schema for SVG Filter 1.2 may be imported by other RelaxNG schemas,
or combined with other schemas in other languages into a multi-namespace,
multi-grammar schema using <a href="http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/">Namespace-based Validation
Dispatching Language</a> [<a href="#ref-NVDL">NVDL</a>].</p>

<p>Unlike a DTD, the schema used for validation is not hardcoded into the
document instance. There is no equivalent to the DOCTYPE declaration. Simply
point your editor or other validation tool to the IRI of the schema (or your
local cached copy, as you prefer).</p>

<p>
The RNG is under construction, and only the individual RNG snippets are available at this time. They have not yet been integrated into a functional schema. The individual RNG files are available <a href="rng">here</a>. 
</p>
</div>

<h2 id="DOMInterfaces">28 DOM interfaces</h2>

<div class="note">
The interfaces below will be made available in a IDL file for an upcoming draft.
</div>

 

<p>The following interfaces are defined below: <a href="#InterfaceImageData">ImageData</a>, <a href="#InterfaceSVGFilterElement">SVGFilterElement</a>, <a href="#InterfaceSVGFilterPrimitiveStandardAttributes">SVGFilterPrimitiveStandardAttributes</a>,
<a href="#InterfaceSVGFEBlendElement">SVGFEBlendElement</a>, <a href="#InterfaceSVGFEColorMatrixElement">SVGFEColorMatrixElement</a>, <a href="#InterfaceSVGFEComponentTransferElement">SVGFEComponentTransferElement</a>,
<a href="#InterfaceSVGComponentTransferFunctionElement">SVGComponentTransferFunctionElement</a>,
<a href="#InterfaceSVGFEFuncRElement">SVGFEFuncRElement</a>, <a href="#InterfaceSVGFEFuncGElement">SVGFEFuncGElement</a>, <a href="#InterfaceSVGFEFuncBElement">SVGFEFuncBElement</a>, <a href="#InterfaceSVGFEFuncAElement">SVGFEFuncAElement</a>, <a href="#InterfaceSVGFECompositeElement">SVGFECompositeElement</a>, <a href="#InterfaceSVGFEConvolveMatrixElement">SVGFEConvolveMatrixElement</a>,
<a href="#InterfaceSVGFEDiffuseLightingElement">SVGFEDiffuseLightingElement</a>,
<a href="#InterfaceSVGFEDistantLightElement">SVGFEDistantLightElement</a>, <a href="#InterfaceSVGFEPointLightElement">SVGFEPointLightElement</a>, <a href="#InterfaceSVGFESpotLightElement">SVGFESpotLightElement</a>, <a href="#InterfaceSVGFEDisplacementMapElement">SVGFEDisplacementMapElement</a>,
<a href="#InterfaceSVGFEFloodElement">SVGFEFloodElement</a>, <a href="#InterfaceSVGFEGaussianBlurElement">SVGFEGaussianBlurElement</a>, <a href="#InterfaceSVGFEImageElement">SVGFEImageElement</a>, <a href="#InterfaceSVGFEMergeElement">SVGFEMergeElement</a>, <a href="#InterfaceSVGFEMergeNodeElement">SVGFEMergeNodeElement</a>, <a href="#InterfaceSVGFEMorphologyElement">SVGFEMorphologyElement</a>, <a href="#InterfaceSVGFEOffsetElement">SVGFEOffsetElement</a>, <a href="#InterfaceSVGFESpecularLightingElement">SVGFESpecularLightingElement</a>,
<a href="#InterfaceSVGFETileElement">SVGFETileElement</a>, <a href="#InterfaceSVGFETurbulenceElement">SVGFETurbulenceElement</a>, <a href="#InterfaceSVGFEDropShadowElement">SVGFEDropShadowElement</a>.</p>
<br></br>


<div class="new">
<h3 id="InterfaceImageData">28.1 Interface <span class="DOMInterfaceName">ImageData</span></h3>


<p>The <span class="DOMInterfaceName">ImageData</span> interface corresponds
to pixel data that can be used as input to the <span class="DOMInterfaceName">SVGFilterElement</span> interface.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface ImageData {
  readonly attribute unsigned long width;
  readonly attribute unsigned long height;
  readonly attribute int[] data;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">unsigned long</span> <span class="dom-attr-name">width</span></dt>
          <dd>The width of the bitmap that the ImageData represents.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">unsigned long</span> <span class="dom-attr-name">height</span></dt>
          <dd>The height of the bitmap that the ImageData represents.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">int[]</span> <span class="dom-attr-name">data</span></dt>
          <dd>An array of pixel values that is the bitmap. This array must
            always be in the form of width×height×4 integer values. The
            pixel data is in left-to-right order, starting from the top-left
            corner, and going row by row downwards. Every pixel is
            represented by four integer values, red, green, blue and alpha,
            in that order. The range of each color component is 0..255. The
            intent is that this is compatible with <a href="http://www.whatwg.org/">WHATWG</a> [<a href="#ref-WHATWG">WHATWG</a>] canvas interfaces, in particular
            see <a href="http://www.whatwg.org/specs/web-apps/current-work/#imagedata">ImageData</a>.</dd>
      </dl>
    </dd>
</dl>
<br></br>
</div>

<h3 id="InterfaceSVGFilterElement">28.2 Interface <span class="DOMInterfaceName">SVGFilterElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFilterElement</span> interface
corresponds to the <span class="element-name">'filter'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFilterElement : 
                SVGElement,
                SVGURIReference,
                SVGLangSpace,
                SVGExternalResourcesRequired,
                SVGStylable,
                SVGUnitTypes { 
  readonly attribute SVGAnimatedEnumeration filterUnits;
  readonly attribute SVGAnimatedEnumeration primitiveUnits;
  readonly attribute SVGAnimatedEnumeration filterMarginUnits;
  readonly attribute SVGAnimatedEnumeration primitiveMarginUnits;
  readonly attribute SVGAnimatedLength      x;
  readonly attribute SVGAnimatedLength      y;
  readonly attribute SVGAnimatedLength      width;
  readonly attribute SVGAnimatedLength      height;
  readonly attribute SVGAnimatedInteger     filterResX;
  readonly attribute SVGAnimatedInteger     filterResY;
  void setFilterRes ( in unsigned long filterResX, in unsigned long filterResY );
  ImageData apply(in ImageData source);
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">filterUnits</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">filterUnits</span> on the given <span class="element-name">'filter'</span> element. Takes one of the
            constants defined in <span class="DOMInterfaceName">SVGUnitTypes</span>.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">primitiveUnits</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">primitiveUnits</span> on the given <span class="element-name">'filter'</span> element. Takes one of the
            constants defined in <span class="DOMInterfaceName">SVGUnitTypes</span>.</dd>
      </dl>
<div class="new"><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">filterMarginUnits</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">filterMarginUnits</span> on the given <span class="element-name">'filter'</span> element. Takes one of the
            constants defined in <span class="DOMInterfaceName">SVGUnitTypes</span>.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">primitiveMarginUnits</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">primitiveMarginUnits</span> on the given <span class="element-name">'filter'</span> element. Takes one of the
            constants defined in <span class="DOMInterfaceName">SVGUnitTypes</span>.</dd>
  </dl>
</div>
      <dl>
	<dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">x</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">x</span> on
            the given <span class="element-name">'filter'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">y</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">y</span> on
            the given <span class="element-name">'filter'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">width</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">width</span>
            on the given <span class="element-name">'filter'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">height</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">height</span>
            on the given <span class="element-name">'filter'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">filterResX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">filterRes</span> on the given <span class="element-name">'filter'</span> element. Contains the X
            component of attribute <span class="attr-name">filterRes</span>.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">filterResY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">filterRes</span> on the given <span class="element-name">'filter'</span> element. Contains the Y
            component (possibly computed automatically) of attribute <span class="attr-name">filterRes</span>.</dd>
      </dl>
    </dd>
  <dt><b>Methods</b></dt>
    <dd><dl>
        <dt><span class="dom-method-name">setFilterRes</span></dt>
          <dd>Sets the values for attribute <span class="attr-name">filterRes</span>. 
            <dl>
              <dt><span class="dom-parameters">Parameters</span></dt>
                <dd>
                  <table border="0" summary="method parameters">
                    <tbody>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">unsigned long</span>
                          <span class="dom-parameter-name">filterResX</span></td>
                        <td></td>
                        <td>The X component of attribute <span class="attr-name">filterRes</span>.</td>
                      </tr>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">unsigned long</span>
                          <span class="dom-parameter-name">filterResY</span></td>
                        <td></td>
                        <td>The Y component of attribute <span class="attr-name">filterRes</span>.</td>
                      </tr>
                    </tbody>
                  </table>
                </dd>
            </dl>
            <dl>
              <dt><span class="dom-no-returnvalue">No Return Value</span></dt>
            </dl>
            <dl>
              <dt><span class="dom-no-exceptions">No Exceptions</span></dt>
            </dl>
          </dd>
      </dl>
<div class="new">
      <dl>
        <dt><span class="dom-method-name">apply</span></dt>
          <dd>Applies the filter to the given ImageData object and returns
            the result. 
            <dl>
              <dt><span class="dom-parameters">Parameters</span></dt>
                <dd>
                  <table border="0" summary="method parameters">
                    <tbody>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">ImageData</span> <span class="dom-parameter-name">source</span></td>
                        <td></td>
                        <td>The image to apply the filter to.</td>
                      </tr>
                    </tbody>
                  </table>
                </dd>
            </dl>
            <dl>
              <dt><span class="dom-returnvalue">Return value</span></dt>
                <dd>
                  <table border="0" summary="method return value">
                    <tbody>
                      <tr>
                        <td valign="top"><span class="dom-returnvalue-type">ImageData</span></td>
                        <td></td>
                        <td>The result of the filter, see <a href="#InterfaceImageData">ImageData</a> for how to
                          construct this.</td>
                      </tr>
                    </tbody>
                  </table>
                </dd>
            </dl>
            <dl>
              <dt><span class="dom-no-exceptions">No Exceptions</span></dt>
            </dl>
          </dd>
      </dl>
</div>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFilterPrimitiveStandardAttributes">28.3 Interface <span class="DOMInterfaceName">SVGFilterPrimitiveStandardAttributes</span></h3>


<p>This interface defines the set of DOM attributes that are common across
the filter interfaces.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFilterPrimitiveStandardAttributes : SVGStylable { 
  readonly attribute SVGAnimatedLength x;
  readonly attribute SVGAnimatedLength y;
  readonly attribute SVGAnimatedLength width;
  readonly attribute SVGAnimatedLength height;
  readonly attribute SVGAnimatedString result;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">x</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">x</span> on
            the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">y</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">y</span> on
            the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">width</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">width</span>
            on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedLength</span> <span class="dom-attr-name">height</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">height</span>
            on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">result</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">result</span>
            on the given element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEBlendElement">28.4 Interface <span class="DOMInterfaceName">SVGFEBlendElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEBlendElement</span> interface
corresponds to the <span class="element-name">'feBlend'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEBlendElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Blend Mode Types
  const unsigned short SVG_FEBLEND_MODE_UNKNOWN  = 0;
  const unsigned short SVG_FEBLEND_MODE_NORMAL   = 1;
  const unsigned short SVG_FEBLEND_MODE_MULTIPLY = 2;
  const unsigned short SVG_FEBLEND_MODE_SCREEN   = 3;
  const unsigned short SVG_FEBLEND_MODE_DARKEN   = 4;
  const unsigned short SVG_FEBLEND_MODE_LIGHTEN  = 5;
  readonly attribute SVGAnimatedString      in1;
  readonly attribute SVGAnimatedString      in2;
  readonly attribute SVGAnimatedEnumeration mode;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Blend Mode Types</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_FEBLEND_MODE_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FEBLEND_MODE_NORMAL</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">normal</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FEBLEND_MODE_MULTIPLY</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">multiply</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FEBLEND_MODE_SCREEN</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">screen</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FEBLEND_MODE_DARKEN</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">darken</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FEBLEND_MODE_LIGHTEN</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">lighten</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feBlend'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in2</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in2</span> on
            the given <span class="element-name">'feBlend'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">mode</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">mode</span> on
            the given <span class="element-name">'feBlend'</span> element.
            Takes one of the Blend Mode Types.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEColorMatrixElement">28.5 Interface <span class="DOMInterfaceName">SVGFEColorMatrixElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEColorMatrixElement</span>
interface corresponds to the <span class="element-name">'feColorMatrix'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEColorMatrixElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Color Matrix Types
  const unsigned short SVG_FECOLORMATRIX_TYPE_UNKNOWN          = 0;
  const unsigned short SVG_FECOLORMATRIX_TYPE_MATRIX           = 1;
  const unsigned short SVG_FECOLORMATRIX_TYPE_SATURATE         = 2;
  const unsigned short SVG_FECOLORMATRIX_TYPE_HUEROTATE        = 3;
  const unsigned short SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
  readonly attribute SVGAnimatedString      in1;
  readonly attribute SVGAnimatedEnumeration type;
  readonly attribute SVGAnimatedNumberList  values;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Color Matrix Types</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_FECOLORMATRIX_TYPE_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOLORMATRIX_TYPE_MATRIX</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">matrix</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOLORMATRIX_TYPE_SATURATE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">saturate</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOLORMATRIX_TYPE_HUEROTATE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">hueRotate</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">luminanceToAlpha</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feColorMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">type</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">type</span> on
            the given <span class="element-name">'feColorMatrix'</span>
            element. Takes one of the Color Matrix Types.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumberList</span> <span class="dom-attr-name">values</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">values</span>
            on the given <span class="element-name">'feColorMatrix'</span>
            element. 
            <p>Provides access to the contents of the <span class="attr-name">values</span> attribute.</p>
          </dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEComponentTransferElement">28.6 Interface <span class="DOMInterfaceName">SVGFEComponentTransferElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEComponentTransferElement</span>
interface corresponds to the <span class="element-name">'feComponentTransfer'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEComponentTransferElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feComponentTransfer'</span>
            element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGComponentTransferFunctionElement">28.7 Interface <span class="DOMInterfaceName">SVGComponentTransferFunctionElement</span></h3>


<p>This interface defines a base interface used by the component transfer
function interfaces.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGComponentTransferFunctionElement : SVGElement { 
  // Component Transfer Types
  const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN  = 0;
  const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
  const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_TABLE    = 2;
  const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE    = 3;
  const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_LINEAR   = 4;
  const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA    = 5;
  readonly attribute SVGAnimatedEnumeration type;
  readonly attribute SVGAnimatedNumberList  tableValues;
  readonly attribute SVGAnimatedNumber      slope;
  readonly attribute SVGAnimatedNumber      intercept;
  readonly attribute SVGAnimatedNumber      amplitude;
  readonly attribute SVGAnimatedNumber      exponent;
  readonly attribute SVGAnimatedNumber      offset;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Component Transfer Types</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">identity</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPONENTTRANSFER_TYPE_TABLE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">table</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">discrete</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPONENTTRANSFER_TYPE_LINEAR</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">linear</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPONENTTRANSFER_TYPE_GAMMA</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">gamma</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">type</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">type</span> on
            the given element. Takes one of the Component Transfer Types.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumberList</span> <span class="dom-attr-name">tableValues</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">tableValues</span> on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">slope</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">slope</span>
            on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">intercept</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">intercept</span> on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">amplitude</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">amplitude</span> on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">exponent</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">exponent</span> on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">offset</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">offset</span>
            on the given element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEFuncRElement">28.8 Interface <span class="DOMInterfaceName">SVGFEFuncRElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEFuncRElement</span> interface
corresponds to the <span class="element-name">'feFuncR'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEFuncRElement : SVGComponentTransferFunctionElement {};</pre>
      </div>
      <br></br>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEFuncGElement">28.9 Interface <span class="DOMInterfaceName">SVGFEFuncGElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEFuncGElement</span> interface
corresponds to the <span class="element-name">'feFuncG'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEFuncGElement : SVGComponentTransferFunctionElement {};</pre>
      </div>
      <br></br>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEFuncBElement">28.10 Interface <span class="DOMInterfaceName">SVGFEFuncBElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEFuncBElement</span> interface
corresponds to the <span class="element-name">'feFuncB'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEFuncBElement : SVGComponentTransferFunctionElement {};</pre>
      </div>
      <br></br>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEFuncAElement">28.11 Interface <span class="DOMInterfaceName">SVGFEFuncAElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEFuncAElement</span> interface
corresponds to the <span class="element-name">'feFuncA'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEFuncAElement : SVGComponentTransferFunctionElement {};</pre>
      </div>
      <br></br>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFECompositeElement">28.12 Interface <span class="DOMInterfaceName">SVGFECompositeElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFECompositeElement</span> interface
corresponds to the <span class="element-name">'feComposite'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFECompositeElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Composite Operators
  const unsigned short SVG_FECOMPOSITE_OPERATOR_UNKNOWN    = 0;
  const unsigned short SVG_FECOMPOSITE_OPERATOR_OVER       = 1;
  const unsigned short SVG_FECOMPOSITE_OPERATOR_IN         = 2;
  const unsigned short SVG_FECOMPOSITE_OPERATOR_OUT        = 3;
  const unsigned short SVG_FECOMPOSITE_OPERATOR_ATOP       = 4;
  const unsigned short SVG_FECOMPOSITE_OPERATOR_XOR        = 5;
  const unsigned short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
  readonly attribute SVGAnimatedString      in1;
  readonly attribute SVGAnimatedString      in2;
  readonly attribute SVGAnimatedEnumeration operator;
  readonly attribute SVGAnimatedNumber      k1;
  readonly attribute SVGAnimatedNumber      k2;
  readonly attribute SVGAnimatedNumber      k3;
  readonly attribute SVGAnimatedNumber      k4;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Composite Operators</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_OVER</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">over</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_IN</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">in</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_OUT</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">out</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_ATOP</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">atop</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_XOR</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">xor</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_FECOMPOSITE_OPERATOR_ARITHMETIC</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">arithmetic</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feComposite'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in2</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in2</span> on
            the given <span class="element-name">'feComposite'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">operator</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">operator</span> on the given <span class="element-name">'feComposite'</span> element. Takes one of
            the Composite Operators.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">k1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">k1</span> on
            the given <span class="element-name">'feComposite'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">k2</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">k2</span> on
            the given <span class="element-name">'feComposite'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">k3</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">k3</span> on
            the given <span class="element-name">'feComposite'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">k4</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">k4</span> on
            the given <span class="element-name">'feComposite'</span>
          element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEConvolveMatrixElement">28.13 Interface <span class="DOMInterfaceName">SVGFEConvolveMatrixElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEConvolveMatrixElement</span>
interface corresponds to the <span class="element-name">'feConvolveMatrix'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEConvolveMatrixElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Edge Mode Values
  const unsigned short SVG_EDGEMODE_UNKNOWN   = 0;
  const unsigned short SVG_EDGEMODE_DUPLICATE = 1;
  const unsigned short SVG_EDGEMODE_WRAP      = 2;
  const unsigned short SVG_EDGEMODE_NONE      = 3;
  readonly attribute SVGAnimatedString      in1;
  readonly attribute SVGAnimatedInteger     orderX;
  readonly attribute SVGAnimatedInteger     orderY;
  readonly attribute SVGAnimatedNumberList  kernelMatrix;
  readonly attribute SVGAnimatedNumber      divisor;
  readonly attribute SVGAnimatedNumber      bias;
  readonly attribute SVGAnimatedInteger     targetX;
  readonly attribute SVGAnimatedInteger     targetY;
  readonly attribute SVGAnimatedEnumeration edgeMode;
  readonly attribute SVGAnimatedNumber      kernelUnitLengthX;
  readonly attribute SVGAnimatedNumber      kernelUnitLengthY;
  readonly attribute SVGAnimatedBoolean     preserveAlpha;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Edge Mode Values</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_EDGEMODE_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_EDGEMODE_DUPLICATE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">duplicate</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_EDGEMODE_WRAP</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">wrap</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_EDGEMODE_NONE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">none</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">orderX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">order</span>
            on the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">orderY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">order</span>
            on the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumberList</span> <span class="dom-attr-name">kernelMatrix</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">kernelMatrix</span> on the given element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">divisor</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">divisor</span>
            on the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">bias</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">bias</span> on
            the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">targetX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">targetX</span>
            on the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">targetY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">targetY</span>
            on the given <span class="element-name">'feConvolveMatrix'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">edgeMode</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">edgeMode</span> on the given <span class="element-name">'feConvolveMatrix'</span> element. Takes one
            of the Edge Mode Types.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">kernelUnitLengthX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">kernelUnitLength</span> on the given <span class="element-name">'feConvolveMatrix'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">kernelUnitLengthY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">kernelUnitLength</span> on the given <span class="element-name">'feConvolveMatrix'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedBoolean</span> <span class="dom-attr-name">preserveAlpha</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">preserveAlpha</span> on the given <span class="element-name">'feConvolveMatrix'</span> element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEDiffuseLightingElement">28.14 Interface <span class="DOMInterfaceName">SVGFEDiffuseLightingElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEDiffuseLightingElement</span>
interface corresponds to the <span class="element-name">'feDiffuseLighting'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEDiffuseLightingElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedNumber surfaceScale;
  readonly attribute SVGAnimatedNumber diffuseConstant;
  readonly attribute SVGAnimatedNumber kernelUnitLengthX;
  readonly attribute SVGAnimatedNumber kernelUnitLengthY;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feDiffuseLighting'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">surfaceScale</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">surfaceScale</span> on the given <span class="element-name">'feDiffuseLighting'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">diffuseConstant</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">diffuseConstant</span> on the given <span class="element-name">'feDiffuseLighting'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">kernelUnitLengthX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">kernelUnitLength</span> on the given <span class="element-name">'feDiffuseLighting'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">kernelUnitLengthY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">kernelUnitLength</span> on the given <span class="element-name">'feDiffuseLighting'</span> element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEDistantLightElement">28.15 Interface <span class="DOMInterfaceName">SVGFEDistantLightElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEDistantLightElement</span>
interface corresponds to the <span class="element-name">'feDistantLight'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEDistantLightElement : SVGElement { 
  readonly attribute SVGAnimatedNumber azimuth;
  readonly attribute SVGAnimatedNumber elevation;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">azimuth</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">azimuth</span>
            on the given <span class="element-name">'feDistantLight'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">elevation</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">elevation</span> on the given <span class="element-name">'feDistantLight'</span> element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEPointLightElement">28.16 Interface <span class="DOMInterfaceName">SVGFEPointLightElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEPointLightElement</span> interface
corresponds to the <span class="element-name">'fePointLight'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEPointLightElement : SVGElement { 
  readonly attribute SVGAnimatedNumber x;
  readonly attribute SVGAnimatedNumber y;
  readonly attribute SVGAnimatedNumber z;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">x</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">x</span> on
            the given <span class="element-name">'fePointLight'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">y</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">y</span> on
            the given <span class="element-name">'fePointLight'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">z</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">z</span> on
            the given <span class="element-name">'fePointLight'</span>
            element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFESpotLightElement">28.17 Interface <span class="DOMInterfaceName">SVGFESpotLightElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFESpotLightElement</span> interface
corresponds to the <span class="element-name">'feSpotLight'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFESpotLightElement : SVGElement { 
  readonly attribute SVGAnimatedNumber x;
  readonly attribute SVGAnimatedNumber y;
  readonly attribute SVGAnimatedNumber z;
  readonly attribute SVGAnimatedNumber pointsAtX;
  readonly attribute SVGAnimatedNumber pointsAtY;
  readonly attribute SVGAnimatedNumber pointsAtZ;
  readonly attribute SVGAnimatedNumber specularExponent;
  readonly attribute SVGAnimatedNumber limitingConeAngle;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">x</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">x</span> on
            the given <span class="element-name">'feSpotLight'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">y</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">y</span> on
            the given <span class="element-name">'feSpotLight'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">z</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">z</span> on
            the given <span class="element-name">'feSpotLight'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">pointsAtX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">pointsAtX</span> on the given <span class="element-name">'feSpotLight'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">pointsAtY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">pointsAtY</span> on the given <span class="element-name">'feSpotLight'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">pointsAtZ</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">pointsAtZ</span> on the given <span class="element-name">'feSpotLight'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">specularExponent</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">specularExponent</span> on the given <span class="element-name">'feSpotLight'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">limitingConeAngle</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">limitingConeAngle</span> on the given <span class="element-name">'feSpotLight'</span> element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEDisplacementMapElement">28.18 Interface <span class="DOMInterfaceName">SVGFEDisplacementMapElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEDisplacementMapElement</span>
interface corresponds to the <span class="element-name">'feDisplacementMap'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEDisplacementMapElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Channel Selectors
  const unsigned short SVG_CHANNEL_UNKNOWN = 0;
  const unsigned short SVG_CHANNEL_R       = 1;
  const unsigned short SVG_CHANNEL_G       = 2;
  const unsigned short SVG_CHANNEL_B       = 3;
  const unsigned short SVG_CHANNEL_A       = 4;
  readonly attribute SVGAnimatedString      in1;
  readonly attribute SVGAnimatedString      in2;
  readonly attribute SVGAnimatedNumber      scale;
  readonly attribute SVGAnimatedEnumeration xChannelSelector;
  readonly attribute SVGAnimatedEnumeration yChannelSelector;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Channel Selectors</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_CHANNEL_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_CHANNEL_R</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">R</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_CHANNEL_G</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">G</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_CHANNEL_B</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">B</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_CHANNEL_A</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">A</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feDisplacementMap'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in2</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in2</span> on
            the given <span class="element-name">'feDisplacementMap'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">scale</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">scale</span>
            on the given <span class="element-name">'feDisplacementMap'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">xChannelSelector</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">xChannelSelector</span> on the given <span class="element-name">'feDisplacementMap'</span> element. Takes
            one of the Channel Selectors.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">yChannelSelector</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">yChannelSelector</span> on the given <span class="element-name">'feDisplacementMap'</span> element. Takes
            one of the Channel Selectors.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEFloodElement">28.19 Interface <span class="DOMInterfaceName">SVGFEFloodElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEFloodElement</span> interface
corresponds to the <span class="element-name">'feFlood'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEFloodElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString      in1;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feFlood'</span>
          element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEGaussianBlurElement">28.20 Interface <span class="DOMInterfaceName">SVGFEGaussianBlurElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEGaussianBlurElement</span>
interface corresponds to the <span class="element-name">'feGaussianBlur'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEGaussianBlurElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedNumber stdDeviationX;
  readonly attribute SVGAnimatedNumber stdDeviationY;
  void setStdDeviation ( in float stdDeviationX, in float stdDeviationY );
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feGaussianBlur'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">stdDeviationX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">stdDeviation</span> on the given <span class="element-name">'feGaussianBlur'</span> element. Contains
            the X component of attribute <span class="attr-name">stdDeviation</span>.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">stdDeviationY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">stdDeviation</span> on the given <span class="element-name">'feGaussianBlur'</span> element. Contains
            the Y component (possibly computed automatically) of attribute
            <span class="attr-name">stdDeviation</span>.</dd>
      </dl>
    </dd>
  <dt><b>Methods</b></dt>
    <dd><dl>
        <dt><span class="dom-method-name">setStdDeviation</span></dt>
          <dd>Sets the values for attribute <span class="attr-name">stdDeviation</span>. 
            <dl>
              <dt><span class="dom-parameters">Parameters</span></dt>
                <dd>
                  <table border="0" summary="method parameters">
                    <tbody>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">float</span> <span class="dom-parameter-name">stdDeviationX</span></td>
                        <td></td>
                        <td>The X component of attribute <span class="attr-name">stdDeviation</span>.</td>
                      </tr>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">float</span> <span class="dom-parameter-name">stdDeviationY</span></td>
                        <td></td>
                        <td>The Y component of attribute <span class="attr-name">stdDeviation</span>.</td>
                      </tr>
                    </tbody>
                  </table>
                </dd>
            </dl>
            <dl>
              <dt><span class="dom-no-returnvalue">No Return Value</span></dt>
            </dl>
            <dl>
              <dt><span class="dom-no-exceptions">No Exceptions</span></dt>
            </dl>
          </dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEImageElement">28.21 Interface <span class="DOMInterfaceName">SVGFEImageElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEImageElement</span> interface
corresponds to the <span class="element-name">'feImage'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEImageElement : 
                SVGElement,
                SVGURIReference,
                SVGLangSpace,
                SVGExternalResourcesRequired,
                SVGFilterPrimitiveStandardAttributes {
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
};</pre>
      </div>
    </dd>
  <dt> </dt>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedPreserveAspectRatio</span> <span class="dom-attr-name">preserveAspectRatio</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">preserveAspectRatio</span> on the given
          element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEMergeElement">28.22 Interface <span class="DOMInterfaceName">SVGFEMergeElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEMergeElement</span> interface
corresponds to the <span class="element-name">'feMerge'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEMergeElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes {};</pre>
      </div>
      <br></br>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEMergeNodeElement">28.23 Interface <span class="DOMInterfaceName">SVGFEMergeNodeElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEMergeNodeElement</span> interface
corresponds to the <span class="element-name">'feMergeNode'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEMergeNodeElement : SVGElement { 
  readonly attribute SVGAnimatedString in1;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feMergeNode'</span>
          element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEMorphologyElement">28.24 Interface <span class="DOMInterfaceName">SVGFEMorphologyElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEMorphologyElement</span> interface
corresponds to the <span class="element-name">'feMorphology'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEMorphologyElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Morphology Operators
  const unsigned short SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
  const unsigned short SVG_MORPHOLOGY_OPERATOR_ERODE   = 1;
  const unsigned short SVG_MORPHOLOGY_OPERATOR_DILATE  = 2;
  readonly attribute SVGAnimatedString      in1;
  readonly attribute SVGAnimatedEnumeration operator;
  readonly attribute SVGAnimatedNumber      radiusX;
  readonly attribute SVGAnimatedNumber      radiusY;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Morphology Operators</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_MORPHOLOGY_OPERATOR_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_MORPHOLOGY_OPERATOR_ERODE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">erode</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_MORPHOLOGY_OPERATOR_DILATE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">dilate</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feMorphology'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">operator</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">operator</span> on the given <span class="element-name">'feMorphology'</span> element. Takes one of
            the Morphology Operators.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">radiusX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">radius</span>
            on the given <span class="element-name">'feMorphology'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">radiusY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">radius</span>
            on the given <span class="element-name">'feMorphology'</span>
            element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFEOffsetElement">28.25 Interface <span class="DOMInterfaceName">SVGFEOffsetElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEOffsetElement</span> interface
corresponds to the <span class="element-name">'feOffset'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEOffsetElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedNumber dx;
  readonly attribute SVGAnimatedNumber dy;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feOffset'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">dx</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">dx</span> on
            the given <span class="element-name">'feOffset'</span>
          element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">dy</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">dy</span> on
            the given <span class="element-name">'feOffset'</span>
          element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFESpecularLightingElement">28.26 Interface <span class="DOMInterfaceName">SVGFESpecularLightingElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFESpecularLightingElement</span>
interface corresponds to the <span class="element-name">'feSpecularLighting'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFESpecularLightingElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedNumber surfaceScale;
  readonly attribute SVGAnimatedNumber specularConstant;
  readonly attribute SVGAnimatedNumber specularExponent;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feSpecularLighting'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">surfaceScale</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">surfaceScale</span> on the given <span class="element-name">'feSpecularLighting'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">specularConstant</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">specularConstant</span> on the given <span class="element-name">'feSpecularLighting'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">specularExponent</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">specularExponent</span> on the given <span class="element-name">'feSpecularLighting'</span> element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFETileElement">28.27 Interface <span class="DOMInterfaceName">SVGFETileElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFETileElement</span> interface
corresponds to the <span class="element-name">'feTile'</span> element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFETileElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feTile'</span> element.</dd>
      </dl>
    </dd>
</dl>
<br></br>


<h3 id="InterfaceSVGFETurbulenceElement">28.28 Interface <span class="DOMInterfaceName">SVGFETurbulenceElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFETurbulenceElement</span> interface
corresponds to the <span class="element-name">'feTurbulence'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFETurbulenceElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  // Turbulence Types
  const unsigned short SVG_TURBULENCE_TYPE_UNKNOWN      = 0;
  const unsigned short SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
  const unsigned short SVG_TURBULENCE_TYPE_TURBULENCE   = 2;
  // Stitch Options
  const unsigned short SVG_STITCHTYPE_UNKNOWN  = 0;
  const unsigned short SVG_STITCHTYPE_STITCH   = 1;
  const unsigned short SVG_STITCHTYPE_NOSTITCH = 2;
  readonly attribute SVGAnimatedNumber      baseFrequencyX;
  readonly attribute SVGAnimatedNumber      baseFrequencyY;
  readonly attribute SVGAnimatedInteger     numOctaves;
  readonly attribute SVGAnimatedNumber      seed;
  readonly attribute SVGAnimatedEnumeration stitchTiles;
  readonly attribute SVGAnimatedEnumeration type;
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Definition group Turbulence Types</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_TURBULENCE_TYPE_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_TURBULENCE_TYPE_FRACTALNOISE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">fractalNoise</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_TURBULENCE_TYPE_TURBULENCE</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">turbulence</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Definition group Stitch Options</b></dt>
    <dd><dl>
        <dt><b>Defined constants</b></dt>
          <dd>
            <table border="0" summary="enumeration values">
              <tbody>
                <tr>
                  <td valign="top">SVG_STITCHTYPE_UNKNOWN</td>
                  <td></td>
                  <td valign="top">The type is not one of predefined types.
                    It is invalid to attempt to define a new value of this
                    type or to attempt to switch an existing value to this
                    type.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_STITCHTYPE_STITCH</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">stitch</span>.</td>
                </tr>
                <tr>
                  <td valign="top">SVG_STITCHTYPE_NOSTITCH</td>
                  <td></td>
                  <td valign="top">Corresponds to value <span class="attr-value">noStitch</span>.</td>
                </tr>
              </tbody>
            </table>
          </dd>
      </dl>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">baseFrequencyX</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">baseFrequencyX</span> on the given <span class="element-name">'feTurbulence'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">baseFrequencyY</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">baseFrequencyY</span> on the given <span class="element-name">'feTurbulence'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedInteger</span> <span class="dom-attr-name">numOctaves</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">numOctaves</span> on the given <span class="element-name">'feTurbulence'</span> element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">seed</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">seed</span> on
            the given <span class="element-name">'feTurbulence'</span>
            element.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">stitchTiles</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">stitchTiles</span> on the given <span class="element-name">'feTurbulence'</span> element. Takes one of
            the Stitching Options.</dd>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedEnumeration</span> <span class="dom-attr-name">type</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">type</span> on
            the given <span class="element-name">'feTurbulence'</span>
            element. Takes one of the Turbulence Types.</dd>
      </dl>
    </dd>
</dl>

<div class="new">
<h3 id="InterfaceSVGFEDropShadowElement">28.29 Interface <span class="DOMInterfaceName">SVGFEDropShadowElement</span></h3>


<p>The <span class="DOMInterfaceName">SVGFEDropShadowElement</span> interface
corresponds to the <span class="element-name">'feDropShadow'</span>
element.</p>
<dl>
  <dt><br></br>
  <b>IDL Definition</b></dt>
    <dd>
      <div class="idl-code">
      <pre>interface SVGFEDropShadowElement : 
                SVGElement,
                SVGFilterPrimitiveStandardAttributes { 
  readonly attribute SVGAnimatedString in1;
  readonly attribute SVGAnimatedNumber dx;
  readonly attribute SVGAnimatedNumber dy;
  readonly attribute SVGAnimatedNumber stdDeviationX;
  readonly attribute SVGAnimatedNumber stdDeviationY;
  void setStdDeviation ( in float stdDeviationX, in float stdDeviationY );
};</pre>
      </div>
      <br></br>
    </dd>
  <dt><b>Attributes</b></dt>
    <dd><dl>
        <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedString</span> <span class="dom-attr-name">in1</span></dt>
          <dd>Corresponds to attribute <span class="attr-name">in</span> on
            the given <span class="element-name">'feDropShadow'</span> element.</dd>
	   <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">dx</span></dt>
    <dd>Corresponds to attribute <span class="attr-name">dx</span> on the
      given <span class="element-name">'feDropShadow'</span> element.</dd>
  <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">dy</span></dt>
 <dd>Corresponds to attribute <span class="attr-name">dy</span> on the
      given <span class="element-name">'feDropShadow'</span> element.</dd>
      <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">stdDeviationX</span></dt>
    <dd>Corresponds to attribute <span class="attr-name">stdDeviation</span>
      on the given <span class="element-name">'feDropShadow'</span> element.
      Contains the X component of attribute <span class="attr-name">stdDeviation</span>.</dd>
  <dt><span class="dom-readonly">readonly</span> <span class="dom-attr-type">SVGAnimatedNumber</span> <span class="dom-attr-name">stdDeviationY</span></dt>
    <dd>Corresponds to attribute <span class="attr-name">stdDeviation</span>
      on the given <span class="element-name">'feDropShadow'</span> element.
      Contains the Y component of attribute <span class="attr-name">stdDeviation</span>.</dd>
      </dl>
    </dd>
<dt><b>Methods</b></dt>
    <dd><dl>
        <dt><span class="dom-method-name">setStdDeviation</span></dt>
          <dd>Sets the values for attribute <span class="attr-name">stdDeviation</span>. 
            <dl>
              <dt><span class="dom-parameters">Parameters</span></dt>
                <dd>
                  <table border="0" summary="method parameters">
                    <tbody>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">float</span> <span class="dom-parameter-name">stdDeviationX</span></td>
                        <td></td>
                        <td>The X component of attribute <span class="attr-name">stdDeviation</span>.</td>
                      </tr>
                      <tr>
                        <td valign="top">in <span class="dom-parameter-type">float</span> <span class="dom-parameter-name">stdDeviationY</span></td>
                        <td></td>
                        <td>The Y component of attribute <span class="attr-name">stdDeviation</span>.</td>
                      </tr>
                    </tbody>
                  </table>
                </dd>
            </dl>
            <dl>
              <dt><span class="dom-no-returnvalue">No Return Value</span></dt>
            </dl>
            <dl>
              <dt><span class="dom-no-exceptions">No Exceptions</span></dt>
            </dl>
          </dd>
      </dl>
    </dd>
</dl>
<br></br>
</div>

<h2 id="references1">29 References</h2>

<h3 id="normref">29.1 Normative References</h3>

<dl>
  <dt id="ref-NVDL"><strong class="normref">[NVDL]</strong></dt>
    <dd><strong>Document Schema Definition Languages (DSDL) — Part 4:
      Namespace-based Validation Dispatching Language — NVDL. ISO/IEC FCD
      19757-4</strong>, See <a href="http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/">http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/</a>
    </dd>
  <dt id="ref-PORTERDUFF"><strong class="normref">[PORTERDUFF]</strong></dt>
    <dd><strong>Compositing Digital Images</strong>, T. Porter, T. Duff,
      SIGGRAPH '84 Conference Proceedings, Association for Computing
      Machinery, Volume 18, Number 3, July 1984. </dd>
  <dt id="ref-RNG"><strong class="normref">[RelaxNG]</strong></dt>
    <dd><strong>Document Schema Definition Languages (DSDL) — Part 2:
      Regular grammar- based validation — RELAX NG. ISO/IEC FDIS
      19757-2:2002(E)</strong>, J. Clark, <span class="ruby"><span lang="ja" xml:lang="ja" class="rb">村田 真</span> <span class="rp">(</span><span class="rt"><span class="familyname">Murata</span> M.</span><span class="rp">)</span></span>, eds., 12 December 2002. See <a href="http://www.y12.doe.gov/sgml/sc34/document/0362_files/relaxng-is.pdf">http://www.y12.doe.gov/sgml/sc34/document/0362_files/relaxng-is.pdf</a>
    </dd>
  <dt id="ref-Schema2"><strong class="normref">[Schema2]</strong></dt>
    <dd><strong>XML Schema Part 2: Datatypes Second Edition</strong>, P.
      Biron, A. Malhotra, eds. W3C, 28 October 2004 (Recommendation). Latest
      version available at <a href="http://www.w3.org/TR/xmlschema-2/">http://www.w3.org/TR/xmlschema-2/</a>.
      See also <a href="http://www.w3.org/TR/2005/NOTE-xml11schema10-20050511/">Processing
      XML 1.1 documents with XML Schema 1.0 processors</a>. </dd>
  <dt id="ref-svg11"><strong class="normref">[SVG11]</strong></dt>
    <dd><strong>Scalable Vector Graphics (SVG) 1.1 Specification</strong>,
      Dean Jackson editor, W3C, 14 January 2003 (Recommendation). See <a href="http://www.w3.org/TR/2003/REC-SVG11-20030114/">http://www.w3.org/TR/2003/REC-SVG11-20030114/</a>
    </dd>
</dl>

<h3 id="informref">29.2 Informative References</h3>

<dl>
  <dt id="ref-WHATWG"><strong class="informref">[WHATWG]</strong></dt>
    <dd><strong>WHATWG HTML5 proposal</strong>, Ian Hickson editor, Google,
      22 February 2007 (Proposal). See <a href="http://www.whatwg.org/specs/web-apps/current-work/">http://www.whatwg.org/specs/web-apps/current-work/</a>
    </dd>
</dl>
</body>

</html>