-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraw.html
46 lines (46 loc) · 2.24 KB
/
draw.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
<!DOCTYPE html>
<html>
<head>
<title>Game Programming -- Exercise-4</title>
<meta charset="utf-8">
<meta name="author" content="xizheng ding @ Lakehead Unversity">
<link type="text/css" href="draw.css" rel="stylesheet">
<link rel="stylesheet" media="screen" type="text/css" href="css/colorpicker.css" />
</head>
<body>
<div id="MenuBar">
<div id="undo" class="MenuItem"><img class="MenuImg" src="img/undo.png"> undo operation</div>
<div id="mouse" class="MenuItem"><img class="MenuImg" src="img/cursor.png"> mouse tool</div>
<div id="edit" class="MenuItem"><img class="MenuImg" src="img/selection.png"> edit shape</div>
<div id="addrect" class="MenuItem"><img class="MenuImg" src="img/square.png"> add rectangle</div>
<div id="addcircle" class="MenuItem"><img class="MenuImg" src="img/circle.png"> add circle</div>
<div id="addline" class="MenuItem"><img class="MenuImg" src="img/line.png"> add line</div>
<div id="copy" class="MenuItem"><img class="MenuImg" src="img/copy.png"> copy shape</div>
<div id="cut" class="MenuItem"><img class="MenuImg" src="img/cut.png"> cut shape</div>
<div id="paste" class="MenuItem"><img class="MenuImg" src="img/paste.png"> paste shape</div>
<div id="delete" class="MenuItem"><img class="MenuImg" src="img/delete.png"> delete shape</div>
</div>
<div id="colorBar">
<div style="float: left"> fill: </div>
<div id="fillcolor">
<div style="background-color: rgb(40, 40, 87);"></div>
</div>
<div style="float: left"> stroke: </div>
<div id="strokecolor">
<div style="background-color: rgb(40, 40, 87);"></div>
</div>
</div>
<div id="Container">
<div id="canvasContainner"></div>
</div>
</body>
<script src="mylib.js" type="text/javascript"></script>
<script src="Kinetic-v4.3.3.min.js" type="text/javascript"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/colorpicker.js" type="text/javascript"></script>
<script src="canvasObject.js" type="text/javascript"></script>
<script src="commands.js" type="text/javascript"></script>
<script src="menu.js" type="text/javascript"></script>
<script src="canvas.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
</html>