-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (51 loc) · 1.27 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
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Dibujando con el mouse</title>
<style>
body{
background-color: #AFFA;
}
#area_de_dibujo{
margin: 50px;
background-color: white;
display: block;
}
.colorButton{
width: 20px;
height: 20px;
}
#red{
background-color: red;
}
#green{
background-color: green;
}
#yellow{
background-color: yellow;
}
#blue{
background-color: blue;
}
#pink{
background-color: pink;
}
#purple{
background-color: purple;
}
</style>
</head>
<body>
<canvas width='300' height='300' id='area_de_dibujo'></canvas>
<button id='red' class='colorButton'></button>
<button id='green' class='colorButton'></button>
<button id='yellow' class='colorButton'></button>
<button id='blue' class='colorButton'></button>
<button id='pink' class='colorButton'></button>
<button id='purple' class='colorButton'></button>
<p>Selecciona un color y mueve el mouse para dibujar</p>
<button id='botoncito'>Borrar el dibujo</button>
<script src="mouse.js"></script>
</body>
</html>