-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
63 lines (53 loc) · 2.06 KB
/
index2.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
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>HTML5 Drawing Pad</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="sketch" style="position:relative; margin-left: auto; margin-right: auto;">
<canvas id="paint" style="position: absolute; z-index:1;"></canvas>
<canvas id="bg" style="position: absolute; z-index: 0;"></canvas>
</div>
<div id ="all_setting" style="position:relative;width:400px;float:right;">
<div class="settings" id="divi"> Parts
<button id="b8" onclick="divcan('8');" >8</button>
<button id="b12" onclick="divcan('12');">12</button>
<button id="b16" onclick="divcan('16');">16</button>
</div>
<br>
<br>
<div class="settings" id="colours" > Line Colour:
<input type="radio" name="col" value="single"> Single Colour <input type="color" id="myColor" onchange="getColor()" value="#ff0000">
<input type="radio" name="col" value="gradient"> Gradient
<input type="color" id="myColorgrad1" onchange="getColor()" value="#ff0000" disabled="disabled">
<input type="color" id="myColorgrad2" onchange="getColor()" value="#ff0000" disabled="disabled">
<button id='eraser' onclick="getEraser();">Eraser</button>
</div>
<br>
<div class="settings" id="brush" > Brush Size
<button id='5' onclick="getSize('5');">Small</button>
<button id ='10' onclick="getSize('10');">Med</button>
<button id='15' onclick="getSize('15');">Large</button>
<button id='20' onclick="getSize('20');">X Large</button>
</div>
<div class="settings" id="colourpicker">
</div>
<br>
<br>
<div class="settings" id="see_divs"> Toggle visibility
<input type="checkbox" name="guide" onchange="toggleGuides()" checked>Show guidelines<br>
</div>
<div class="settings" id="filler">
<input type="checkbox" name="fill" onchange="toggleFill()">Fill shapes?
<div id="colourpicker2" style="display:none;"> Fill Colour: <input type="color" id="myColorFill" onchange="getFillColor()"></div>
</div>
<br><br>
<!--div class="settings" id="save" >
<button id="save" onclick="save()">Save</button>
</div-->
</div>
<script src="js/index.js"></script>
</body>
</html>