feOffset: Offset an input image relative to its current position.

View source: R/filters.R

feOffsetR Documentation

Offset an input image relative to its current position.

Description

This filter primitive offsets the input image relative to its current position in the image space by the specified vector.

This is important for effects like drop shadows.

Usage

feOffset(input = NA,
         dx = unit(0, "npc"), dy = unit(0, "npc"),
         default.units = "npc", ...)

Arguments

input

Identifies an input for this filter primtive. See filterInputs.

dx

The amount to offset input by along the x-axis.

dy

The amount to offset input by along the y-axis.

default.units

A string indicating the default units to use if dx or dy are only given as numeric vectors.

...

Further arguments to be passed onto fe.

Details

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

Value

An fe.offset object.

Author(s)

Simon Potter

References

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

See Also

filterEffect, fe.


gridSVG documentation built on March 31, 2023, 11:17 p.m.