File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,19 @@ defmodule Scenic.Primitive.Path do
37
37
38
38
## `Path` vs. `Script`
39
39
40
- Both the `Path` and the `Script` primitives use the `Scenic.Script` to create scripts
41
- are sent to the drivers for drawing. The difference is that a Path is far more limited
40
+ Both the `Path` and the `Script` primitives use the `Scenic.Script` to create scripts that
41
+ are sent to the driver for drawing. The difference is that a Path is far more limited
42
42
in what it can do, and is inserted inline with the compiled graph that created it.
43
43
44
44
The script primitive, on the other hand, has full access to the API set of
45
45
`Scenic.Script` and accesses scripts by reference.
46
46
47
- The inline vs. reference difference is important. A simple path will be consume
48
- fewer resources. BUT it will cause the entire graph to be recompile and resent
49
- to the drivers if you change it.
47
+ The inline vs. reference difference is important. A simple path will consume
48
+ fewer resources. BUT it will cause the entire graph to be recompiled and resent
49
+ to the driver if you change it.
50
50
51
51
A script primitive references a script that you create separately from the
52
- the graph. This means that any changes to the graph (such as an animation) will
52
+ graph. This means that any changes to the graph (such as an animation) will
53
53
NOT need to recompile or resend the script.
54
54
55
55
## Usage
Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ defmodule Scenic.Primitive.Script do
24
24
25
25
## `Script` vs. `Path`
26
26
27
- Both the `Path` and the `Script` primitives use the `Scenic.Script` to create scripts
28
- are sent to the drivers for drawing. The difference is that a Path is far more limited
27
+ Both the `Path` and the `Script` primitives use the `Scenic.Script` to create scripts that
28
+ are sent to the driver for drawing. The difference is that a Path is far more limited
29
29
in what it can do, and is inserted inline with the compiled graph that created it.
30
30
31
31
The script primitive, on the other hand, has full access to the API set of
32
32
`Scenic.Script` and accesses scripts by reference.
33
33
34
- The inline vs. reference difference is important. A simple path will be consume
35
- fewer resources. BUT it will cause the entire graph to be recompile and resent
36
- to the drivers if you change it.
34
+ The inline vs. reference difference is important. A simple path will consume
35
+ fewer resources. BUT it will cause the entire graph to be recompiled and resent
36
+ to the driver if you change it.
37
37
38
38
A script primitive references a script that you create separately from the
39
- the graph. This means that any changes to the graph (such as an animation) will
39
+ graph. This means that any changes to the graph (such as an animation) will
40
40
NOT need to recompile or resend the script.
41
41
42
42
## Usage
You can’t perform that action at this time.
0 commit comments