Merge pull request #275 from ckcz123/v2.0

setInterval time & load statusBar
This commit is contained in:
Zhang Chen 2018-12-12 16:35:40 +08:00 committed by GitHub
commit cdf1c10e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1566,7 +1566,7 @@ control.prototype.setFg = function(color, time, callback) {
core.clearMap('curtain');
core.fillRect('curtain', 0, 0, 416, 416, core.arrayToRGBA([nowR,nowG,nowB,nowA]));
if (step>=25) {
if (step>=steps) {
delete core.animateFrame.asyncId[changeAnimate];
clearInterval(changeAnimate);
core.status.curtainColor = color;