<!DOCTYPE html>
<
html
>
<
head
>
<
meta
charset
=
"utf-8"
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
>
<
title
></
title
>
<
meta
name
=
"description"
content
=
""
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1"
>
<
link
rel
=
"stylesheet"
href
=
""
>
</
head
>
<
body
>
<
svg
width
=
"30%"
height
=
"30%"
viewBox
=
"0 0 300 500"
preserveAspectRatio
=
"xMidYMid meet"
<defs>
<
g
id
=
"squares"
>
<
rect
x
=
"0"
y
=
"0"
width
=
"30"
height
=
"30"
style
=
"fill: #f00;"
/>
<
rect
x
=
"40"
y
=
"0"
width
=
"30"
height
=
"30"
style
=
"fill: #0f0;"
/>
<
rect
x
=
"80"
y
=
"0"
width
=
"30"
height
=
"30"
style
=
"fill: #00f;"
/>
<
rect
x
=
"120"
y
=
"0"
width
=
"30"
height
=
"30"
style
=
"fill: #ff0;"
/>
<
rect
x
=
"160"
y
=
"0"
width
=
"30"
height
=
"30"
style
=
"fill: #f0f;"
/>
<
rect
x
=
"200"
y
=
"0"
width
=
"30"
height
=
"30"
style
=
"fill: #0ff;"
/>
</
g
>
</
defs
>
<
use
href
=
"#squares"
/>
<
text
x
=
"70"
y
=
"50"
>Reference</
text
>
<
filter
id
=
"colorMeTheSame"
>
<
feColorMatrix
in
=
"SourceGraphic"
type
=
"matrix"
values="1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0" />
</
filter
>
<
use
href
=
"#squares"
transform
=
"translate(0 70)"
filter
=
"url(#colorMeTheSame)"
/>
<
text
x
=
"70"
y
=
"120"
>Identity matrix </
text
>
<
filter
id
=
"colorMeGreen"
>
<
feColorMatrix
in
=
"SourceGraphic"
type
=
"matrix"
values="0 0 0 0 0
1 1 1 1 0
0 0 0 0 0
0 0 0 1 0" />
</
filter
>
<
use
href
=
"#squares"
transform
=
"translate(0 140)"
filter
=
"url(#colorMeGreen)"
/>
<
text
x
=
"70"
y
=
"190"
>rgbToGreen </
text
>
<
filter
id
=
"colorMeSaturate"
>
<
feColorMatrix
in
=
"SourceGraphic"
type
=
"luminanceToAlpha"
values
=
"0.2"
/>
</
filter
>
<
use
href
=
"#squares"
transform
=
"translate(0 210)"
filter
=
"url(#colorMeSaturate)"
/>
<
text
x
=
"70"
y
=
"260"
>luminanceToAlpha </
text
>
<
filter
id
=
"colorMeHueRotate"
>
<
feColorMatrix
in
=
"SourceGraphic"
type
=
"saturate "
values
=
"180"
/>
</
filter
>
<
use
href
=
"#squares"
transform
=
"translate(0 280)"
filter
=
"url(#colorMeHueRotate)"
/>
<
text
x
=
"70"
y
=
"330"
>saturate</
text
>
<
filter
id
=
"colorMeLTA"
>
<
feColorMatrix
in
=
"SourceGraphic"
type
=
"hueRotate"
/>
</
filter
>
<
use
href
=
"#squares"
transform
=
"translate(0 350)"
filter
=
"url(#colorMeLTA)"
/>
<
text
x
=
"70"
y
=
"400"
>hueRotate</
text
>
</
svg
>
<
script
src
=
""
async defer></
script
>
</
body
>
</
html
>