LinearGradientElementSpreadMethodAttribute: spreadMethod

Description Available Attribute Values Used by the Elements

Description

Governs the behaviour that should occur if the gradient starts or ends inside the bounds of the target rectangle.

Available Attribute Values

The value can be any one of the following:

'pad'

Specifies to extend the painting beyond the gradient vector of the linearGradient, by using terminal colors found at the end points. (Default)

'reflect'

Specifies to extend the painting beyond the gradient vector of the linearGradient, by reflecting the gradient pattern. The reflections are continued until the entire gradient region is filled. For example, we might have a pattern of red white and blue (red at the start of the gradient vector, blue at the end), and then observe: red white blue blue white red red white blue.

'repeat'

Specifies to extend the painting beyound the gradient vector of the linearGradient, by repeating the gradient pattern until the region is filled. For example, For example, we might have a pattern of red white and blue (red at the start of the gradient vector, blue at the end), and then observe: red white blue red white blue red white blue.

Used by the Elements

Gradient Elements

linearGradient


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