Skip to content

Commit

Permalink
s/args/props/g
Browse files Browse the repository at this point in the history
this example code was failing to run
  • Loading branch information
Rich-Harris authored Sep 24, 2016
1 parent 6883065 commit 0378797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ A command can also run multiple times by passing a non-negative integer or an ar
// Runs the command `count`-times
command(count)

// Runs the command once for each args
// Runs the command once for each props
command([props0, props1, props2, ..., propsn])
```

Expand Down Expand Up @@ -367,11 +367,11 @@ var drawSpinningStretchyTriangle = regl({
// * batchId: which is the index of the draw command in the batch
//
angle: function (context, props, batchId) {
return args.speed * context.tick + 0.01 * batchId
return props.speed * context.tick + 0.01 * batchId
},

// As a shortcut/optimization we can also just read out a property
// from the args. For example, this
// from the props. For example, this
//
scale: regl.prop('scale'),
//
Expand Down

0 comments on commit 0378797

Please sign in to comment.