PictureRadialGradient-class: Class "PictureRadialGradient"

PictureRadialGradient-classR Documentation

Class "PictureRadialGradient"

Description

A description of a radial gradient that is meant to be used as part of a larger picture (as it does not directly draw anything itself). This object will have no effect unless it is used in conjunction with the gridSVG package.

Slots

x:

Object of class "numeric". The x-location of the radial gradient.

y:

Object of class "numeric". The y-location of the radial gradient.

r:

Object of class "numeric". The radius of the radial gradient.

fx:

Object of class "numeric". The x-location of the focal point of the radial gradient.

fy:

Object of class "numeric". The y-location of the focal point of the radial gradient.

spreadMethod:

Object of class "character" that specifies what happens when a gradient ends within its bounds. Must be one of "pad", "reflect" or "repeat". See "radialGradient" in the gridSVG package for more information.

stops:

Object of class "list" that is a list of objects of class "PictureGradientStop".

Extends

Class "PictureContent".

Methods

applyTransform

signature(object = "PictureRadialGradient", tm = "matrix"): transform the locations that represent the bounds and direction of the gradient by a 3x3 transformation matrix.

grobify

signature(object = "PictureRadialGradient"): convert to a gradient object for use with the gridSVG package.

Author(s)

Simon Potter

See Also

Picture-class, grid.picture.


grImport2 documentation built on Oct. 27, 2023, 9:07 a.m.