Skip to content

Commit

Permalink
Update triangle/pentagon
Browse files Browse the repository at this point in the history
Let's keep it to integers?
  • Loading branch information
veltman committed Nov 30, 2017
1 parent ea01aea commit c15016b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -47,8 +47,8 @@ Flubber methods return **interpolators**, functions that you can call later with
Using D3, usage could look something like:

```js
var triangle = [[1, 1], [2, 1], [1.5, 2]],
pentagon = [[1.5, 1], [2, 1.3], [1.8, 2], [1.2, 2], [1, 1.3]];
var triangle = [[1, 0], [2, 2], [0, 2]],
pentagon = [[0, 0], [2, 0], [2, 1], [1, 2], [0, 1]];

var interpolator = flubber.interpolate(triangle, pentagon);

Expand All @@ -60,8 +60,8 @@ d3.select("path")
Without D3, usage might look something like this:
```js
// Mixing and matching input types is OK
var triangle = "M1,1 L2,1 L1.5,2 Z",
pentagon = [[1.5, 1], [2, 1.3], [1.8, 2], [1.2, 2], [1, 1.3]];
var triangle = "M1,0 L2,2 L0,2 Z",
pentagon = [[0, 0], [2, 0], [2, 1], [1, 2], [0, 1]];

var interpolator = flubber.interpolate(triangle, pentagon);

Expand Down

0 comments on commit c15016b

Please sign in to comment.