cx method

cx

Sets the ‘cx’ attribute of the SVG ‘radialGradient’ element, specifying the x-coordinate of the center of the gradient.

Returns

The current instance of SVGRadialGradientElementBuilder for method chaining.

def cx(self, value, type):
    ...
ParameterTypeDescription
valuefloatThe x-coordinate of the gradient’s center.
typeLengthTypeThe unit of measurement for the x-coordinate (default is pixels).

See Also