-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (63 loc) · 2.21 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Thasadith:700" rel="stylesheet" />
<script src="libraries/p5.js"></script>
<script src="libraries/p5.dom.js"></script>
<script src="libraries/p5.sound.js"></script>
<script src="sketch.js"></script>
<script src="shape.js"></script>
<script src="examples.js"></script>
<title>Satisfying Drawings</title>
</head>
<body>
<div class="container">
<div id="sketch-holder"></div>
<div id="controls">
<p class="paragraph">Start the animation</p>
<button name="button" value="0" class="btn start-animation">
Start Animation
</button>
<br />
<p class="paragraph">Clear before each start / each new configuration</p>
<button name="clear-all" value="0" class="btn clear-all">
Clear
</button>
<hr />
<div class="paragraph">Offset:</div>
<br />
<br />
<div class="paragraph">Color:</div>
<br />
<br />
<br />
<br />
<p class="paragraph">Create a shape from dots placed on the canvas</p>
<button name="create-new-shape" value="0" class="btn create-new-shape">
Create new shape
</button>
<br />
<br />
<hr />
<p class="paragraph">Example with various squares moving clockwise and anticlockwise</p>
<button name="example" value="0" class="btn insert-example">
Insert Example #1
</button>
<br />
<p class="paragraph">Example with overlaying squares</p>
<button name="overlay-example-2" value="0" class="btn insert-overlay-example-2">
Insert Example #2 - overlaying shapes
</button>
<br />
<p class="paragraph">Example with custom shapes</p>
<button name="most-satisfying" value="0" class="btn insert-satisfying">
Insert Example #3 - custom forms
</button>
</div>
</div>
</body>
</html>