' Compensation for radii spanning over 0 degree marker if sinEnd > DegreesToRadians(360) and dAngle < (sinEnd - DegreesToRadians(360)) then dAngle = dAngle + DegreesToRadians(360) end if
If sinStart < sinEnd And (dAngle > sinStart And dAngle < sinEnd) Then 'This is the "corrected" angle 'To change back, change the minus to a plus Pixel(lX + ltX, lY + ltY) = ForegroundColourIndex End If End Sub
' Arc Kindly donated by Richard Deeming (www.webjx.com), vast improvement on the ' previously kludgy Arc function. Public Sub Arc(ByVal lX, ByVal lY, ByVal lRadiusX, ByVal lRadiusY, ByVal sinStartAngle, ByVal sinArcAngle) ' Draw an arc at point lX,lY with radius lRadius ' running from sinStartAngle degrees for sinArcAngle degrees Dim lAlpha, lBeta, S, T, lTempX, lTempY Dim dStart, dEnd