-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.54 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
<!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=0, shrink-to-fit=no">
<title>canvas painter</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<main>
<nav>
<div class="select" id="mode" aria-current="pencil">
<button value="pencil">Pencil</button>
<button value="brush">Brush</button>
<button value="ditherBrush">Dithering</button>
<button value="spray">Spray</button>
<button value="bucket">Bucket</button>
<button value="eraser">Eraser</button>
</div>
<div class="select" id="radius" aria-current="10">
<button value="1">Small</button>
<button value="5">Medium</button>
<button value="10">Big</button>
<button value="20">Huge</button>
</div>
</nav>
<canvas id="painting" height="200" width="400"></canvas>
<nav>
<input type="button" value="Clear" id="clearCanvas">
<div class="row">
<input type="button" value="Undo" id="undo" disabled>
<input type="button" value="Redo" id="redo" disabled>
</div>
<input type="color" id="fillColor">
</nav>
<input type="range" id="intensity" min="2" max="7" value="2">
</main>
<script type="module" src="./script.js"></script>
</body>
</html>