forked from tbranyen/make8bitart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
353 lines (284 loc) · 15.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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<!--
____
___ .-~. /_"-._
`-._~-. / /_ "~o\ :Y
\ \ / : \~x. ` ')
] Y / | Y< ~-.__j -------------------------
/ ! _.--~T : l l< /.-~ / \
/ / ____.--~ . ` l /~\ \<|Y -----\ JENN SCHIFFER MADE THIS |
/ / .-~~" /| . ',-~\ \L| \ WOWOWOWOWOWOWOWOW /
/ / / .^ \ Y~Y \.^>/l_ "--' \________________________/
/ Y .-"( . l__ j_j l_/ /~_.-~ .
Y l / \ ) ~~~." / `/"~ / \.__/l_
| \ _.-" ~-{__ l : l._Z~-.___.--~
| ~---~ / ~~"---\_ ' __[>
l . _.^ ___ _>-y~
\ \ . .-~ .-~ ~>--" /
\ ~---" / ./ _.-'
"-.,_____.,_ _.--~\ _.-~
~~ ( _}
`. ~(
) \
/,`--'~\--'
-->
<head>
<title>make 8-bit art!</title>
<link rel="stylesheet" href="build/make8bitart.min.css" />
<link rel="icon" href="assets/favicon.png" />
</head>
<body id="welcome-to-the-space-jam">
<!--
.--.__
.~ (@) ~~~---_
{ `-_~,,,,,,)
{ (_ ', ---- haha nope
~ . = _',
~- '. =-'
~ :
. _,.-~ ('');
'. .-~ \ \ ;
':-_ _.--~ \ \; _-=,.
~-:-.__ _.-~ { '---- _'-=,.
~-._~--._ __.-~ ~---------=,.`
~~-._~~-----~~~~~~ .+++~~~~~~~~-__ /
~-.,____ { - + } _/
~~-.______{_ _ -=\ / /_.~
: ~--~ // / ..-
: / / // / ((
: / / { `-------,. ))
: / ''=--------. }o
.=._________,' ) ))
) _________ -'' ~~
/ / _ _
(_.-.'O'-'. HEADER INFO -->
<div id="header" class="draggy" title="header">
<div class="controls">
<img class="ui-dragger" src="assets/draggybits/dragger3.png" alt="drag">
</div>
<h1>make 8-bit art!</h1>
<div id="minimized-tools-list"></div>
</div>
<!--
_..--+~/@-~--.
_-=~ ( . '
_-~ _.--=.\ \'''' --- BOOTY HAD ME LIKE...
_~ _- \ \_\
= _= '--'
' = .
: : ____ '=_. ___
___ | ; ____ '~--.~.
; ; _____ } |
___= \ ___ __ __..-...__ ___/__/__
: =_ _.-~~ ~~--.__
_____ \ ~-+-~ ___~=_______
~@#~~ == ...______ __ ___ _--~~--_ SOCIAL LINKS -->
<div id="what" class="draggy" title="what is this even?" data-title="what">
<div class="controls">
<img class="ui-dragger" src="assets/draggybits/dragger3.png" alt="drag">
<img class="ui-hider" src="assets/draggybits/hider2.png" alt="minimize">
</div>
<h3>what is this even?</h3>
<p>this is an <a href="http://github.com/jennschiffer/make8bitart" target="_blank">open source</a> pixel art drawing tool by me, <a href="http://jennmoney.biz" target="_blank">jennmoneydollars</a>!</p>
<p>if you make something cool, i wanna see it. tweet me at <a href="http://twitter.com/jennschiffer">@jennschiffer</a></p>
</div>
<!--
. .
/ `. .' \
.---. < > < > .---.
| \ \ - ~ ~ - / / |
~-..-~ ~-..-~
\~~~\.' `./~~~/
\__/ \__/
/ .- . \
_._ _.- .-~ ~-. / } \/~~~/
_.-'q }~ / } { ; \__/
butts --- {'__, / ( / { / `. ,~~| . .
`''''='~~-.__( /_ | /- _ `..-' \\ //
/ \ =/ ~~--~~{ ./| ~-. `-..__\\_//_.-'
{ \ +\ \ =\ ( ~ - . _ _ _..---~
| | { } \ \_\
'---.o___,' .o___, TOOLBOX -->
<div id="toolbox" class="draggy" title="canvas/brush tools" data-title="tools">
<div class="controls">
<img class="ui-dragger" src="assets/draggybits/dragger3.png" alt="drag">
<img class="ui-hider" src="assets/draggybits/hider2.png" alt="minimize">
</div>
<div id="tools" class="inner">
<h3>canvas tools</h3>
<div id="instruments">
<img class="current-tool icon-button" id="pencil" src="assets/pencil2.png" alt="draw" data-href="#draw" role="button" title="draw" />
<img id="paint" src="assets/paint.png" alt="paint" class="icon-button" data-href="#paint" role="button" title="paint/fill" />
</div>
<h3>edit tools</h3>
<input type="submit" id="undo" title="ctrl+z" value="undo" disabled="disabled" />
<input type="submit" id="redo" title="ctrl+y" value="redo" disabled="disabled" />
<br />
<input type="submit" value="new canvas" id="new-canvas" />
</div>
<div id="size" class="inner">
<h3>brush tools</h3>
<input id="pixel-size" class="pixel-size-input" type="number" min="1" max="100" step="1" value="15" />
<input id="pixel-size-slider" class="pixel-size-input" type="range" min="1" max="100" step="1" value="15" />
<div id="pixel-size-demo" class="color-demo"> </div>
</div>
</div>
<!--
_..-=~=-._
_.-~' ~.
__..---~~~~~ ~.
_.-~~ _.._ ~.
_ -~_ / \ ;
( ` '@) { | :
/ | | :
/ /} ( ) | | .- --- farting on
/ //-=-~-_-_ | | \ ; .' the h8rs
/ // | =._-| }/ / / /_.==\ ; _.' *
( oo //| = ) ~| /.__..-='| \ :' **
====||*| / / + ) \ |_.-~`\ : |**
|*| * / / / / \ | ([ ]) /|||(
* |* /_/ / / ( ] `/ \' /|||_
**(* | (((| /_/ __/_/__ -| |-- _|_|__
*|\| (((| ----- __|_|__
_/(h8rs)|__ ''' -----
_||_|__ FILE BOX -->
<div id="filebox" class="draggy" title="import/save" data-title="import-save">
<div class="controls">
<img class="ui-dragger" src="assets/draggybits/dragger3.png" alt="drag">
<img class="ui-hider" src="assets/draggybits/hider2.png" alt="minimize">
</div>
<div id="save" class="inner">
<!-- NOT YET
<label for="open-file">
import an image:
<input type="file" value="import image" id="open-file" />
</label>
-->
<h3>import art</h3>
<label for="open-local" class="local" id="open-local-form">
from local storage:
<input type="submit" value="import local art" id="open-local" name="open-local" />
</label>
<label for="import-pxon" class="pxon" id="import-pxon-form">
import <a href="http://jennmoney.biz/pxon">pxon</a>:
<input type="file" id="import-pxon" name="import-pxon" />
</label>
<h3>export art</h3>
<label for="save-png" class="png" id="save-png-form">
to png:
<input type="submit" value="save full page" id="save-full" />
<input type="submit" value="save selection" id="save-selection" />
</label>
<label for="save-local" class="local" id="save-local-form">
to local storage:
<input type="submit" value="save local to browser" id="save-local" class="local" />
</label>
<label for="export-pxon" class="pxon" id="export-pxon-form">
export <a href="http://jennmoney.biz/pxon">pxon</a>:
<input type="submit" value="export pxon" id="export-pxon" class="pxon" />
</label>
<p>
</p>
<ul class="instructions">
<li>click and drag to select the area of the canvas you want to save.</li>
</ul>
</div>
</div>
<!--
<\ _
\\ _/{
_ \\ _- -_
/{ / `\ _- - -_
_~ = ( @ \ - - -_
_- - ~-_ \( =\ \ - -_
_~ - ~_ | 1 :\ \ _-~-_ - -_
_- - ~ |V: \ \ _-~ ~-_- -_
_-~ - / | : \ \ ~-_- -_
_-~ - _.._ { | : _-`` ~- _-_
_-~ -__..--~ ~-_ { : \:} --- hi h8rs
=~__.--~~ ~-_\ : /
\ : /__
//`Y'--\\
<+ \\
\\ WWW
MMM COLORBOX -->
<div id="colorbox" class="draggy" title="color tools" data-title="colors">
<div class="controls">
<img class="ui-dragger" src="assets/draggybits/dragger3.png" alt="drag">
<img class="ui-hider" src="assets/draggybits/hider2.png" alt="minimize">
</div>
<ul class="tabs">
<li class="default active" data-href="#default-palettes" role="button">default/history</li>
<li class="pickers" data-href="#pickers" role="button">color pickers</li>
<li class="custom" data-href="#custom-palettes" role="button">custom palettes</li>
</ul>
<div id="default-palettes" class="inner palettes clearfix">
<h3>pick a color:</h3>
<ul class="clearfix">
<li><a class="button color primary red" title="red" data-color="rgba(255, 0, 0, 1)"> </a></li>
<li><a class="button color primary orange" title="orange" data-color="rgba(255, 165, 0, 1)"> </a></li>
<li><a class="button color primary yellow" title="yellow" data-color="rgba(255, 255, 0, 1)"> </a></li>
<li><a class="button color primary green" title="green" data-color="rgba(0, 128, 0, 1)"> </a></li>
<li><a class="button color primary blue" title="blue" data-color="rgba(0, 0, 255, 1)"> </a></li>
<li><a class="button color primary purple" title="purple" data-color="rgba(128, 0, 128, 1)"> </a></li>
<li><a class="button color primary black" title="black" data-color="rgba(0, 0, 0, 1)"> </a></li>
<li><a class="button color primary gray" title="gray" data-color="rgba(128, 128, 128, 1)"> </a></li>
<li><a class="button color primary white" title="white" data-color="rgba(255, 255, 255, 1)"> </a></li>
<li><a class="button color transparent" title="erase" data-color="rgba(0, 0, 0, 0)"> </a></li>
</ul>
<div id="color-history">
<h3 class="color-history-label">history:</h3>
<ul class="color-history-list clearfix"></ul>
<div id="color-history-tools">
<button class="clear">clear</button>
<!--<button class="export">export</button>-->
</div>
</div>
</div>
<div id="pickers">
<div id="hex-picker">
<h3>hex value:</h3>
<span class="pound">#</span><input id="hex-color" type="text" value="000000" /> <img class="icon-button" id="color-dropper" src="assets/dropper2.png" alt="color dropper" data-href="#dropper" role="button" title="color dropper" />
</div>
<div id="eight-bit-picker">
<h3 class="eightbit">click to pick:</h3>
<canvas id="eight-bit-colors" width="195" height="195"></canvas>
<div class="color-demo eightbit"></div>
</div>
</div>
<div id="custom-palettes">
<div id="color-custom" class="palettes">
<h3 class="color-upload-label">custom palette:</h3>
<ul class="color-custom-list clearfix"></ul>
<div id="color-custom-tools">
<p>Upload file in "name,hex" csv format, like in <a href="assets/example.csv">example.csv</a>!</p>
<input type="file" name="upload-palette" class="import" />
<button class="clear">clear</button>
</div>
</div>
</div>
</div>
<div id="save-modal-container" class="modal hidden">
<div id="save-modal" class="inside-modal">
<img class="ui-hider" src="assets/draggybits/hider2.png" alt="close">
<h2>you saved your art!</h2>
<a href="#" target="_blank"><img id="finished-art" /></a>
<p>Click or drag your art to your desktop to save, <br />or <input type="submit" value="upload to imgur.com" id="save-imgur" /> <a id="link-imgur"></a>!</p>
</div>
</div>
<div id="open-modal-container" class="modal hidden">
<div id="open-modal" class="inside-modal">
<img class="ui-hider" src="assets/draggybits/hider2.png" alt="close">
<h2>you have some locally saved art!</h2>
<h3>wanna open one? click a thumbnail...</h3>
<ul class="gallery"> </ul>
</div>
</div>
<script src="build/vendor.min.js"></script>
<script src="build/make8bitart.js"></script>
<script src="//pmetrics.performancing.com/js" type="text/javascript"></script>
<script type="text/javascript">try{ clicky.init(15102); }catch(e){}</script>
<noscript><p><img alt="Performancing Metrics" width="1" height="1" src="//pmetrics.performancing.com/15102ns.gif" /></p></noscript></body>
</html>