-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
297 lines (247 loc) · 11.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>STICKY Pixels - PostIt! Artboard</title>
<link rel="preload" href="/2assets/fonts/8bit-Art-Sans-subset.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/2assets/fonts/VT323-Regular-subset.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="build/make8bitart.min.css" />
<link rel="icon" href="/assets/favicon.png" />
<script src="build/app.min.js" defer></script>
</head>
<body id="gravity-and-time-are-social-constructs">
<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>
<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" target="_blank">@jennschiffer</a>!</p>
<p>if you really enjoy this and want to support it, you can do so indirectly by <a href="http://www.blackgirlscode.com/" target="_blank">donating to black girls code</a>!</p>
</section>
<!-- 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>
<!-- 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 local" id="save-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 pxon" id="export-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>
<!-- 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" autocomplete="off" autocorrect="off" spellcheck="false" />
<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" download="art.png"><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>
<section id="pxon-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>export pxon!</h2>
<h3><a href="http://jennmoney.biz/pxon/">what is pxon? read my spec!</a></h3>
<p>the gist of it is that pxon is pixel art represented in JSON. the current session of your drawing should be represented in the textarea below - paste into a .json file or app that supports pxon for good fun!</p>
<textarea></textarea>
<p><strong>note: pxon is a draft proposal and a fake idea by me (jenn, creator of make8bitart.com) that's being updated sporadically and sometimes doesn't work. please let me know if it's broken!</strong></p>
</div>
</section>
<script type="text/javascript">
if('serviceWorker' in navigator) {
navigator.serviceWorker
.register('service-worker.js')
.then(function(reg) {
console.log('service worker registered --- ' + reg.scope + ' should work offline now :)');
}).catch(function(err) {
console.log('service worker failed --- ' + err);
});
}
</script>
<script src="https://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>