Scenic v0.10.2 Scenic.Primitive.Ellipse View Source
Draw an ellipse on the screen.
Data
{radius_1, radius_2}
The data for an arc is a single number.
radius_1
- the radius of the ellipse in one directionradius_2
- the radius of the ellipse in the other direction
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.
Note: you can achieve the same effect with a Circle primitive by applying a :size transform to it with unequal values on the axes
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.