Spaces:
Runtime error
Runtime error
mirror
Browse files- public/index.html +5 -4
- public/sketch.js +1 -1
public/index.html
CHANGED
@@ -19,10 +19,11 @@
|
|
19 |
</header>
|
20 |
|
21 |
<script src="sketch.js"></script>
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
26 |
<div>
|
27 |
<main>
|
28 |
</main>
|
|
|
19 |
</header>
|
20 |
|
21 |
<script src="sketch.js"></script>
|
22 |
+
<!--
|
23 |
+
<p>Blur Size: <input type="range" id="blurSize" value="30"></p>
|
24 |
+
<p>Low Threshold: <input type="range" id="lowThreshold" value="15"></p>
|
25 |
+
<p>High Threshold: <input type="range" id="highThreshold" value="25"></p>
|
26 |
+
-->
|
27 |
<div>
|
28 |
<main>
|
29 |
</main>
|
public/sketch.js
CHANGED
@@ -34,7 +34,7 @@ function draw() {
|
|
34 |
fill(255);
|
35 |
noStroke();
|
36 |
ellipse(
|
37 |
-
map(x, 0, video.width, 0, width),
|
38 |
map(y, 0, video.height, 0, height),
|
39 |
diameter,
|
40 |
diameter
|
|
|
34 |
fill(255);
|
35 |
noStroke();
|
36 |
ellipse(
|
37 |
+
map(video.width - x, 0, video.width, 0, width),
|
38 |
map(y, 0, video.height, 0, height),
|
39 |
diameter,
|
40 |
diameter
|