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
+
1
5
# 1.0.2
2
6
3
7
- 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 )
2
2
3
3
[ ![ ] ( https://img.shields.io/npm/v/blobs.svg )] ( https://www.npmjs.com/package/blobs )
4
4
[ ![ ] ( https://img.shields.io/bundlephobia/minzip/blobs.svg )] ( https://bundlephobia.com/result?p=blobs )
5
5
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 )
7
7
8
8
## Install
9
9
10
10
``` shell
11
11
$ npm install blobs
12
12
```
13
13
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
+ ```
19
17
20
- < img align = " right " height = " 288 " src = " https://user-images.githubusercontent.com/9319710/50946064-b73d2180-1465-11e9-827d-afeab9bddbc9.png " />
18
+ ## Usage
21
19
22
20
``` 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 );
36
22
```
37
23
38
24
## Options
Original file line number Diff line number Diff line change 9
9
< style >
10
10
body {
11
11
display : table;
12
+ font-family : monospace;
13
+ font-size : 1.1em ;
12
14
height : 100% ;
13
15
left : 0 ;
14
16
margin : 0 ;
41
43
}
42
44
43
45
# error {
44
- color : red ;
46
+ color : # ec576b ;
45
47
font-family : monospace;
46
48
font-size : 1.5em ;
47
49
text-align : center;
58
60
< div class ="middle ">
59
61
< main >
60
62
< 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",
73
74
}</ pre >
74
75
< div id ="error "> </ div >
75
76
</ main >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " blobs" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " svg blob generator" ,
5
5
"author" : " g-harel" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments