Scenic.Graph.add
add
, go back to Scenic.Graph module for more information.
Specs
add(graph :: t(), primitive :: Scenic.Primitive.t()) :: t()
Add a pre-built primitive to the current group in the graph.
This is usually called during graph construction. When a new Group primitive is added to a Graph, it marks the new group as the current one before calling the group's builder function. This is what allows you to add primitives to the correct place in the new Group.
Note: All primitives added to a group are appended to the draw order.
Specs
Build and add a primitive to the current group in the graph.
This is usually called during graph construction. When a new Group primitive is added to a Graph, it marks the new group as the current one before calling the group's builder function. This is what allows you to add primitives to the correct place in the new Group.
Note: All primitives added to a group are appended to the draw order.