Add very basic mouse tracking via events, needs improvements as events are not reliable

This commit is contained in:
2019-06-10 14:30:19 +02:00
commit 1844315490
3 changed files with 68 additions and 0 deletions

18
index.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="main.css" />
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<canvas id="drawImage"></canvas>
<label> Color: <input type="color" id="drawColor" /></label>
</body>
</html>