UNPKG

3.92 kBMarkdownView Raw
1fur-shapes
2==========
3
4<!-- Badge Start -->
5<a name="badges"></a>
6
7[![Build Status][bd_travis_shield_url]][bd_travis_url]
8[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
9[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
10[![Dependency Status][bd_gemnasium_shield_url]][bd_gemnasium_url]
11[![npm Version][bd_npm_shield_url]][bd_npm_url]
12
13[bd_repo_url]: https://github.com/fur-repo/fur-shapes
14[bd_travis_url]: http://travis-ci.org/fur-repo/fur-shapes
15[bd_travis_shield_url]: http://img.shields.io/travis/fur-repo/fur-shapes.svg?style=flat
16[bd_license_url]: https://github.com/fur-repo/fur-shapes/blob/master/LICENSE
17[bd_codeclimate_url]: http://codeclimate.com/github/fur-repo/fur-shapes
18[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/fur-repo/fur-shapes.svg?style=flat
19[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/fur-repo/fur-shapes.svg?style=flat
20[bd_gemnasium_url]: https://gemnasium.com/fur-repo/fur-shapes
21[bd_gemnasium_shield_url]: https://gemnasium.com/fur-repo/fur-shapes.svg
22[bd_npm_url]: http://www.npmjs.org/package/fur-shapes
23[bd_npm_shield_url]: http://img.shields.io/npm/v/fur-shapes.svg?style=flat
24
25<!-- Badge End -->
26
27
28<!-- Description Start -->
29<a name="description"></a>
30
31Shapes for fur.
32
33<!-- Description End -->
34
35
36<!-- Overview Start -->
37<a name="overview"></a>
38
39
40<!-- Overview End -->
41
42
43<!-- Sections Start -->
44<a name="sections"></a>
45
46<!-- Section from "docs/readme/01.Installation.md.hbs" Start -->
47
48<a name="section-docs-readme-01-installation-md"></a>
49Installation
50-----
51
52```bash
53npm install fur-shapes --save
54```
55
56<!-- Section from "docs/readme/01.Installation.md.hbs" End -->
57
58<!-- Section from "docs/readme/02.Usage.md.hbs" Start -->
59
60<a name="section-docs-readme-02-usage-md"></a>
61Usage
62----
63
64```javascript
65var furShapes = require('fur-shapes'),
66 fs = require('fs');
67
68
69var themeA = furShapes.a(256, 215, '#38E'),
70 themeB = furShapes.b(512, 256, '#E00');
71
72
73fs.writeFileSync('shape-01.svg', themeA);
74fs.writeFileSync('shape-02.svg', themeB);
75```
76<!-- Section from "docs/readme/02.Usage.md.hbs" End -->
77
78<!-- Section from "docs/readme/03.Examples.md.hbs" Start -->
79
80<a name="section-docs-readme-03-examples-md"></a>
81Examples
82--------
83
84See [fur-shapes-gallery](http://fur-repo.github.io/fur-shapes/)
85
86| Theme | Image | Signature |
87| :---: | ----- | --------- |
88| **a** | <img src="./docs/examples/images/example-shape-a.png?v=1.0.6" height="62"> | `furShapes.a(256,256, #38E)` |
89| **b** | <img src="./docs/examples/images/example-shape-b.png?v=1.0.6" height="62"> | `furShapes.b(256,256, #38E)` |
90| **c** | <img src="./docs/examples/images/example-shape-c.png?v=1.0.6" height="62"> | `furShapes.c(256,256, #38E)` |
91| **d** | <img src="./docs/examples/images/example-shape-d.png?v=1.0.6" height="62"> | `furShapes.d(256,256, #38E)` |
92| **e** | <img src="./docs/examples/images/example-shape-e.png?v=1.0.6" height="62"> | `furShapes.e(256,256, #38E)` |
93| **f** | <img src="./docs/examples/images/example-shape-f.png?v=1.0.6" height="62"> | `furShapes.f(256,256, #38E)` |
94| **g** | <img src="./docs/examples/images/example-shape-g.png?v=1.0.6" height="62"> | `furShapes.g(256,256, #38E)` |
95| **h** | <img src="./docs/examples/images/example-shape-h.png?v=1.0.6" height="62"> | `furShapes.h(256,256, #38E)` |
96| **i** | <img src="./docs/examples/images/example-shape-i.png?v=1.0.6" height="62"> | `furShapes.i(256,256, #38E)` |
97
98<!-- Section from "docs/readme/03.Examples.md.hbs" End -->
99
100
101<!-- Sections Start -->
102
103
104<!-- LICENSE Start -->
105<a name="license"></a>
106
107License
108-------
109This software is released under the [MIT License](https://github.com/fur-repo/fur-shapes/blob/master/LICENSE).
110
111<!-- LICENSE End -->
112
113
114<!-- Links Start -->
115<a name="links"></a>
116
117Links
118------
119
120+ [fur](https://github.com/fur-repo/fur)
121+ [fur-shapes-gallery](http://fur-repo.github.io/fur-shapes/)
122
123<!-- Links End -->