Menu Home

gradientUnits

osbo.com | SVG | Attributes | gradientUnits

linearGradient

The gradientUnits SVG attribute specifies the coordinate system for attributes x1, y1, x2, and y2.

Syntax

Value

objectBoundingBox | userSpaceOnUse

Default

objectBoundingBox

Examples

objectBoundingBox

userSpaceOnUse

Internal

gradientTransform

href

spreadMethod

x1

x2

y1

y2

External

World Wide Web Consortium (W3C)

radialGradient

The gradientUnits SVG attribute specifies the coordinate system for attributes cx, cy, r, fx, fy, and fr.

Syntax

Value

objectBoundingBox | userSpaceOnUse

Default

objectBoundingBox

Examples

objectBoundingBox

userSpaceOnUse

Internal

cx

cy

fr

fx

fy

gradientTransform

href

r

spreadMethod

External

World Wide Web Consortium (W3C)