fePointLight: Create a Point Light Source

View source: R/filters.R

fePointLightR Documentation

Create a Point Light Source

Description

This filter primitive defines a point light source that can be used within a lighting filter primitive: feDiffuseLighting or feSpecularLighting.

Usage

fePointLight(z = unit(0, "npc"), default.units = "npc", zdim = "x", ...)

Arguments

z

A numeric vector or unit object specifying z-location.

default.units

A string indicating the default units to use if z if given as a numeric vector.

zdim

Either "x" or "y". Determines the dimension to which z will be located relative to. This is necessary because R graphics has no concept of a z-dimension.

...

Further arguments to be passed onto fe.

Details

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

Value

An fe.point.light object.

Author(s)

Simon Potter

References

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

See Also

filterEffect, fe, feDiffuseLighting, feSpecularLighting.


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