Skip to content

Commit 44809be

Browse files
committed
add link to demo in readme + update demo colors
1 parent 5bca99e commit 44809be

File tree

4 files changed

+26
-35
lines changed

4 files changed

+26
-35
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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

README.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,24 @@
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-
&nbsp;
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

index.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
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;
@@ -41,7 +43,7 @@
4143
}
4244

4345
#error {
44-
color: red;
46+
color: #ec576b;
4547
font-family: monospace;
4648
font-size: 1.5em;
4749
text-align: center;
@@ -58,18 +60,17 @@
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">&nbsp;</div>
7576
</main>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)