private static State <FilterChainState, XElement> BuildColorMatrix(ColorMatrix matrix) { var element = XElementBuilder .WithName("feColorMatrix") .Add( new XAttribute("type", "matrix"), new XAttribute( "values", matrix.GetMatrixValues().Select(x => x.ToString()).Pipe(x => string.Join(" ", x)))); return(element.Pipe(BuildIOFilter).Select(x => x.Build())); }