Scratch for Java

Shape::rotate()

Turns the shape about a point, from the x axis towards the y axis (anticlockwise when y points up).

Examples

View on GitHub

Syntax

Java

.rotate(degrees, anchorX, anchorY)

Parameters

Name Data Type Description
degrees double the angle
anchorX double x of the point to turn about
anchorY double y of the point to turn about

Return

Shape

rotate()

Create Shareable URL

Select Sections