Skip to content

Commit

Permalink
minor documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
qrohlf committed Apr 12, 2014
1 parent 326000f commit 3571740
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Trianglify is a library that I wrote to generate nice SVG background images like

![example](example.jpg)

It uses [d3.js](http://d3js.org) to build the polygons and SVG and SVG filters for rendering, and includes the [ColorBrewer](http://bl.ocks.org/mbostock/5577023) color palette library to get you up and running quickly. It was written in a single day because I got fed up with Adobe Illustrator.
It was inspired by [btmills/geopattern](https://github.com/btmills/geopattern), and uses [d3.js](http://d3js.org) to build the polygons and SVG and SVG filters for rendering. It also includes the [colorbrewer](http://bl.ocks.org/mbostock/5577023) color palette library to get you up and running quickly. It was written in a single day because I got fed up with Adobe Illustrator.

# Demo:

Expand Down Expand Up @@ -40,6 +40,9 @@ var pattern = t.generate(document.body.clientWidth, document.body.clientHeight);
document.body.setAttribute('style', 'background-image: '+pattern.dataUrl);
```

# Colors
a list of all the available colorbrewer palettes available can be found [here](http://bl.ocks.org/mbostock/5577023), or you can [specify your own](#options)

# Examples:

## Smaller Cell Size
Expand Down Expand Up @@ -78,8 +81,6 @@ window.open(new Trianglify({

![](examples/example3.svg)

(a list of all the available ColorBrewer palettes available can be found [here](http://bl.ocks.org/mbostock/5577023), or you can [specify your own](#options))


# Options

Expand Down

0 comments on commit 3571740

Please sign in to comment.