forked from hundredrabbits/Noodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (38 loc) · 901 Bytes
/
index.html
File metadata and controls
42 lines (38 loc) · 901 Bytes
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
<!--
1 trace
2 tone
3 block
4 hor
5 ver
6 dot
0 drag
click black
shift-click white
shift-del clear
arrows move-viewport
i invert
x flip
s export
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script type="text/javascript" src="noodle.js"></script>
<title>Noodle</title>
</head>
<body>
<script>
const cursor = { z: 0, a: { x: 0, y: 0 }, b: { x: 0, y: 0 }, size: 12, mode: null, color: 'black' }
const noodle = new Noodle(cursor)
noodle.install(document.body)
noodle.start()
</script>
<style>
* { margin:0;padding:0;border:0;outline:0; position:fixed }
body { overflow: hidden; background:#eee; }
canvas { border-radius: 3px; transition: top 250ms, left 250ms }
</style>
</body>
</html>