feColorMatrix {gridSVG}R Documentation

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 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

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

See Also

filterEffect, fe.


[Package gridSVG version 1.7-5 Index]