forked from kmcgrady/pixel-art-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (51 loc) · 1.86 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
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixel Art Maker</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Pixel Art Maker</h1>
<div class="container">
<div id="canvas" class="brush">
</div>
<div id="palette" class="palette">
</div>
<div class="setting">
<div class="row-flex">
<p> Current color: LBM-><div class="lbm-color"></div>
RMB-><div class="rbm-color"></div>
<input type="checkbox" class="checkbox" id="checkbox" />
<label for="checkbox">Flood fill mode</label>
</p>
<p>Count of cell (NxN):
<input id="sizeCanvas" title="Count of cell" type="number" list="sizes" min="10" max="90" value="40" step="5">
<datalist id="sizes">
<option value="10">10x10</option>
<option value="20">20x20</option>
<option value="30">30x30</option>
<option value="40">40x40</option>
<option value="50">50x50</option>
<option value="60">60x60</option>
<option value="70">70x70</option>
<option value="80">80x80</option>
<option value="90">90x90</option>
</datalist></p>
</div>
<div class="row-flex">
<div class="custom-color">Select custom color ->
<input id="colorPicker" type="color" title="Picker for a favorite color"></div>
and click the<div class="color-result"></div>(LBM or RBM) to choose.
</div>
<div class="row-flex save-load-butt">
<button id="saveLocal" class="flat-btn green-btn" title="Save the drawing in the browser">Save drawing</button>
<button id="clearCanvas" class="flat-btn blue-btn" title="Create blank canvas">Blank canvas</button>
</div>
</div>
</div>
<div class="option">Press or Hold 'Ctrl + Z' to step back. </div>
<script type="text/javascript" src="pixel-art.js"></script>
</body>
</html>