-
Notifications
You must be signed in to change notification settings - Fork 0
/
paint.html
22 lines (22 loc) · 1.05 KB
/
paint.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
<head>
<title>Kalmai221 Plays Simulations</title>
<link rel="stylesheet" href="paint.css"></link>
</head>
<body>
<script src="paint.js"></script>
<div id='colors'>
<button id='black' onclick='changeColor("black")' ontouchstart='changeColor("black")'></button>
<button id='red' onclick='changeColor("red")' ontouchstart='changeColor("red")'></button>
<button id='green' onclick='changeColor("green")' ontouchstart='changeColor("green")'></button>
<button id='blue' onclick='changeColor("blue")' ontouchstart='changeColor("blue")'></button>
<button id='orange' onclick='changeColor("orange")' ontouchstart='changeColor("orange")'></button>
<button id='pink' onclick='changeColor("pink")' ontouchstart='changeColor("pink")'></button>
</div>
<canvas id='canvas' width='300' height='200'></canvas>
<div>
<button onclick='clearCanvas()'>Clear</button>
</div>
</body>
</html>