Object2D.Rotation

From Xojo Documentation

Revision as of 15:32, 4 February 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Dim 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)