File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 27
27
</ head >
28
28
< body >
29
29
< canvas id ="canvas " class ="block "> </ canvas >
30
+ < div class ="block ">
31
+ < input type ="text " id ="frameInput " title ="Current frame string ">
32
+ </ div >
30
33
< div class ="block ">
31
34
< button title ="Play animation " onclick ="playing = true; "> ▸</ button >
32
35
< button title ="Pause animation " onclick ="playing = false; "> ◼</ button >
33
36
< button title ="Previous frame " onclick ="playing = false; data.currentFrame = (data.currentFrame - 1 + data.frames.split('|').length) % data.frames.split('|').length; "> «</ button >
34
37
< button title ="Next frame " onclick ="playing = false; data.currentFrame = (data.currentFrame + 1) % data.frames.split('|').length; "> »</ button >
35
38
</ div >
36
39
< div class ="block ">
37
- < input type ="text " id ="frameInput " title ="Current frame string ">
40
+ < button onclick ="flipHorizontal() " title ="Flip horizontal "> ↔</ button >
41
+ < button onclick ="flipVertical() " title ="Flip vertical "> ↕</ button >
42
+ < button onclick ="rotateCW() " title ="Rotate 90° CW "> ↻</ button >
43
+ < button onclick ="rotateCCW() " title ="Rotate 90° CCW "> ↺</ button >
38
44
</ div >
39
45
< div class ="block ">
40
46
< button onclick ="removeFrame() " title ="Delete frame "> ⨂</ button >
41
47
< button onclick ="addFrame() " title ="Duplicate frame "> ⨁</ button >
42
48
< button onclick ="moveFrameUp() " title ="Move frame up "> ↑</ button >
43
49
< button onclick ="moveFrameDown() " title ="Move frame down "> ↓</ button >
44
50
</ div >
45
- < div class ="block ">
46
- < button onclick ="flipHorizontal() " title ="Flip horizontal "> ↔</ button >
47
- < button onclick ="flipVertical() " title ="Flip vertical "> ↕</ button >
48
- < button onclick ="rotateCW() " title ="Rotate 90° CW "> ↻</ button >
49
- < button onclick ="rotateCCW() " title ="Rotate 90° CCW "> ↺</ button >
50
- </ div >
51
51
< canvas id ="spritesheet " class ="block "> </ canvas >
52
52
< div class ="block ">
53
53
< input type ="number " class ="small " inputmode ="numeric " pattern ="[0-9]* " name ="frameWidth " title ="Frame width ">
You can’t perform that action at this time.
0 commit comments