feColorMatrix: Apply a matrix transformation on colour values.

Description Usage Arguments Details Value Author(s) References See Also

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

1
2
3
4
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 without specifying a complete matrix.

values

The contents of values depend on what type is:

  • matrix A 5x4 matrix of numeric values.

  • saturate A single element numeric vector whose value is between 0 and 1.

  • hueRotate A single element numeric vector whose value represents degrees.

  • luminanceToAlpha Should be left as NULL as there are no applicable values.

...

Further arguments to be passed onto fe.

Details

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

Value

An fe.color.matrix object.

Author(s)

Simon Potter

References

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

See Also

filterEffect, fe.


sachsmc/gridSVG documentation built on May 29, 2019, 12:44 p.m.