-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
62 lines (51 loc) · 2.95 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
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EmojyArtist</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="controls">
<div style="text-align:center;margin:0px;padding:0px;">
<h1><img alt="Emoji Art Maker" id="banner" src="https://github.com/Durgesh4993/EmojyArtist/assets/98798977/f173c66a-8927-4c85-b364-b27c587a90b7" /></h1>
</div>
<input type="file" name="image" id="image"><div id="spinner"></div>
<a href="#" onclick="downloadIt()">Download Image</a>
<div class="container"><label for="pSize">Analysis Window <span style="font-size:70%">(smaller window=higher resolution, slower)</span>:</label><input type="range" step="1" min="1" max="50" value="7" id="pSize">
</div>
<div class="container">
<label for="scale" title="Controls the size of the output image. (if you go too high here with lots of emojis, you may exceed max canvas size)">Output size:</label><input type="range" min="1" step="1" max="50" value="12" id="scale">
</div>
<div id="c1" class="container">
<label for="tolerance" title="Low tolerance = more accurate color, less variety of emojis">Match Tolerance:</label><input type="range" min="1" step="1" max="30" value="8" id="tolerance">
</div>
<div class="container" style="display:none">
<label for="fillColor" title="Controls 'empty space' fill color when analyzing emojis and effects brightness of result">Emoji Fill Color (black to white):</label><input type="range" min="0" step=".01" max="1" value=".5" id="fillColor">
</div>
<div class="container">
<label for="fillColor" title="Controls allowed amount of empty space inside emojis.">Empty Space </label><input type="range" min=".4" step=".01" max="1" value=".7" id="emptySpace">
</div>
<div class="container">
<input type="checkbox" checked id="enableBgColor">
<label for="bgColor" title="">Bg Color:</label><input type="color" id="bgColor">
</div>
<div class="container">
<label for="display">Display mode:</label>
<select id="display">
<option selected value="grid">Grid</option>
<option value="mosaic">Mosaic</option>
<option value="chart">Chart</option>
</select>
</div>
<div class="container">
<label for="hideBlack">Hide Black/Transparent</label><input type="checkbox" id="hideBlack">
</div>
</div>
<canvas id="result"></canvas>
<footer>Copyright @ 2022 by BtechWalla</footer>
<script src="script.js"></script>
</body>
</html>