Scenic.Primitive.Rectangle (Scenic v0.10.3) View Source
Draw a rectangle on the screen.
The data for a line is a tuple containing two numbers.
width- width of the rectangle
height- height of the rectangle
This primitive recognizes the following styles
hidden- show or hide the primitive
fill- fill in the area of the primitive
stroke- stroke the outline of the primitive. In this case, only the curvy part.
join- control how segments are joined.
miter_limit- control how segments are joined.
You should add/modify primitives via the helper functions in
Link to this section Summary
Link to this section Functions
Returns the centroid of the rectangle. This is used as the default pin when applying rotate or scale transforms.
valid_styles() :: [:fill | :hidden | :stroke, ...]
Returns a list of styles recognized by this primitive.