Skip to content

Commit

Permalink
make pic with frame numbers based
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofuyesnew committed Dec 4, 2018
1 parent 1fc67c6 commit 42bd0ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ const app = new Vue({
ctx.drawImage(
img,
(myTmp % col) * +self.frameData.prewidth,
Math.floor(myTmp / col) * +self.frameData.preheight
Math.floor(myTmp / col) * +self.frameData.preheight,
+self.frameData.prewidth,
+self.frameData.preheight
)
myTmp++
if (self.fileList.length > myTmp) {
Expand Down

0 comments on commit 42bd0ce

Please sign in to comment.