Scenic.Primitives.path_spec
You're seeing just the function
path_spec
, go back to Scenic.Primitives module for more information.
Specs
path_spec(elements :: list(), options :: list()) :: Scenic.Graph.deferred()
Create the specification that adds a path to a graph.
See the documentation for path/3
for details.
Example:
path = path_spec( [
:begin,
{:move_to, 10, 20},
{:line_to, 30, 40},
{:bezier_to, 10, 11, 20, 21, 30, 40},
{:quadratic_to, 10, 11, 50, 60},
{:arc_to, 70, 80, 90, 100, 20},
:close_path,
],
stroke: {4, :blue}, cap: :round
)
graph = path.(graph)