-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathedit.html
More file actions
236 lines (216 loc) · 15.9 KB
/
Copy pathedit.html
File metadata and controls
236 lines (216 loc) · 15.9 KB
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
232
233
234
235
236
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Voxel Critter Creator</title>
<meta charset="utf-8">
<link rel"shortcut icon" href="favicon.ico">
<link href="flatui/css/bootstrap.css" rel="stylesheet">
<link href="flatui/css/flat-ui.css" rel="stylesheet">
<link href="colorpicker/css/colorpicker.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="instructions">
<h3 class="demo-panel-title"><a href="/">Voxel Critter Creator</a></h3>
<select class="actionsMenu" value="Actions" tabindex="1">
<option value="noop" selected="selected">Actions</option>
<option value="viewInstructions">View Instructions</option>
<option value="loadExample">Load Example Critter</option>
<!-- <option value="browseTwitter">Recently Made Critters</option> -->
<option value="browseRecent">Recently Made Critters</option>
<option value="share">Publish + Share Critter</option>
<option value="export">Export PNG</option>
<option value="orthogamiExport">Export Orthogami</option>
<option value="paperstackExport">Export Paperstack</option>
<option value="reset">Reset</option>
<option value="about">About</option>
</select>
<div class="share mrl">
<ul>
<li>
<label class="share-label" for="share-toggle2">Grid</label>
<div data-action="showGrid" class="toggle">
<label class="toggle-radio" for="share-toggle2">ON</label>
<input type="radio" name="share-toggles" id="share-toggle2" value="toggle1" checked="checked">
<label class="toggle-radio" for="share-toggle1">OFF</label>
<input type="radio" name="share-toggles" id="share-toggle1" value="toggle2">
</div>
</li>
<li>
<label class="share-label" for="share-toggle3">Wireframe</label>
<div data-action="setWireframe" class="toggle">
<label class="toggle-radio" for="share-toggle4">ON</label>
<input type="radio" name="share-toggles2" id="share-toggle4" value="toggle1" checked="checked">
<label class="toggle-radio" for="share-toggle3">OFF</label>
<input type="radio" name="share-toggles2" id="share-toggle3" value="toggle2">
</div>
</li>
<li>
<label class="share-label" for="share-toggle4">Animation</label>
<div data-action="toggleAnimation" class="toggle">
<label class="toggle-radio" for="share-toggle6">ON</label>
<input type="radio" name="share-toggles3" id="share-toggle6" value="toggle1">
<label class="toggle-radio" for="share-toggle5">OFF</label>
<input type="radio" name="share-toggles3" id="share-toggle5" value="toggle2" checked="checked">
</div>
</li>
</ul>
</div> <!-- /share -->
<div class="row color-container">
<div class="span3">
<div class="btn-group color-picker">
<a class="btn btn-primary colorPickButton active" href="#"><i data-color="0" class="color"></i></a>
<a class="btn btn-primary colorPickButton" href="#"><i data-color="1" class="color"></i></a>
<a class="btn btn-primary colorPickButton" href="#"><i data-color="2" class="color"></i></a>
<a class="btn btn-primary colorPickButton" href="#"><i data-color="3" class="color"></i></a>
<a class="btn btn-primary colorPickButton" href="#"><i data-color="4" class="color"></i></a>
<a class="btn btn-primary colorAddButton" data-color="#000000" href="#"><i data-color="-1" class="colorAdd">++</i></a>
</div>
</div>
</div>
<div class="share">
<div class="tile">
<img class="tile-image big-illustration" alt="" src="img/brain-share.png" />
<p>Finished? Upload so others will be able to download and view it.</p>
<a id="shareButton" class="btn btn-primary btn-large btn-block">Upload critter</a>
</div>
</div>
<div id="output"></div>
</div>
<div class="animationControls">
<div class="playback">
<span class="play-pause fui-play"></span>
</div>
<div class="sliderContainer">
<div id="slider" class="ui-slider">
</div>
</div>
<div class="addRemove">
<span class="plus-button fui-plus"></span>
<span class="minus-button fui-cross"></span>
</div>
</div>
<div id="welcome" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Welcome to Voxel Critter Creator</h3>
</div>
<div class="modal-body">
<div class="span3 hello">
<p><h4>Create your own critter!</h4></p>
<p>Use your mouse to place blocks. When you are done designing your critter you can share it with the world.</p>
<p><img src="img/critter.png"></p>
</div>
<div class="span3">
<div class="tile controls">
<p><h4>Controls</h4></p>
<p><strong>click + drag</strong> to adjust angle.</p>
<p><strong>click</strong> to place a voxel.</p>
<p><strong>shift</strong> to delete a voxel.</p>
<p><strong>alt</strong> to bulk edit voxels.</p>
<p><strong>1-5</strong> to change color.</p>
<p><strong>+/-</strong> or <strong>scroll</strong> to zoom.</p>
<p><strong>drop</strong> an creature .png image to load it in</p>
</div>
</div>
<div class="span3 hello">
<p><h4>Animation</h4></p>
<p>Turn on Animation to optionally create a multi-frame voxel critter.</p>
<p><img src="img/anigif.gif" width=250></p>
<p><a href="/edit.html#C/2ecc713498db34495ee67e22ecf0f1cf9f9fffccccf0ff47e8e1cfede4e4f5bc6766bda3:A/fhihhachekhfachckhSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZSfaohSfehfhSfUfSheWhfShWffShdqflSfaWhSffpihbSfWfhSffbahlYffjifYUheeehYfchiUffdlfjShWffShXfflShaofShdecYSfWhhacfekhhacffkdhoSfafhSfYeYffjhhYSfceiUfUfYfejhhUh:A1/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfYYdmadachekhfachdnkjUfeWhfUffqfhlaWffpihbUfdbalYffjifYUheeehYfchiUffdlfjUfVflaohedcfYhSfYfVhYYhcfhYhcfhYhedfjYfchfYfchfYfVfoYhfdndbYfUfYhephjYfUfYhVflYfaYdYf:A2/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoaYfdmadachekhfachfdkfjUfdmcdUhaehUffdlfjUfflcfdYhcfhYhadjYfchfYfchfYfVfoYhfdndbYfUfYhephjYfUfYhVflYffdcdYYhVfoYffhhfYYfaelYfVfoYhaibYhcanYfchfYffphlbYhUfYfWifYffhdhlYh:A3/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfYYdmadachekhfachfdkfjUfdmcdUhaehUffdlfjUfflcfdYhcfhYhadjYfchfYfchfYfVfoYhfihdYYhVfoYffknibUfVflaWffpihbUffYfflaohfdcfYYhadhYfdhfoYfajfYheiliYhdfhbYhUhYfaXdYhUfYfdhflYf:A4/fhihhachekhfachckhSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZSfaohSfehfhSfUfSheWhfShWffShdqflSfaWhSffpihbSfWfhSffbahlYffjifYUheeehYfchiUffdlfjShWffShXfflShaofShdecYSfWhhacfekhhacffkdhoSfafhSfYeYffjhhYSfceiUfUfYfejhhUh:A5/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZSfaohSfchfUfeWhhUffqfflaWhfpifbUfeYhhUfVflaofdeeYachajfaehcjeUhacfekhhacffkdhoYfVhYeeifUfaihUhaeeYfchfYfUiYhdfdoShYhSfeifjYhdfiYYhUfYffkmdjYfUfYheWhjYhUfYffqfdlYfaYjYf:A6/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfchfUfcfhUffechdacfekhhacfYhUfaihUhaeeYfchfYffjejoYhdfiYYhUfYffkmdjYfUfYheWhjYhUfYfdhflYffkcdYYfahfYfVfoYhShYfajkYhdfhYYhefifYhfikcoYhUfYfeXflYhdfibYhUfYfeiifYf:A7/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfchfUfcfhUffechdacfekhhacfYhUfaihUhaeeYfchfYffjejoYhdfiYYhUfYffkmdjYfUfYheWhjYhUfYfdhflYffkcdYYfdhfoYffjjjYYhfalejeffhUffqfflaWhdhibUfVflaofdbcYYfakhYfdhfoYfaefYfenlfYf">View the demo animation.</a></p>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Okay!</button>
</div>
</div>
<div id="share" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Share Critter</h3>
</div>
<div class="modal-body">
<div class="control-group">
<input type="text" class="login-field name" value="" placeholder="Critter name (optional)"
id="login-name">
</div>
<div class="control-group">
<input type="text" class="login-field author" value="" placeholder="Author name (optional)"
id="login-pass">
</div>
<div class="share-form"></div>
</div>
<div class="modal-footer">
<button class="btn btn-cancel" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div id="about" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">About</h3>
</div>
<div class="modal-body">
<p>Made by <a href="http://twitter.com/maxogden">@maxogden</a> for the <a href="http://twitter.com/voxeljs">@voxeljs</a> project.</p>
<p>Based originally on Voxel Painter by Mr. Doob.</p>
<p>Report bugs <a href="https://github.com/maxogden/voxel-painter">on Github</a>.</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div id="browse" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Recent Creations</h3>
</div>
<div class="modal-body">
<div class="demo-browser-content">
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div id="orthogamiExport" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Orthogami Export</h3>
</div>
<div class="modal-body">
<p>Generated by the <a href="https://github.com/mikolalysenko/orthogami/">Orthogami</a> library</p>
<div class="orthogami"></div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div id="paperstackExport" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Paperstack Export</h3>
</div>
<div class="modal-body">
<p>Generated by the <a href="http://github.com/maxogden/voxel-2d-print">voxel-2d-print</a> library</p>
<div class="canvases"></div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<!-- <div class="hidden">
<a class="twitter-timeline" href="https://twitter.com/search?q=%23voxelcritter" data-widget-id="315522378715238401">Tweets about "#voxelcritter"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div> -->
<script type="text/javascript" src="js/flatui-deps.js"></script>
<script type="text/javascript" src="colorpicker/js/bootstrap-colorpicker.js"></script>
<script type="text/javascript" src="bundle.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42257469-1', 'voxelbuilder.com');
ga('send', 'pageview');
</script>
</body>
</html>