2 <svg xmlns=
"http://www.w3.org/2000/svg" version=
"1.1">
5 <!-- so that other documents can svg:use this one and force it to
9 <!-- Keep all black pixels black, and change any others to white. -->
10 <!-- NOTE: alpha is preserved, so it will not adjust alpha edges -->
11 <filter id=
"NonBlackToWhite" x=
"0%" y=
"0%" width=
"100%" height=
"100%">
12 <feColorMatrix type=
"matrix" values=
"255 255 255 0 0
18 <!-- Keep all white pixels white, and change any others to black. -->
19 <!-- NOTE: alpha is preserved, so it will not adjust alpha edges -->
20 <filter id=
"NonWhiteToBlack" x=
"0%" y=
"0%" width=
"100%" height=
"100%">
22 <feFuncR type=
"linear" slope=
"-1" intercept=
"1" />
23 <feFuncG type=
"linear" slope=
"-1" intercept=
"1" />
24 <feFuncB type=
"linear" slope=
"-1" intercept=
"1" />
25 </feComponentTransfer>
26 <feColorMatrix type=
"matrix" values=
"255 255 255 0 0
31 <feFuncR type=
"linear" slope=
"-1" intercept=
"1" />
32 <feFuncG type=
"linear" slope=
"-1" intercept=
"1" />
33 <feFuncB type=
"linear" slope=
"-1" intercept=
"1" />
34 </feComponentTransfer>
37 <!-- Threshold colours into sixteen steps per channel. -->
38 <filter id=
"ThresholdRGB" x=
"0%" y=
"0%" width=
"100%" height=
"100%" color-interpolation-filters=
"sRGB">
40 <feFuncR type=
"discrete" tableValues=
"0 .125 .25 .375 .5 .625 .75 .875 1" />
41 <feFuncG type=
"discrete" tableValues=
"0 .125 .25 .375 .5 .625 .75 .875 1" />
42 <feFuncB type=
"discrete" tableValues=
"0 .125 .25 .375 .5 .625 .75 .875 1" />
43 </feComponentTransfer>