Arc
Draws a circular arc in screen coordinates.
<Arc ... />
Overview
Angles are degrees, clockwise from east, in a y-down view. Equal angles
close the circle. stroke is a semantic color name.
Topics
Properties
| Name | Type | Required | Description |
|---|---|---|---|
cornerRadius |
number | optional | Draws the arc as a filled sector of its band with corners rounded this many points. |
endAngle |
number | optional | Ending angle in degrees. |
height |
number | optional | Component-specific setting passed to the native control. |
lineCap |
string | optional | butt or round. |
diameter |
number | optional | With fitDiameter, the circle's diameter in units. |
inset |
number | optional | Draws the arc as a filled sector of its band, every edge moved in by half this many points, so neighbours are this far apart. |
fitDiameter |
number | optional | Scales the arc to its frame: the frame's shorter side spans this many units, and diameter and lineWidth are in those units. |
lineWidth |
number | optional | Stroke width in points. |
startAngle |
number | optional | Starting angle in degrees. |
stroke |
string | optional | Semantic stroke color. |
strokeAlpha |
number | optional | Stroke opacity from 0 to 1. |
width |
number | optional | Component-specific setting passed to the native control. |
Platform notes
- AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.
Source: lua/embedded/AppKit.lua:2111 (AppKit.Arc)