Learn R Programming

gridSVG (version 1.4-0)

feColorMatrix: Apply a matrix transformation on colour values.

Description

This filter applies a matrix transformation on the RGBA colour and alpha values of every pixel on the input graphics to produce a result with a new set of RGBA colour and alpha values.

Usage

feColorMatrix(input = NA,
              type = c("matrix", "saturate",
                       "hueRotate", "luminanceToAlpha"),
              values = NULL, ...)

Arguments

input
Identifies an input for this filter primtive. See filterInputs.
type
Indicates the type of matrix operation. The keyword "matrix" 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 w
values
The contents of values depend on what type is:

  • matrixA 5x4 matrix of numeric values.
  • saturateA single element numeric vector whose value is between 0 and 1.
  • hueRo

...
Further arguments to be passed onto fe.

Value

  • An fe.color.matrix object.

Details

For more information about this primitive, consult the reference to the SVG specification.

References

www.w3.org/TR/SVG/filters.html#feColorMatrixElement

See Also

filterEffect, fe.