forked from tbranyen/make8bitart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
376 lines (332 loc) · 15.9 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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE html>
<html lang="en">
<!--
____
___ .-~. /_"-._
`-._~-. / /_ "~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>
<meta charset="UTF-8">
<title>make 8-bit art!</title>
<link rel="stylesheet" href="build/make8bitart.min.css" />
<link rel="icon" href="assets/favicon.png" />
</head>
<body id="gravity-and-time-are-social-constructs">
<!--
.--.__
.~ (@) ~~~---_
{ `-_~,,,,,,)
{ (_ ', ---- haha nope
~ . = _',
~- '. =-'
~ :
. _,.-~ ('');
'. .-~ \ \ ;
':-_ _.--~ \ \; _-=,.
~-:-.__ _.-~ { '---- _'-=,.
~-._~--._ __.-~ ~---------=,.`
~~-._~~-----~~~~~~ .+++~~~~~~~~-__ /
~-.,____ { - + } _/
~~-.______{_ _ -=\ / /_.~
: ~--~ // / ..-
: / / // / ((
: / / { `-------,. ))
: / ''=--------. }o
.=._________,' ) ))
) _________ -'' ~~
/ / _ _
(_.-.'O'-'. HEADER INFO -->
<header class="draggy" role="banner">
<div class="controls">
<button role="button" class="ui-dragger">
<img src="assets/draggybits/dragger.png" alt="move controls window">
</button>
</div>
<h1>make 8-bit art!</h1>
<ul id="minimized-tools-list" role="navigation"></ul>
</header>
<!--
_..--+~/@-~--.
_-=~ ( . '
_-~ _.--=.\ \'''' --- BOOTY HAD ME LIKE...
_~ _- \ \_\
= _= '--'
' = .
: : ____ '=_. ___
___ | ; ____ '~--.~.
; ; _____ } |
___= \ ___ __ __..-...__ ___/__/__
: =_ _.-~~ ~~--.__
_____ \ ~-+-~ ___~=_______
~@#~~ == ...______ __ ___ _--~~--_ SOCIAL LINKS
-->
<section id="what" class="draggy" title="what is this?" data-title="what">
<div class="controls">
<button role="button" class="ui-dragger">
<img src="assets/draggybits/dragger.png" alt="move controls window">
</button>
<button role="button" class="ui-hider">
<img src="assets/draggybits/hider.png" alt="move controls window">
</button>
</div>
<h2>what is this?</h2>
<p>this is an <a href="http://github.com/jennschiffer/make8bitart" title="link to make8bitart repo on github" target="_blank">open source</a> pixel art drawing tool by <a href="http://jennmoney.biz" title="official website of" 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>
</section>
<!--
. .
/ `. .' \
.---. < > < > .---.
| \ \ - ~ ~ - / / |
~-..-~ ~-..-~
\~~~\.' `./~~~/
\__/ \__/
/ .- . \
_._ _.- .-~ ~-. / } \/~~~/
_.-'q }~ / } { ; \__/
butts --- {'__, / ( / { / `. ,~~| . .
`''''='~~-.__( /_ | /- _ `..-' \\ //
/ \ =/ ~~--~~{ ./| ~-. `-..__\\_//_.-'
{ \ +\ \ =\ ( ~ - . _ _ _..---~
| | { } \ \_\
'---.o___,' .o___, TOOLBOX -->
<section id="toolbox" class="draggy" title="canvas/brush tools" data-title="tools">
<div class="controls">
<button role="button" class="ui-dragger">
<img src="assets/draggybits/dragger.png" alt="move controls window">
</button>
<button role="button" class="ui-hider">
<img src="assets/draggybits/hider.png" alt="move controls window">
</button>
</div>
<div id="instruments" class="inner">
<h2>instruments</h2>
<ul role="toolbar">
<li>
<button id="pencil" role="button" class="current-tool icon-button">
<img src="assets/pencil.png" alt="draw" />
</button>
</li>
<li>
<button id="paint" role="button" class="icon-button">
<img src="assets/paint.png" alt="paint/fill" />
</button>
</li>
</ul>
</div>
<div id="editing" class="inner">
<h2>editing</h2>
<ul role="toolbar">
<li>
<button id="cut" role="button" class="icon-button">
<img src="assets/cut.png" alt="cut" />
</button>
</li>
<li>
<button id="copy" role="button" class="icon-button">
<img src="assets/copy.png" alt="copy" />
</button>
</li>
<li>
<button id="paste" role="button" class="icon-button">
<img src="assets/paste.png" alt="paste" />
</button>
</li>
</ul>
<ul class="instructions paste">
<li>click on the canvas where you want the top left corner of your copied clip to be pasted.</li>
</ul>
<button role="button" class="text-button" id="undo" disabled="disabled">undo</button>
<button role="button" class="text-button" id="redo" disabled="disabled" />redo</button>
<button role="button" class="text-button" id="new-canvas">new canvas</button>
</div>
<div id="size" class="inner">
<h2>brush size</h2>
<input id="pixel-size" class="pixel-size-input" type="number" min="2" max="100" step="1" value="15" />
<input id="pixel-size-slider" class="pixel-size-input" type="range" min="2" max="100" step="1" value="15" />
<div id="pixel-size-demo" class="color-demo"> </div>
</div>
</section>
<!--
_..-=~=-._
_.-~' ~.
__..---~~~~~ ~.
_.-~~ _.._ ~.
_ -~_ / \ ;
( ` '@) { | :
/ | | :
/ /} ( ) | | .- --- farting on
/ //-=-~-_-_ | | \ ; .' the h8rs
/ // | =._-| }/ / / /_.==\ ; _.' *
( oo //| = ) ~| /.__..-='| \ :' **
====||*| / / + ) \ |_.-~`\ : |**
|*| * / / / / \ | ([ ]) /|||(
* |* /_/ / / ( ] `/ \' /|||_
**(* | (((| /_/ __/_/__ -| |-- _|_|__
*|\| (((| ----- __|_|__
_/(h8rs)|__ ''' -----
_||_|__ FILE BOX -->
<section id="filebox" class="draggy" title="import/save" data-title="import-save">
<div class="controls">
<button role="button" class="ui-dragger">
<img src="assets/draggybits/dragger.png" alt="move controls window">
</button>
<button role="button" class="ui-hider">
<img src="assets/draggybits/hider.png" alt="move controls window">
</button>
</div>
<div id="import" class="inner">
<h2>import art</h2>
<label for="open-local" class="local" id="open-local-form">
from local storage:
<button role="button" class="text-button" id="open-local">import local art</button>
</label>
<label for="import-pxon" class="pxon" id="import-pxon-form">
import <a href="http://pxon.github.io/">pxon</a>:
<input type="file" id="import-pxon" name="import-pxon" />
</label>
</div>
<div id="export">
<h2>export art</h2>
<label for="save-png" class="png" id="save-png-form">
to png:<br />
<button role="button" class="text-button" id="save-full">full page</button>
<button role="button" class="text-button" id="save-selection">selection</button>
</label>
<label for="save-local" class="local" id="save-local-form">
to local storage:<br />
<button role="button" class="text-button" id="save-local" class="local">local store</button>
</label>
<label for="export-pxon" class="pxon" id="export-pxon-form">
export <a href="http://jennmoney.biz/pxon">pxon</a>:<br />
<button role="button" class="text-button" id="export-pxon" class="pxon">export pxon</button>
</label>
</div>
<ul class="instructions save">
<li>click and drag to select the area of the canvas you want to save.</li>
</ul>
</section>
<!--
<\ _
\\ _/{
_ \\ _- -_
/{ / `\ _- - -_
_~ = ( @ \ - - -_
_- - ~-_ \( =\ \ - -_
_~ - ~_ | 1 :\ \ _-~-_ - -_
_- - ~ |V: \ \ _-~ ~-_- -_
_-~ - / | : \ \ ~-_- -_
_-~ - _.._ { | : _-`` ~- _-_
_-~ -__..--~ ~-_ { : \:} --- hi h8rs
=~__.--~~ ~-_\ : /
\ : /__
//`Y'--\\
<+ \\
\\ WWW
MMM COLORBOX -->
<section id="colorbox" class="draggy" title="color tools" data-title="colors">
<div class="controls">
<button role="button" class="ui-dragger">
<img src="assets/draggybits/dragger.png" alt="move controls window">
</button>
<button role="button" class="ui-hider">
<img src="assets/draggybits/hider.png" alt="move controls window">
</button>
</div>
<div class="tabs" role="navigation">
<button role="button" class="pickers active" data-href="#pickers">color pickers</button>
<button role="button" class="palettes" data-href="#custom-palettes">history/custom palettes</button>
</div>
<div id="pickers">
<div id="hex-picker">
<h2>hex value:</h2>
<span class="pound">#</span><input type="text" id="hex-color" value="000000" />
<button role="button" id="color-dropper" class="icon-button">
<img src="assets/dropper.png" alt="color dropper" />
</button>
</div>
<ul class="colors clearfix">
<li><button role="button" class="button color primary cyan" title="cyan" data-color="rgba(0, 255, 255, 1)"> </button></li>
<li><button role="button" class="button color primary magenta" title="magenta" data-color="rgba(255, 0, 255, 1)"> </button></li>
<li><button role="button" class="button color primary yellow" title="yellow" data-color="rgba(255, 255, 0, 1)"> </button></li>
<li><button role="button" class="button color primary black" title="black" data-color="rgba(0, 0, 0, 1)"> </button></li>
<li><button role="button" class="button color primary gray" title="gray" data-color="rgba(128, 128, 128, 1)"> </button></li>
<li><button role="button" class="button color primary white" title="white" data-color="rgba(255, 255, 255, 1)"> </button></li>
<li><button role="button" class="button color transparent" title="erase" data-color="rgba(0, 0, 0, 0)"> </button></li>
</ul>
<div id="eight-bit-picker">
<h2 class="eightbit">click to pick:</h2>
<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-history" class="inner">
<h2 class="color-history-label">history:</h2>
<ul class="color-history-list colors clearfix"></ul>
<div id="color-history-tools">
<button role="button" class="text-button clear">clear history</button>
</div>
</div>
<div id="color-custom" class="palettes inner">
<h2 class="color-upload-label">custom palette:</h2>
<ul class="color-custom-list colors 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 role="button" class="text-button clear">clear palette</button>
</div>
</div>
</div>
</section>
<section id="save-modal-container" class="modal hidden">
<div id="save-modal" class="inside-modal">
<div class="controls">
<button role="button" class="ui-hider">
<img src="assets/draggybits/hider.png" alt="move controls window">
</button>
</div>
<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 />
<button role="button" class="text-button"id="save-imgur">Or upload to imgur.com!</button>
</p>
<p id="link-imgur"></p>
</div>
</section>
<section id="open-modal-container" class="modal hidden">
<div id="open-modal" class="inside-modal">
<div class="controls">
<button role="button" class="ui-hider">
<img src="assets/draggybits/hider.png" alt="move controls window">
</button>
</div>
<h2>you have some locally saved art!</h2>
<h3>wanna open one? click a thumbnail...</h3>
<ul class="gallery"> </ul>
</div>
</section>
<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>