Scenic.Primitives.script
You're seeing just the function
script
, go back to Scenic.Primitives module for more information.
Specs
script( source :: Scenic.Graph.t() | Scenic.Primitive.t(), name :: atom() | String.t() | pid() | reference(), options :: list() ) :: Scenic.Graph.t() | Scenic.Primitive.t()
Add a named script to a graph.
Scripts are defined by a name, which can be an atom, string, pid or reference.
NOTE: this doesn't add the script itself. Only places a reference to it in
the graph. You still need to add the script to the ViewPort via
Scenic.ViewPort.put_script/4
.
Data:
name
Styles
Setting styles on a script is similar to setting styles on a group
Example:
graph
|> script( :my_script )