drawArc

fun drawArc(uiElement: UIElement, x: Float, y: Float, radius: Float, degreesFrom: Float, degreesTo: Float): Boolean

Draw arc command, to draw an arc on the glasses display

The API arc directions are:

  • counter clock wise

  • zero is on the right side (east)

Limitations:

  • can't be filled with background

  • angleToDeg angleFromDeg

  • angles are 0,360

Return

true if the given information is valid

Parameters

uiElement

the UIKit.widgets.Arc ui element (or a custom control)

x

center x pixel coordinate

y

center y pixel coordinate

radius

arc radius in pixels

degreesFrom

start degrees

degreesTo

end degrees