Scratch for Java

Shape::rotate()

Rotate the shape by the specified angle around a given anchor point.

Syntax

Java

.rotate(theta, anchorX, anchorY)

Parameters

Name Data Type Description
theta double the angle in degrees to rotate
anchorX double the x-coordinate of the anchor point
anchorY double the y-coordinate of the anchor point

Return

Shape

rotate()