feMorphology: "Fatten" or "thin" artwork.

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

View source: R/filters.R

Description

This filter primitive performs "fattening" or "thinning" of artwork. It is particularly useful for fattening or thinning an alpha channel.

Usage

1
2
feMorphology(input = NA, operator = c("erode", "dilate"),
             radius = unit(0, "npc"), default.units = "npc", ...)

Arguments

input

Identifies an input for this filter primtive. See filterInputs.

operator

A keyword indicating whether to erode (i.e., thin) or dilate (fatten) the source graphic, input.

radius

The radius (or radii) for the operation. If two values are provided, the first value represents a x-radius and the second value represents a y-radius. If one radius is provided, then that value is used for both xand y.

default.units

A string indicating the default units to use if radius is only given as a numeric vector.

...

Further arguments to be passed onto fe.

Details

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

Value

An fe.morphology object.

Author(s)

Simon Potter

References

http://www.w3.org/TR/SVG/filters.html#feMorphologyElement

See Also

filterEffect, fe.


gridSVG documentation built on April 28, 2020, 9:05 a.m.