Skip to content

Commit 44e27c8

Browse files
committed
use v2 api in mobille demo website
1 parent 247fe46 commit 44e27c8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
55
<title>blobs - playground</title>
66
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400" rel="stylesheet">
7-
<script src="https://unpkg.com/blobs@2.0.0-beta.0"></script>
7+
<script src="https://unpkg.com/blobs@2.0.0-beta.1"></script>
8+
<script src="https://unpkg.com/blobs@2.0.0-beta.1/v2"></script>
89
</head>
910
<body>
1011
<style>
@@ -115,10 +116,10 @@
115116
function refreshMobile() {
116117
if (!mobileElem) return;
117118

118-
mobileElem.innerHTML = blobs({
119-
color: "#ec576b",
120-
complexity: 0.3,
121-
contrast: 0.6,
119+
mobileElem.innerHTML = blobs2.svg({
120+
seed: Math.random(),
121+
extraPoints: 4,
122+
randomness: 8,
122123
size: 300,
123124
});
124125
}

0 commit comments

Comments
 (0)