-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
182 lines (181 loc) · 10.5 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Color Generator</title>
<meta name="description" content="Color Generator: get a lot of distinctive colors">
<meta name="keywords" content="color generator distinctive generate colors large palette number most visually maximally perceptually">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/generator.css">
</head>
<body>
<div class="controls">
<div class="title">Color Generator v<span id="version">1.1</span></div>
<div class="inputs">
<form>
<div class="input_group">
<label for="hues">Hues (<a href="https://en.wikipedia.org/wiki/HSL_and_HSV" target="_blank">HSV</a> format): </label>
<input
type="text" class="hue_input" placeholder="10, 20, ..." id="hues"
value="0, 30, 40, 45, 55, 60, 75, 120, 165, 180, 190, 200, 215, 245, 270, 280, 290, 300, 315">
</div>
<div class="input_group">
<input type="checkbox" id="reduce_bright" checked="checked">
<label for="reduce_bright">Reduce brightness for bright colors by </label>
<input type="text" placeholder="int" id="reduce_bright_s1" value="20">
<div class="subgroup">
<label for="bright_hues_rv">Bright hues to reduce value: </label>
<input type="text" class="hue_input" placeholder="10, 20, ..." id="bright_hues_rv"
value="55, 60, 75, 120, 165, 180, 190">
</div>
</div>
<div class="input_group">
<input type="checkbox" id="reduce_saturation" checked="checked">
<label for="reduce_saturation">
When saturation <
<input type="text" placeholder="int" id="reduce_saturation_s2" value="90">
reduce it by
<input type="text" placeholder="int" id="reduce_saturation_s1" value="10">
for bright colors
</label>
<div class="subgroup">
<label for="bright_hues_rs">Bright hues to reduce saturation: </label>
<input type="text" class="hue_input" placeholder="10, 20, ..." id="bright_hues_rs"
value="30, 40, 45, 55, 60, 75, 190">
</div>
</div>
<div class="input_group">
<input type="checkbox" id="s_ign_zone" checked="checked">
<label for="s_ign_zone">
Ignore bright colors when saturation <
<input type="text" placeholder="int" id="s_ign_zone_s1" value="80">
</label>
<div class="subgroup">
<label for="bright_hues_i">Bright hues to ignore: </label>
<input type="text" class="hue_input" placeholder="10, 20, ..." id="bright_hues_i"
value="120, 165, 180, 190">
</div>
</div>
<div class="input_group">
<input type="checkbox" id="skip_dark" checked="checked">
<label for="skip_dark">Skip dark colors when value <
<input type="text" placeholder="int" id="skip_dark_v1" value="85">
</label>
<div class="subgroup">
<label for="dark_hues_s">Dark hues to skip: </label>
<input type="text" class="hue_input" placeholder="10, 20, ..." id="dark_hues_s"
value="60, 165, 190, 280">
</div>
</div>
<div class="input_group">
<input type="checkbox" id="skip_bright" checked="checked">
<label for="skip_bright">Skip bright colors when saturation <
<input type="text" placeholder="int" id="skip_bright_v1" value="85">
</label>
<div class="subgroup">
<label for="bright_hues_s">Bright hues to skip: </label>
<input type="text" class="hue_input" placeholder="10, 20, ..." id="bright_hues_s"
value="30, 40, 45, 55, 60, 75">
</div>
</div>
<div class="input_group">
<input type="checkbox" id="add_grey">
<label for="add_grey">
Include grey colors staring from
<input type="text" placeholder="int" id="add_grey_v1" value="40">
with step
<input type="text" placeholder="int" id="add_grey_v2" value="25">
</label>
</div>
<div class="input_group">
<input type="checkbox" id="use_short" checked="checked">
<label for="use_short">
Use shorthand <a href="https://en.wikipedia.org/wiki/Web_colors#Hex_triplet" target="_blank">HEX</a> form
</label>
</div>
<div class="input_group">
<input type="checkbox" id="shuffle" checked="checked">
<label for="shuffle">
Shuffle results
</label>
</div>
<div class="input_group">
Shades input [0-100] (<a href="https://en.wikipedia.org/wiki/HSL_and_HSV" target="_blank">HSV</a> format)
<table>
<tr>
<td>
<input type="text" placeholder="S1" id="S1" value="100">
<input type="text" placeholder="V1" id="V1" value="70">
</td>
<td>
<input type="text" placeholder="S2" id="S2" value="100">
<input type="text" placeholder="V2" id="V2" value="85">
</td>
<td>
<input type="text" placeholder="S3" id="S3" value="100">
<input type="text" placeholder="V3" id="V3" value="100">
</td>
<td>
<input type="text" placeholder="S4" id="S4" value="70">
<input type="text" placeholder="V4" id="V4" value="100">
</td>
<td>
<input type="text" placeholder="S5" id="S5" value="55">
<input type="text" placeholder="V5" id="V5" value="100">
</td>
<td>
<input type="text" placeholder="S6" id="S6" value="">
<input type="text" placeholder="V6" id="V6" value="">
</td>
</tr>
<tr>
<td>
<input type="text" placeholder="S7" id="S7">
<input type="text" placeholder="V7" id="V7">
</td>
<td>
<input type="text" placeholder="S8" id="S8">
<input type="text" placeholder="V8" id="V8">
</td>
<td>
<input type="text" placeholder="S9" id="S9">
<input type="text" placeholder="V9" id="V9">
</td>
<td>
<input type="text" placeholder="S10" id="S10">
<input type="text" placeholder="V10" id="V10">
</td>
<td>
<input type="text" placeholder="S11" id="S11">
<input type="text" placeholder="V11" id="V11">
</td>
<td>
<input type="text" placeholder="S12" id="S12">
<input type="text" placeholder="V12" id="V12">
</td>
</tr>
</table>
</div>
<div class="input_group">
<label for="ignore_list">Ignore list (add bad colors here)</label><br>
<textarea id="ignore_list">200, 55, 100 360, 0, 90 0, 70, 100 270, 100, 85 290, 100, 85 290, 70, 100 300, 70, 100 315, 70, 100</textarea>
</div>
<div class="input_group center">
<button onclick="just_do_it(event)">Generate</button>
</div>
</form>
</div>
</div>
<div class="container hide" id="preview"></div>
<div class="background_inp">
<input type="text" placeholder="#FFFFFF" onkeyup="document.body.style.backgroundColor = this.value">
</div>
<div class="result_wrap hide" id="result_wrap">
<textarea title="Paste it to your theme" id="result"></textarea>
</div>
<script src="js/generator.js"></script>
<div class="footer">© Bews, 2017. Available on <a href="https://github.com/bews/colors" target="_blank">GitHub</a>.</div>
</body>
</html>