Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qrohlf committed Dec 30, 2018
1 parent 50d6ff2 commit cc062c2
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 @@ -7,7 +7,7 @@ Trianglify is a library that I wrote to generate nice SVG background images like

# Getting Trianglify

You can grab Trianglify with npm (recommended):
You can grab Trianglify with npm/yarn (recommended):

```
npm install trianglify
Expand All @@ -16,7 +16,7 @@ npm install trianglify
Include it in your HTML via CDNJS:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.1.0/trianglify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.3.0/trianglify.min.js"></script>
```

Or clone the repo:
Expand All @@ -29,7 +29,7 @@ git clone https://github.com/qrohlf/trianglify.git
# Quickstart

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.4.0/trianglify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.3.0/trianglify.min.js"></script>
<script>
var pattern = Trianglify({
width: window.innerWidth,
Expand Down Expand Up @@ -126,7 +126,7 @@ Valid array values should specify the color stops in any CSS format (i.e. `['#00

### y_colors

False, string or array of CSS-formatted colors, default is `'match_x'`. When set to 'match_x' the same gradient will be used on both axes.
False, string or array of CSS-formatted colors, default is `'match_x'`. When set to 'match_x' the same gradient will be used on both axes.
If false, the colors will not vary over the y axis; this requires the x_color to have a specified value.
Otherwise, accepts the same options as x_colors.

Expand Down

0 comments on commit cc062c2

Please sign in to comment.