Scenic v0.10.2 Scenic.Primitive.Arc View Source
Draw an arc on the screen.
An arc is a segment that traces part of the outline of a circle. If you are looking for something shaped like a piece of pie, then you want a segment.
Arcs are often drawn on top of a segment to get an affect where a piece of pie is filled in, but only the curvy edge is stroked.
Note that you can fill an arc, but that will result in a shape that looks like a potato wedge.
Data
{radius, start, finish}
The data for an arc is a three-tuple.
radius
- the radius of the arcstart
- the starting angle in radiansfinish
- end ending angle in radians
Styles
This primitive recognizes the following styles
hidden
- show or hide the primitivefill
- fill in the area of the primitivestroke
- stroke the outline of the primitive. In this case, only the curvy part.
Usage
You should add/modify primitives via the helper functions in
Scenic.Primitives
Link to this section Summary
Functions
Returns a list of styles recognized by this primitive
Link to this section Functions
Link to this function
valid_styles()
View Source
valid_styles()
View Source
valid_styles() :: [:fill | :hidden | :stroke]
valid_styles() :: [:fill | :hidden | :stroke]
Returns a list of styles recognized by this primitive.