LinearGradientElementGradientTransformAttribute: gradientTransform

Description Available Attribute Values Details Animatable Used by the Elements

Description

Sets a coordinate transformation to be applied to the linear gradient. This coordinate transformation can constructed as the composition of a sequence of the simpler basic linear transformations.

Available Attribute Values

The value is defined as follows:

<transform-list>

Specifies sequence transforms of the gradient. Exotic effects, such as skewing can be made using these additional transforms. The default is the identity.

Details

A transform-list is named list of coordinate transforms to be applied in the order in which they appear. For example: list(translate=c(100,20), scale=1.2, rotate=c(30,100,20)) The list names and corresponding values (all numeric) are summarized in the following table Transforms

name value action
matrix a 2x3 matrix m. Transforms coordinates x,y to x'y' by c(x',y',1)<-m %*% c(x,y,1), where m'<-rbind(m,c(0,0,1).
translate x or c(x,y) Translates by c(x, y). If only x is specified, y is set to 0.
scale sx or c(sx, sy) Scales by sx, sy. If only sx is specified, sy=sx.
rotate θ or c( θ,x,y). Rotates by theta degrees about the point c(x,y). If only the θ is specified, then x=y=0.
skewX θ_x Skews along the x-axis by an angle of θ_x , where θ_x is interpreted in units of degrees.
skewY θ_y Skews along the y-axis by an angle of θ_y , where θ_y is interpreted in units of degrees.

Animatable

Using: animateTransform . Supports Additive: Yes .

Used by the Elements

Gradient Elements

linearGradient


mslegrand/svgR documentation built on Jan. 21, 2020, 2:59 p.m.