-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
193 lines (182 loc) · 10.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome Paint</title>
<link rel="stylesheet" type="text/css" href="css/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.theme.min.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.structure.min.css">
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/canvas-toBlob.js"></script>
<script type="text/javascript" src="js/FileSaver.js"></script>
<script type="text/javascript" src="js/globals.js"></script>
<script type="text/javascript" src="js/functionality.js"></script>
<script type="text/javascript" src="js/magnify.js"></script>
<script type="text/javascript" src="js/history.js"></script>
<script type="text/javascript" src="js/wip.js"></script>
<script type="text/javascript" src="js/drawOperations.js"></script>
<script type="text/javascript" src="js/bezier.js"></script>
<script type="text/javascript" src="js/palette.js"></script>
<script type="text/javascript" src="js/init.js"></script>
<script type="text/javascript" src="js/inputs.js"></script>
<script type="text/javascript" src="js/output.js"></script>
<script type="text/javascript" src="js/filedrop-min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body id="loadDropContainer">
<div id="wrap">
<div id="resizeContainer">
<div id="topBar">
<select disabled id="initZoom" style="display: none;">
<option value="1">x 1</option>
<option value="2">x 2</option>
<option value="3">x 3</option>
<option value="4">x 4</option>
</select>
<div id="title">Really Awesome Paint</div>
<div id="version">V0.1</div>
<div id="hoverCol"></div>
<div id="info"></div>
<button id="saveBtn" value="Save">Save PNG</button>
<div id="coords"><div id="coordX"></div><div id="coordY"></div></div>
</div>
<div class="sidebar left">
<div id="rgbSliders">
<div class="verticalSlider">
<div class="rgbLabel">H</div>
<div class="rgbSlider" id="hueSlider"></div>
<input type="text" id="hueVal" />
</div>
<div class="verticalSlider">
<div class="rgbLabel">S</div>
<div class="rgbSlider" id="satSlider"></div>
<input type="text" id="satVal" />
</div>
<div class="verticalSlider">
<div class="rgbLabel">V</div>
<div class="rgbSlider" id="valSlider"></div>
<input type="text" id="valVal" />
</div>
<div class="verticalSlider">
<div class="rgbLabel">R</div>
<div class="rgbSlider" id="redSlider"></div>
<input type="text" id="redVal" />
</div>
<div class="verticalSlider">
<div class="rgbLabel">G</div>
<div class="rgbSlider" id="greenSlider"></div>
<input type="text" id="greenVal" />
</div>
<div class="verticalSlider">
<div class="rgbLabel">B</div>
<div class="rgbSlider" id="blueSlider"></div>
<input type="text" id="blueVal" />
</div>
</div>
<div id="tempColour"></div>
<div id="fgbgContainer">
<div id="foregroundColour"></div>
<div id="backgroundColour"></div>
</div>
<div class="applySpread">Spread</div>
<div class="applyCopy">Copy</div>
<div class="applySwap">Swap</div>
<div class="applyChange">Apply</div>
<!-- <div class="cancelChange">Cancel</div> -->
<div id="settings">
<div title="Press 'm' to magnify"><input type="checkbox" onclick="toggleSplitscreen();" /> No splitscreen</div>
<div class="shortcut first">Cheat sheet:</div>
<div class="shortcut"><div class="key">m</div><div class="info">Magnify on/off</div></div>
<div class="shortcut"><div class="key">s</div><div class="info">Sketch</div></div>
<div class="shortcut"><div class="key">d</div><div class="info">Draw</div></div>
<div class="shortcut"><div class="key">l</div><div class="info">Line</div></div>
<div class="shortcut"><div class="key">q</div><div class="info">Curve</div></div>
<div class="shortcut"><div class="key">f</div><div class="info">Fill</div></div>
<div class="shortcut"><div class="key">r</div><div class="info">Rectangle<br>(shift-r filled)</div></div>
<div class="shortcut"><div class="key">c</div><div class="info">Circle<br>(shift-c filled)</div></div>
<div class="shortcut"><div class="key">e</div><div class="info">Ellipse<br>(shift-e filled)</div></div>
<div class="shortcut"><div class="key">u</div><div class="info">Undo<br>(also middle mouse)</div></div>
<div class="shortcut"><div class="key">U</div><div class="info">Redo<br>(Shift+u)</div></div>
<div class="shortcut"><div class="key">k</div><div class="info">Clear Screen</div></div>
<div class="shortcut"><div class="key">[</div><div class="info">Next Colour</div></div>
<div class="shortcut last"><div class="key">]</div><div class="info">Previous Colour</div></div>
</div>
</div>
<div id="middle">
<div id="canvasContainer" oncontextmenu="return false;">
</div>
<div id="toolContainer" oncontextmenu="return false;">
<div id="palette">
</div>
<div class="activePal"><div id="bgActive"></div></div>
<div class="activePal"><div id="fgActive"></div></div>
<div id="tools">
<div id="row1">
<div id="sketch" class="tool ready">sketch</div>
<div id="line" class="tool ready sub">line</div>
<div id="fill" class="tool ready">fill</div>
<div id="rectangle" class="tool ready sub">rectangle</div>
<div id="ellipse" class="tool sub ready">ellipse</div>
<div id="undo" class="tool undo">undo</div>
</div>
<div id="row2">
<div id="draw" class="tool ready sub active">draw</div>
<div id="curve" class="tool ready sub">curve</div>
<div id="spray" class="tool">spray</div>
<div id="circle" class="tool ready sub">circle</div>
<div id="polygon" class="tool sub">polygon</div>
<div id="clear" class="tool clear">clear</div>
</div>
<!--
<select id="tooltype">
<option disabled>polygon</option>
<option disabled>brush</option>
<option disabled>text tool</option>
<option disabled>grid</option>
<option disabled>symmetry</option>
<option disabled>magnify</option>
</select>
-->
</div>
</div>
</div>
<div class="sidebar right">
<div id="cmdList">Command History</div>
<div id="outputContainer">
<div id="output"></div>
</div>
<div id="inputContainer">
<div class="info">Paste or write commands here</div>
<textarea id="input" rows="5"></textarea>
<button id="runBtn" onClick="parseCommandHistory()">Run</button>
</div>
<div id="saveContainer">
<label>Project filename:</label>
<input id="saveFileName" type="text" value="AwesomePaint.txt" />
<button id="saveProject" onClick="dumpFrameToText()">Download AP Project file</button>
</div>
</div>
</div>
</div>
<div>
<div id="overlayTemp" class="hidden">
</div>
<div id="imageTemp" class="hidden">
</div>
</div>
<div id="footer">
<div id="ppDonate">
<h2>Support Awesome Paint</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCaof0RahyftPVmgPD52vTVoz2ZLHBvFGrXpIp8pB0lhE5puvaEpUUvepckmJ3KaWT9BIT1+be22sgcW+qKN8BICKuXES9KhS0C3QWbLVDDjrVWpi46U4i2Jj7TLBwz4O63MiCmyN6ZPjWa1RyMH0acloqWH8/FKDcl6jPQOFvuHTELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIMj07wPWiR5aAgYjRgcI67EzUP2fLRwhpF8zuXQuY4d9c5jKk7BuYhSx6IXi8INkGRIhZP7B75EN/VDl281DCT26hkuOPOwboZdi35ICYyrXwhnchNy550T8sivWdJ93kLQFx0qSCemQE8Pppj4Lg3p3DRfCFNl7Pvxo+XzhF0iPZp3S06Bd0EuCb1YTUqvYlg4HwoIIDhzCCA4MwggLsoAMCAQICAQAw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IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTUwMTE3MTQyMjM1WjAjBgkqhkiG9w0BCQQxFgQUl3opKxWftVvlsZe68LhhcSwsauIwDQYJKoZIhvcNAQEBBQAEgYBGmIwTsSp6o3ObhGSpm/52J2mueQBZuv5TaRvp9rQL6sEaM1fDUOOVMEHfbUnI789ntV8m/ujX0CbxoX+MQYyoz+JYoWdoaVXcMGkfFIYEIFz4OiExfbWI89XJZC8GIp1nejA2oZhuKh7I+F/RQ23TQ0QiwMCZVDunOejeC9HoYg==-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<p>Support the continued development of Awesome Paint</p>
</div>
</div>
</body>
</html>