set_gradient method

set_gradient

Set the gradient fill type and direction.

def set_gradient(self, type, angle, direction):
    ...
ParameterTypeDescription
typeGradientFillTypeGradient fill type.
anglefloatThe angle. Only applies for GradientFillType.Linear.
directionGradientDirectionTypeThe direction type. Only applies for GradientFillType.Radial and GradientFillType.Rectangle.

See Also