Simple, elliptical border.
Style of the border's perimeter line.
Style of the border's interior area.
If not null, makes the ratio of width / height fixed. A value of 1 makes circles, for example.
null
width / height
1
Calculates the border's bounding box for an origin-centered rectangle of the given size.
Returns a point on the border in the given direction.
The angle can be converted to a direction vector by taking cos(angle) and sin(angle) to be its x and y respectively.
cos(angle)
sin(angle)
x
y
Draws the border within the previously calculated bounding box.
Simple, elliptical border.