radialGradient

Radial gradient limits are determined by a circle, where the center is the 0% stop point and the outer circumference defines the 100% stop point.

Attribute Description
cx The x-axis coordinate of the center of the circle. If the attribute is not specified, the default is 50%.
cy The y-axis coordinate of the center of the circle. If the attribute is not specified, the default is 50%.
r The radius of the circle. If the attribute is not specified, the default is 0%.
gradientUnits

Can be either userSpaceOnUse or objectBoundingBox; objectBoundingBox is the default.

  • userSpaceOnUsecx, cy, and r values use the coordinate system at the time the gradient element is referenced.

  • objectBoundingBoxcx, cy, and r values use the coordinate system that was established by the bounding box of the element to which the gradient is applied.