-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
24 lines (24 loc) · 877 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body bgcolor="white" fgcolor="black">
<div id="app"></div>
<script type="module" src="/main.js"></script>
<div style="position: relative;">
<canvas style="opacity: 1.0; position: absolute; left: 0; top: 0; z-index: 2" id="mycanvas" width="500" height="500"></canvas>
<svg id="mysvg" height="500" width="500">
</svg>
<h1> Draw a curve! i'll find the closest cubic bezier :) </h1>
(refresh page if it stops working)
</div>
<div style="display: flex">
<button id="refreshcanvas">clear canvas</button><br>
<button id="refreshsvg">clear svg</button><br>
</div>
</body>
</html>