Scenic.Primitives.rect_spec

You're seeing just the function rect_spec, go back to Scenic.Primitives module for more information.
Link to this function

rect_spec(dims, opts \\ [])

View Source

Specs

rect_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 = rect_spec(
  {{10,20}, {100,20}},
  fill: :red, stroke: {3, :blue}, join: :round
)

graph = rect.(graph)