Skip to content

Commit

Permalink
Merge pull request #22 from yefim/patch-1
Browse files Browse the repository at this point in the history
Clear up the README
  • Loading branch information
gorhill committed Mar 2, 2015
2 parents bb8fd98 + 3702c74 commit 37dddc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ the user is responsible for rendering the diagram.

Roughly:

```
``` javascript
var voronoi = new Voronoi();
var bbox = {xl:0,xr:800,yt:0,yb:600};
var sites = [{x:200, y:200}, {x:50, y:250}, {x:400, y:100} /* , ... */];
var bbox = {xl: 0, xr: 800, yt: 0, yb: 600}; // xl is x-left, xr is x-right, yt is y-top, and yb is y-bottom
var sites = [ {x: 200, y: 200}, {x: 50, y: 250}, {x: 400, y: 100} /* , ... */ ];

// a 'vertex' is an object exhibiting 'x' and 'y' properties. The
// Voronoi object will add a unique 'voronoiId' property to all
Expand Down Expand Up @@ -103,7 +103,7 @@ Added on October 12, 2013: In order to help improve performance,
`Voronoi.recycle()` has been added to allow the recycling of a returned Voronoi
diagram. Usage:

```
``` javascript
var diagram;
...

Expand Down

0 comments on commit 37dddc0

Please sign in to comment.