-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
117 lines (113 loc) · 6.51 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GBA prototype</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- <a href="/" id="test"> -->
<canvas id="can" width="800" height="600"></canvas>
<!-- </a> -->
<div id="toolbar">
<div>
<h3>Layers</h3>
<label>Quantity</label>
<input type="range" min="1" max="15" value="1" class="slider" id="numLayers" oninput="updateValues();">
<br>
<label>Misalignment</label>
<input type="range" min="0" max="5" value="2" step="0.1" class="slider" id="layerMess" oninput="updateValues();">
</div>
<div>
<h3>Stroke</h3>
<label>Weight</label>
<input type="range" min="1" max="45" value="20" class="slider" id="lineWeight" oninput="updateValues();">
<br>
<label>Weight Variation</label>
<input type="range" min="0" max="25" value="0" class="slider" id="lineWeightVariation" oninput="updateValues();">
</div>
<div class="colorOptions">
<h3>Color</h3>
<!-- <label for="colorsToggle"> Multiple colors</label><br> -->
<!-- <input type="checkbox" id="colorsToggle" name="colorsToggle"> -->
<svg id="bw" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_75_465" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
<circle cx="10" cy="10" r="9.5" fill="white" stroke="#EFEFEF"/>
</mask>
<g mask="url(#mask0_75_465)">
<rect x="20" y="10" width="10" height="20" transform="rotate(90 20 10)" fill="black"/>
<rect x="20" width="10" height="20" transform="rotate(90 20 0)" fill="black"/>
</g>
</svg>
<svg id="colored" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_75_464" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
<circle cx="10" cy="10" r="9.5" fill="white" stroke="#EFEFEF"/>
</mask>
<g mask="url(#mask0_75_464)">
<rect width="20" height="20" fill="url(#paint0_linear_75_464)"/>
</g>
<defs>
<linearGradient id="paint0_linear_75_464" x1="10" y1="0" x2="10" y2="20" gradientUnits="userSpaceOnUse">
<stop stop-color="#FF0000"/>
<stop offset="0.151042" stop-color="#FFB800"/>
<stop offset="0.291667" stop-color="#EBFF00"/>
<stop offset="0.432292" stop-color="#70FF00"/>
<stop offset="0.572917" stop-color="#00FFE0"/>
<stop offset="0.713542" stop-color="#0085FF"/>
<stop offset="0.848958" stop-color="#0038FF"/>
<stop offset="1" stop-color="#6100FF"/>
</linearGradient>
</defs>
</svg>
<br>
<svg id="green" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="#E1FF8C"/>
</svg>
<svg id="red" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="red"/>
</svg>
</div>
<div>
<h3>Style</h3>
<!-- <svg id="linecap_butt" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" fill="black"/>
</svg>
<svg id="linecap_round" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="black"/>
</svg> -->
<!-- </div> -->
<!-- <div> -->
<svg id="soft" width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="22" height="22" rx="11" fill="url(#paint0_radial_81_4)"/>
<defs>
<radialGradient id="paint0_radial_81_4" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(11 11) rotate(90) scale(11)">
<stop offset="0.703125"/>
<stop offset="1" stop-opacity="0"/>
</radialGradient>
</defs>
</svg>
<svg id="hard" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="20" height="20" rx="10" fill="black"/>
</svg>
</div>
<div>
<input type="button" id="randomizeBtn" value="Randomize" onclick="randomize();">
<input type="button" id="generateBtn" value="Regenerate" onclick="updateValues();"><br>
<input type="button" id="downloadBtn" value="Download" onclick="download();">
<!-- <small>(or hit enter)</small> -->
</div>
</div>
<!-- <p id="message">This is the logo generator tool. View the logo alone for implementation <a href="https://gba-logo.netlify.app/dist/">here</a> (code available <a href="https://github.com/taliacotton/gba-prototype/tree/main/dist">here</a>).</p> -->
<script src="script.js" async defer></script>
</body>
</html>