File tree Expand file tree Collapse file tree 4 files changed +26
-35
lines changed Expand file tree Collapse file tree 4 files changed +26
-35
lines changed Original file line number Diff line number Diff line change 1+ # 1.0.3
2+
3+ - Add link to demo page in the README
4+
15# 1.0.2
26
37- Make transpiled output minified
Original file line number Diff line number Diff line change 1- < img src = " https://svgsaur.us/?t= blobs&f=Comic_Sans_MS,cursive,sans-serif&s=42&w=160&h=50&y=40&o=biu&c=222 " />
1+ # [ blobs ] ( https://g-harel.github.io/ blobs )
22
33[ ![ ] ( https://img.shields.io/npm/v/blobs.svg )] ( https://www.npmjs.com/package/blobs )
44[ ![ ] ( https://img.shields.io/bundlephobia/minzip/blobs.svg )] ( https://bundlephobia.com/result?p=blobs )
55
6- > random svg blob generator
6+ [ ![ ] ( https://user-images.githubusercontent.com/9319710/51342364-b4dc5800-1a61-11e9-9452-3db013605a80.png )] ( https://g-harel.github.io/blobs )
77
88## Install
99
1010``` shell
1111$ npm install blobs
1212```
1313
14- ## Usage
15-
16-   ;
17-
18- <img align =" left " height =" 288 " src =" https://user-images.githubusercontent.com/9319710/50946063-b73d2180-1465-11e9-9f4e-fb80ebb31f92.png " />
14+ ``` html
15+ <script src =" https://unpkg.com/blobs" ></script >
16+ ```
1917
20- < img align = " right " height = " 288 " src = " https://user-images.githubusercontent.com/9319710/50946064-b73d2180-1465-11e9-827d-afeab9bddbc9.png " />
18+ ## Usage
2119
2220``` typescript
23- import blobs from " blobs" ;
24-
25- const svg = blobs ({
26- size: 288 ,
27- complexity: 0.2 ,
28- contrast: 0.4 ,
29- color: " pink" ,
30- stroke: {
31- color: " red" ,
32- width: 2 ,
33- },
34- guides: true ,
35- });
21+ const svg = blobs (options );
3622```
3723
3824## Options
Original file line number Diff line number Diff line change 99 < style >
1010 body {
1111 display : table;
12+ font-family : monospace;
13+ font-size : 1.1em ;
1214 height : 100% ;
1315 left : 0 ;
1416 margin : 0 ;
4143 }
4244
4345 # error {
44- color : red ;
46+ color : # ec576b ;
4547 font-family : monospace;
4648 font-size : 1.5em ;
4749 text-align : center;
5860 < div class ="middle ">
5961 < main >
6062 < div id ="blob "> </ div > <!--
61- --> < pre id ="options " contenteditable oninput ="changed() ">
62- {
63- size: 600,
64- complexity: 0.2,
65- contrast: 0.4,
66- color: "pink",
67- stroke: {
68- width: 2.3,
69- color: "red",
70- },
71- guides: true,
72- seed: "abcd",
63+ --> < pre id ="options " contenteditable oninput ="changed() "> {
64+ size: 600,
65+ complexity: 0.2,
66+ contrast: 0.4,
67+ color: "#ec576b",
68+ stroke: {
69+ width: 0,
70+ color: "black",
71+ },
72+ guides: false,
73+ seed: "1234",
7374}</ pre >
7475 < div id ="error "> </ div >
7576 </ main >
Original file line number Diff line number Diff line change 11{
22 "name" : " blobs" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "description" : " svg blob generator" ,
55 "author" : " g-harel" ,
66 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments