Skip to content

Commit 80c5b98

Browse files
committed
fix path & script docs
1 parent a9f1e67 commit 80c5b98

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

lib/scenic/primitive/path.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ defmodule Scenic.Primitive.Path do
3737
3838
## `Path` vs. `Script`
3939
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
4242
in what it can do, and is inserted inline with the compiled graph that created it.
4343
4444
The script primitive, on the other hand, has full access to the API set of
4545
`Scenic.Script` and accesses scripts by reference.
4646
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.
5050
5151
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
5353
NOT need to recompile or resend the script.
5454
5555
## Usage

lib/scenic/primitive/script.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ defmodule Scenic.Primitive.Script do
2424
2525
## `Script` vs. `Path`
2626
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
2929
in what it can do, and is inserted inline with the compiled graph that created it.
3030
3131
The script primitive, on the other hand, has full access to the API set of
3232
`Scenic.Script` and accesses scripts by reference.
3333
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.
3737
3838
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
4040
NOT need to recompile or resend the script.
4141
4242
## Usage

0 commit comments

Comments
 (0)