-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
231 lines (174 loc) · 13.1 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>RANDRAW</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=yes">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<link rel="icon" href="favicon.ico?v=1.0">
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/randraw.css?v=2">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top border-bottom">
<a class="navbar-brand" href=".">RANDRAW</a>
<button class="navbar-toggler my-2" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav nav-pills nav-fill ml-auto" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link activate-tab active" id="calculator-tab" data-toggle="tab" href="#main" role="tab" aria-controls="main" aria-selected="true">Main</a>
</li>
<li class="nav-item">
<a class="nav-link activate-tab" id="roadmap-tab" data-toggle="tab" href="#roadmap" role="tab" aria-controls="roadmap" aria-selected="false">Roadmap</a>
</li>
</ul>
</div>
</nav>
<div id="main-container" class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="tab-content" id="pills-tab-content">
<div class="tab-pane fade show active" id="main" role="tabpanel" aria-labelledby="calculator-tab">
<div class="row" id="calc-row">
<canvas id="canvas-in" class="randraw-canvas"></canvas>
<canvas id="canvas-out" class="randraw-canvas"></canvas>
</div>
<div class="text-center underrow" id="iteration-row">
Distance: <span id="score-counter">...</span>
|
Iteration: <span id="iteration-counter">...</span>
|
Time: <span id="time-counter">...</span>
</div>
<div class="text-center underrow" id="buttons-row">
<button id="upload-input" class="underbutton">
<img id="upload-input-img" alt="Run" src="assets/img/upload.png" width="24px"/>
</button>
<button id="sp" disabled="disabled" class="underbutton neighbor">
<img id="sp-img" alt="Run" src="assets/img/play.png" width="24px"/>
</button>
<button id="dl" disabled="disabled" class="underbutton neighbor">
<img id="dl-img" alt="Run" src="assets/img/download.png" width="24px"/>
</button>
</div>
<div id="parameters">
<h4>Parameters</h4>
<label for="GreyscaleDrawing">Greyscale Drawing:</label>
<input type="range" min="0" max="1" step="0.01" value="0" class="slider" id="GreyscaleDrawing" oninput="inputParameters(this)"/>
<label for="GreyscaleCompare">Greyscale Compare:</label>
<input type="checkbox" id="GreyscaleCompare" oninput="inputParameters(this, 'checked')"/>
<br/>
<label>Opacity Range:</label>
<input type="range" min="0.01" max="1" step="0.01" value="0.25" class="slider" id="OpacityRange1" oninput="inputParameters(this)"/>
<input type="range" min="0.01" max="1" step="0.01" value="1" class="slider" id="OpacityRange2" oninput="inputParameters(this)"/>
<br/>
<label>Max Size Range:</label>
<input type="range" min="0.01" max="1" step="0.01" value="0.01" class="slider" id="MaxSizeRange1" oninput="inputParameters(this)"/>
<input type="range" min="0.01" max="1" step="0.01" value="0.75" class="slider" id="MaxSizeRange2" oninput="inputParameters(this)"/>
<br/>
<label for="DistanceRatioBias">Size to Distance Bias:</label>
<input type="range" min="0" max="1" step="0.01" value="0.5" class="slider" id="DistanceRatioBias" oninput="inputParameters(this)"/>
<br/>
<label for="SoftBlur">Soft blur:</label>
<input type="checkbox" id="SoftBlur" oninput="inputParameters(this, 'checked')"/>
<br/>
<p>
<a class="btn btn-info" data-toggle="collapse" href="#shapes" role="button" aria-expanded="false" aria-controls="shapes">
Select shapes
</a>
</p>
<div class="collapse" id="shapes">
<h6>
<input type="checkbox" id="ShapesAll" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesAll">Select all</label>
</h6>
<ul>
<li>
<input type="checkbox" id="ShapesFillRect" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesFillRect">Filled rectangle</label>
</li>
<li>
<input type="checkbox" id="ShapesStrokeRect" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesStrokeRect">Stroked rectangle</label>
</li>
<li>
<input type="checkbox" id="ShapesFillCircle" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesFillCircle">Filled circle</label>
</li>
<li>
<input type="checkbox" id="ShapesStrokeCircle" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesStrokeCircle">Stroked circle</label>
</li>
<li>
<input type="checkbox" id="ShapesFillEllipse" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesFillEllipse">Filled ellipse</label>
</li>
<li>
<input type="checkbox" id="ShapesStrokeEllipse" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesStrokeEllipse">Stroked ellipse</label>
</li>
<li>
<input type="checkbox" id="ShapesStrokeLine" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesStrokeLine">Stroked line</label>
</li>
<li>
<input type="checkbox" id="ShapesStrokeArc" checked oninput="inputParameters(this, 'checked', 'Shapes')"/>
<label for="ShapesStrokeArc">Stroked arc</label>
</li>
</ul>
</div>
</div>
</div>
<div class="tab-pane fade" id="roadmap" role="tabpanel">
<div class="row">
<div class="col-md-12">
<h2 class="mb-5">Roadmap</h2>
<p>
<a href="https://github.com/randraw/randraw.github.io/issues/1">Propose new features here</a>
or
<a href="https://github.com/randraw/randraw.github.io/issues?q=is%3Aopen+is%3Aissue+project%3Arandraw%2Frandraw.github.io%2F1">
vote on existing features here</a>.
</p>
<h3>0.1</h3>
<ul>
<li>Release basic functionality</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="footer" class="text-center">
Version: 0.1.12 (<a href="#roadmap" class="activate-tab">roadmap</a>)
| GitHub <a target="_blank" href="https://github.com/randraw/randraw.github.io/issues?q=is%3Aopen+is%3Aissue+project%3Arandraw%2Frandraw.github.io%2F1">@RANDRAW</a>
| Dev: <a target="_blank" href="https://twitter.com/vsubhuman">@vsubhuman</a>
</div>
<div class="text-center">
Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>
</div>
</div>
</div>
</div>
<script src="assets/js/vendor/jquery/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="node_modules/handlebars/dist/handlebars.min.js"></script>
<script src="node_modules/js-cookie/src/js.cookie.js"></script>
<script src="assets/js/hashtabs.js"></script>
<script src="assets/js/utils.js?v=4"></script>
<script src="assets/js/randraw.js?v=12"></script>
</body>
</html>