-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
210 lines (191 loc) · 9.44 KB
/
index.html
File metadata and controls
210 lines (191 loc) · 9.44 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>AnimX</title>
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="apple-touch-icon" href="assets/apple-touch-icon.png">
<link rel="icon" href="assets/apple-touch-icon.png" type="image/png">
<meta name="theme-color" content="#001a33">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="topbar">
<div class="topbar-left">
<a href="https://dim.productions/" target="_blank" style="display:flex; align-items:center;">
<img src="source/dimplogo.svg" alt="DIM Logo" style="height:30px; width:auto;">
</a>
<div class="tabs">
<div class="tab on" data-tab="draw">DRAW</div>
<div class="tab" data-tab="anim">ANIMATION</div>
<div class="tab" data-tab="export">IMPORT/EXPORT</div>
</div>
</div>
<div class="topbar-center">AnimX</div>
<div class="topbar-right">
<div class="tab" id="btnHelp" style="color: var(--accent); border-color: rgba(0,208,255,.3); cursor:pointer;">HELP</div>
<a href="https://ko-fi.com/dimproductions" target="_blank" class="support-link">
<img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi">
<span>Support us</span>
</a>
</div>
</div>
<div id="helpModal" class="modal-overlay">
<div class="modal-content">
<div class="modal-header">
<h2>AnimX Quick Guide</h2>
<span class="close-btn" id="btnCloseHelp">×</span>
</div>
<div class="modal-body">
<h3>1. DRAW (Drawing & Layers)</h3>
<ul>
<li><strong>Tools:</strong> Use the <b>G-Pen</b> for clean, pressure-sensitive lines, or the <b>Shadow</b> tool for watercolor-like blending.</li>
<li><strong>3D Reference:</strong> Toggle the 3D reference and adjust Yaw/Pitch to guide your character's angles.</li>
<li><strong>Layers:</strong> Each layer can act as a single frame for your animation. Add, duplicate, or reorder them in the right panel.</li>
</ul>
<h3>2. ANIMATION (Animation Sequence)</h3>
<ul>
<li>Switch to the <strong>ANIMATION</strong> tab to start building your animation timeline.</li>
<li>Click on a layer thumbnail to append it to your <strong>Sequence</strong>.</li>
<li><strong>Drag & Drop</strong> items in the Sequence list to reorder them, or use the Copy/Del buttons.</li>
<li>Adjust the <strong>FPS</strong> (speed) and hit <strong>Play</strong> to preview your work.</li>
</ul>
<h3>3. EXPORT (Save & Share)</h3>
<ul>
<li>Go to the <strong>IMPORT/EXPORT</strong> tab when you are ready.</li>
<li><strong>Export MP4 (iPad):</strong> The most reliable format for iOS and social media sharing.</li>
<li><strong>Export .animx:</strong> Saves your entire project (layers, sequences, and settings) so you can import and edit it later.</li>
</ul>
</div>
</div>
</div>
<div class="main">
<div class="panel">
<div id="slot-draw" class="tabSlot on show-gpen">
<h3>TOOLS</h3>
<div class="row">
<div class="btn active" id="toolPen">G-Pen</div>
<div class="btn" id="toolShadow">Shadow</div>
<div class="btn" id="toolEraser">Eraser</div>
</div>
<div class="row" style="margin-top:8px;">
<div class="btn" id="toolSelect">Select</div>
</div>
<div class="row" style="margin-top:8px;">
<div class="btn small" id="btnUndo">↶ Undo</div>
<div class="btn small" id="btnRedo">↷ Redo</div>
</div>
<div class="row" style="margin-top:8px;">
<div class="btn small" id="btnCopy">⎘ Copy</div>
<div class="btn small" id="btnCut">✂ Cut</div>
<div class="btn small danger" id="btnDelete">⌫ Delete</div>
<div class="btn small" id="btnPaste">⎘ Paste</div>
</div>
<div class="row" style="margin-top:8px;">
<div class="btn small active" id="dragModeMove">Drag: Move</div>
<div class="btn small" id="dragModeCopy">Drag: Copy</div>
</div>
<div id="grp-resize" style="display:none;">
<div class="sep"></div>
<h3>TRANSFORM SELECTION</h3>
<label>Scale <span id="vSelScale">100</span>%</label>
<input id="selScale" type="range" min="10" max="400" value="100" step="1">
<label>Rotation <span id="vSelAngle">0</span>°</label>
<input id="selAngle" type="range" min="-180" max="180" value="0" step="1">
<div class="row" style="margin-top:6px;">
<div class="btn small accent" id="btnApplyResize">Apply</div>
<div class="btn small" id="btnResetResize">Reset</div>
</div>
</div>
<div class="sep"></div>
<h3>CANVAS ZOOM</h3>
<label>Zoom <span id="vCanvasZoom">100%</span></label>
<input id="canvasZoom" type="range" min="10" max="400" value="100" step="10">
<div class="sep"></div>
<h3>PEN SETTINGS</h3>
<label>Size <span id="vSize">4.0</span></label>
<input id="penSize" type="range" min="1" max="100" value="4">
<div class="grp-gpen">
<label>Taper <span id="vTaper">0.5</span></label>
<input id="penTaper" type="range" min="0" max="1" value="0.5" step="0.05">
<label>Pressure <span id="vPress">0.8</span></label>
<input id="penPress" type="range" min="0" max="1" value="0.8" step="0.05">
<label>Smooth <span id="vSmooth">0.4</span></label>
<input id="penSmooth" type="range" min="0" max="0.95" value="0.4" step="0.05">
</div>
<div class="grp-shadow">
<label title="Lower = more layers needed to darken">Flow (Opacity) <span id="vFlow">0.08</span></label>
<input id="shadowFlow" type="range" min="0.01" max="0.5" value="0.08" step="0.01">
<label title="Edge softness and spread">Wet (Bleed) <span id="vWet">0.75</span></label>
<input id="shadowWet" type="range" min="0.1" max="1.0" value="0.75" step="0.05">
</div>
<div class="sep"></div>
<h3>Face Guide (3D) <input type="checkbox" id="refToggle" class="toggle" checked title="Toggle Reference ON/OFF"></h3>
<label>Yaw (Rotate) <span id="vYaw">0°</span></label>
<input id="traceYaw" type="range" min="-2" max="2" step="1" value="0">
<label>Pitch (Tilt) <span id="vPitch">0°</span></label>
<input id="tracePitch" type="range" min="-2" max="2" step="1" value="0">
<label>Opacity <span id="vRefOp">0.5</span></label>
<input id="refOp" type="range" min="0" max="1" step="0.05" value="0.5">
<div class="sep"></div>
<div class="btn danger" id="btnClearActive">Clear Layer</div>
</div>
<div id="slot-export" class="tabSlot">
<h3>EXPORT</h3>
<div class="btn accent" id="btnImportANIMX">Import .animx</div>
<div class="btn accent" id="btnExportANIMX">Export .animx</div>
<div class="btn accent" id="btnExportPNG">Export PNG</div>
<input id="fileImportAnimx" type="file" accept="*" style="display:none" />
<div class="btn accent" id="btnExportAnimWebP">Export Animated WebP</div>
<div class="btn accent" id="btnExportAnimMP4">Export MP4(iPad)</div>
<div class="hint" style="margin-top:8px; font-size:10px;">Saves canvas + reference.</div>
</div>
<div id="slot-anim" class="tabSlot">
<h3>ANIMATION</h3>
<div class="row" style="margin-top:8px;">
<div class="btn small" id="btnAnimPlay">Play</div>
<div class="btn small" id="btnAnimStop">Stop</div>
</div>
<label style="margin-top:8px;">FPS <span id="vAnimFps">12</span></label>
<input id="animFps" type="range" min="1" max="30" value="12" step="1">
<label style="margin-top:8px;">Loop (0=∞) <span id="vAnimLoop">0</span></label>
<input id="animLoop" type="range" min="0" max="30" value="0" step="1">
<div class="sep"></div>
<div class="hint" style="font-size:10px; margin-bottom:6px;">Thumbnails = LAYERS. Click to append. Drag in Sequence to reorder.</div>
<div class="animThumbs" id="animThumbs"></div>
<div class="sep"></div>
<h3 style="margin-top:0;">SEQUENCE</h3>
<div class="animSeq" id="animSeq"></div>
</div>
</div>
<div class="stageWrap">
<div class="stageHeader"><div class="mini">Canvas: Auto-Fit</div></div>
<div class="stageContainer">
<div id="canvasScaleTarget">
<div class="stage" id="stage">
<div id="refContainer">
<img id="refImage" src="source/loomis_source.svg" alt="Loomis Grid">
</div>
<canvas id="composite"></canvas>
<canvas id="input"></canvas>
</div>
</div>
</div>
</div>
<div class="panel">
<h3>LAYERS</h3>
<div class="row">
<div class="btn accent small" id="btnAddLayer">+ New</div>
<div class="btn small" id="btnDupLayer">Copy</div>
<div class="btn small" id="btnMergeLayer">Merge</div>
<div class="btn danger small" id="btnDelLayer">Del</div>
</div>
<label>Onion Skin <span id="vLayerOp">1.0</span></label>
<input id="layerOpacity" type="range" min="0" max="1" value="1" step="0.01">
<div class="sep"></div>
<div class="layersList" id="layersList"></div>
</div>
<script src="app.js"></script>
</body>
</html>