Object2D.Rotation

From Xojo Documentation

Property (As Double )
aObject2D.Rotation = newDoubleValue
or
DoubleValue = aObject2D.Rotation

Supported for all project types and targets.

Clockwise rotation, in radians, around the X, Y point. Only set the rotation after you have drawn all your objects.

Sample Code

This code rotates the arc 0.9 radians.

Var a As New ArcShape
a.Height = 150
a.Width = 150
a.Rotation = 0.90
a.arcAngle = 1.57
a.startAngle = -1.57
a.Border = 100
a.BorderColor = &c0000ff
a.BorderWidth = 2.75
a.Fill = 50
a.FillColor = RGB(255, 0, 127)
g.DrawObject(a, 100, 100)