Scenic.Primitive.Line (Scenic v0.10.3) View Source
Draw a line on the screen.
The data for a line is a tuple containing two points.
point_a- position to start drawing from
point_b- position to draw to
This primitive recognizes the following styles
hidden- show or hide the primitive
cap- says how to draw the ends of the line.
stroke- stroke the outline of the primitive. In this case, only the curvy part.
You should add/modify primitives via the helper functions in
Link to this section Summary
Link to this section Functions
Returns a the midpoint of the line. This is used as the default pin when applying rotate or scale transforms.
valid_styles() :: [:cap | :hidden | :stroke, ...]
Returns a list of styles recognized by this primitive.