Scenic.Primitives.rectangle_spec
You're seeing just the function
rectangle_spec
, go back to Scenic.Primitives module for more information.
Specs
rectangle_spec(dims :: width_and_height(), options :: list()) :: Scenic.Graph.deferred()
Create the specification that adds a rectangle to a graph.
See the documentation for rectangle/3
for details.
Example:
rect = rectangle_spec(
{{10,20}, {100,20}},
fill: :red, stroke: {3, :blue}, join: :round
)
graph = rect.(graph)