I want it to be drawn so that the startposx and startposy always will be the center of the arc.
The code below will put it centered as long as the ratation is 0, but some trigonometry is probably required to get this result at any rotation.
Code: Select all
startposx = 320
startposy = 240
arcrot = 0
SetFillStyle(#FILLCOLOR)
xrad = 50
yrad = 80
For arcrot = 0 To 360
Cls
Line(0, 240, 640, 240, #WHITE)
Line(320, 0, 320, 480, #WHITE)
Arc(startposx-xrad, startposy-yrad, xrad, yrad, 90, 270, #RED, {Rotate = arcrot})
Wait(1)
Next
WaitLeftMouse