|
|
@ -273,6 +273,9 @@ HuesCanvas.prototype.syncAnim = function() { |
|
|
|
|
|
|
|
|
|
|
|
var aLen = this.image.bitmaps.length; |
|
|
|
var aLen = this.image.bitmaps.length; |
|
|
|
this.animFrame = Math.floor(aLen * (beatLoc / this.image.beatsPerAnim)); |
|
|
|
this.animFrame = Math.floor(aLen * (beatLoc / this.image.beatsPerAnim)); |
|
|
|
|
|
|
|
if(this.image.syncOffset) { |
|
|
|
|
|
|
|
this.animFrame += this.image.syncOffset; |
|
|
|
|
|
|
|
} |
|
|
|
// Because negative mods are different in JS
|
|
|
|
// Because negative mods are different in JS
|
|
|
|
this.animFrame = ((this.animFrame % aLen) + aLen) % aLen; |
|
|
|
this.animFrame = ((this.animFrame % aLen) + aLen) % aLen; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -368,7 +371,7 @@ HuesCanvas.prototype.setBlurDecay = function(decay) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
HuesCanvas.prototype.setBlurQuality = function(quality) { |
|
|
|
HuesCanvas.prototype.setBlurQuality = function(quality) { |
|
|
|
this.blurIterations = {"low" : 3, "medium" : 11, "high" : 19, "extreme" : 35}[quality]; |
|
|
|
this.blurIterations = {"low" : -1, "medium" : 11, "high" : 19, "extreme" : 35}[quality]; |
|
|
|
this.blurDelta = 1 / (this.blurIterations/2); |
|
|
|
this.blurDelta = 1 / (this.blurIterations/2); |
|
|
|
this.blurAlpha = 1 / (this.blurIterations/2); |
|
|
|
this.blurAlpha = 1 / (this.blurIterations/2); |
|
|
|
}; |
|
|
|
}; |
|
|
|