-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (37 loc) · 1.25 KB
/
index.html
File metadata and controls
42 lines (37 loc) · 1.25 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Drawing lines</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
button {
display: block;
margin: .5em 0;
font-size: 1em;
font-family: serif;
}
@media(max-width: 500px){
canvas{
width: 100%;
}
}
</style>
</head>
<body>
<p>Blog post: <a href="annaleach.net">annaleach.net</a> | Code: <a href="ahttps://github.com/ajwl/drawing-lines">github</a> </p>
<p><i>Refresh to clear</i></p>
<h2>1. Single wavering line</h2>
<button onClick="runCode1()">Run</button>
<canvas id="doodleSpace1" width="500" height="50" style="border:1px solid #000000;"></canvas>
<h2>2. Lots of lines</h2>
<button onClick="runCode2()">Run</button>
<canvas id="doodleSpace2" width="500" height="300" style="border:1px solid #000000;"></canvas>
<h2>3. Sequential lines with different colours</h2>
<button onClick="runCode3()">Run</button>
<canvas id="doodleSpace3" width="500" height="500" style="border:1px solid #000000;"></canvas>
<p>Based on an original <a href="https://github.com/MiniGirlGeek/code_doodling.git">Mozfest tutorial by @minigirlgeek</a></p>
<script src="js/doodle1.js"></script>
<script src="js/doodle2.js"></script>
<script src="js/doodle3.js"></script>
</body>
</html>