-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (51 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logo Interpretor</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js"></script>
<script src="./turtle.js"></script>
<script src="./parser.js"></script>
<script src="./command.js"></script>
<script src="./sketch.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&family=Source+Code+Pro&display=swap');
main {
text-align: center;
margin: auto 0;
}
h1 {
font-size: 40px;
}
body {
background: url('./cool-background.png');
padding: 5% 0;
font-family: 'Montserrat', sans-serif;
font-weight: 800;
}
#sketch-div {
border-radius: 10px;
}
.p5Canvas {
border-radius: 10px;
}
#code {
font-family: 'Source Code Pro', monospace;
margin-bottom: 2em;
}
#code:active,
#code:focus {
border: none;
}
</style>
</head>
<body>
<main>
<h1>This is a simple Logo Interpreter, type the code in the box and click outside to see the magic!</h1>
<textarea name="code" id="code" cols="80" rows="8">
repeat 36 [lt 10 pu fd 1 pd repeat 120 [fd 2 rt 3]]</textarea>
<div id="sketch-div"></div>
</main>
</body>
</html>