-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
39 lines (32 loc) · 1.43 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
<!-- A fairly simple painting app with facilities to change brush size, stroke shape and color of brush. The shape of the stroke is a square of side equal to the brush size -->
<!DOCTYPE html>
<html>
<head>
<meta charset= "utf-8">
<meta name= "viewport" content= "width= device-width, initial-scale= 1.0">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<title>Painting App</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="menu_bar">
<div class="toolbar">
<div><input type="color" value="#ff8080"></div>
<div><input type="range" min="5" max="50" value="10"><span class="display">10</span></div>
<div><button type="button" class="btn btn-sm">CLEAR CANVAS</button></div>
</div>
<div class="selectShape">
<button onclick="drawRect()" id="rectStroke">Rect Stroke</button>
<button onclick="drawCircle()" id="rectStroke">Circular Stroke</button>
<button onclick="drawRing()" id="rectStroke">Ring Stroke</button>
<button onclick="inspire((status++)%4)" id="rectStroke">Inspiration</button>
</div>
</div>
<canvas class= "myCanvas">
</canvas>
<script src="script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</body>
</html>