Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PictureLinearGradient-class

Class "PictureLinearGradient"


Description

A description of a linear 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

x0:

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

y0:

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

x1:

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

y1:

Object of class "numeric". The ending y-location of the linear 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 "linearGradient" 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 = "PictureLinearGradient", tm = "matrix"): transform the locations that represent the bounds and direction of the gradient by a 3x3 transformation matrix.

grobify

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

Author(s)

Simon Potter

See Also


grImport2

Importing 'SVG' Graphics

v0.2-0
GPL (>= 2)
Authors
Simon Potter [aut], Paul Murrell [aut, cre] (<https://orcid.org/0000-0002-3224-8858>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.