The gradientColor.angle property contains a read-only gradient angle. There is no method in API to rotate gradient, we have to use rotate() method to rotate objects. The angle argument is required, the optional ones are: changePositions, changeFillPatterns, changeFillGradients, changeStrokePattern, rotateAbout. Let’s rotate the gradient by 60 degrees without rotating the…