/
index.html
86 lines (74 loc) · 4.16 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
<!DOCTYPE html>
<html>
<head>
<title>Color Scale Generator</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<link rel="stylesheet" href="ColorScale.css" />
<script src="pythonic.js"></script>
<script src="colorsys.js"></script>
<script src="ColorScale.js"></script>
</head>
<body>
<div id="colorScaleGenerator">
<h1>Color Scale Generator</h1>
<div id="colorSwatches"></div>
<div id="controls">
<label for="numSteps">Num Steps</label>
<button id="numStepsDecr">-</button>
<input type="text" id="numSteps" value="20" class="small-numeric" /><button id="numStepsIncr">+</button>
<label for="reverse">Reverse</label>
<input type="checkbox" checked="checked" id="reverse" />
<br/>
<label for="minHsvHue">Min Hue</label>
<input type="text" id="minHsvHue" value="0" class="small-numeric" />
<label for="hsvSat">Max Hue</label>
<input type="text" id="maxHsvHue" value="0.85" class="small-numeric" />
<div id="hueSlider" class="slider"></div>
<br/><br/>
<label for="minHsvSat">Min Sat</label>
<input type="text" id="minHsvSat" value="0.745" class="small-numeric" />
<label for="maxHsvSat">Max Sat</label>
<input type="text" id="maxHsvSat" value="0.875" class="small-numeric" />
<div id="satSlider" class="slider"></div>
<br/><br/>
<label for="minHsvVal">Min Val</label>
<input type="text" id="minHsvVal" value="0.90" class="small-numeric" />
<label for="maxHsvVal">Max Val</label>
<input type="text" id="maxHsvVal" value="0.90" class="small-numeric" />
<div id="valSlider" class="slider"></div>
<br/><br/>
<label for="swatchWidth">Swatch Dimensions</label>
<input type="text" id="swatchWidth" value="30px" class="small-numeric" /><input type="button" id="swatchDimensionsSeparator" value="x" /><input type="text" id="swatchHeight" value="128px" class="small-numeric" />
<label for="swatchBorder">Swatch Separator</label>
<input type="checkbox" id="swatchBorder" />
<label for="swatchAlign">Swatch Align</label>
<select id="swatchAlign">
<option id="horizontal">Horizontal</option>
<option id="vertical">Vertical</option>
</select>
<br/>
<label for="outputFormat">Output Format</label>
<select id="outputFormat">
<option id="htmlHexLowerArray">RGB HTML color code lowercase hex (array)</option>
<option id="htmlHexLowerOnePerLine">RGB HTML color code lowercase hex (one per line)</option>
<option id="htmlHexUpperArray">RGB HTML color code uppercase hex (array)</option>
<option id="htmlHexUpperOnePerLine">RGB HTML color code uppercase hex (one per line)</option>
<option id="htmlRgb256Array">RGB values Integer [0-255] CSS syntax (array)</option>
<option id="htmlRgb256OnePerLine">RGB values Integer [0-255] CSS syntax (one per line)</option>
<option id="javaRgb256Array">RGB values Integer [0-255] (Java array of Color objects)</option>
<option id="htmlRgbPctArray">RGB values Percent CSS syntax (array)</option>
<option id="htmlRgbPctOnePerLine">RGB values Percent CSS syntax (one per line)</option>
<option id="htmlHslPctArray">HSL values Percent CSS syntax (array)</option>
<option id="htmlHslPctOnePerLine">HSL values Percent CSS syntax (one per line)</option>
<option id="pyHslList">HSL values Floating point [0-1] (python tuple list)</option>
<option id="pyHsvList">HSV values Floating point [0-1] (python tuple list)</option>
<option id="cRgbArray">RGB values Floating point [0-1] (C array)</option>
</select>
<br/>
<textarea rows="12" cols="80" id="output" readonly="readonly"></textarea>
</div>
</div>
</body>
</html>