Invert spectrogram, missing semicolon

master v2.2
Will Toohey 9 years ago
parent 5d9833542e
commit e109eaaa3e
  1. 9
      src/js/HuesCore.js
  2. 2
      src/js/SoundManager.js

@ -281,8 +281,13 @@ HuesCore.prototype.updateVisualiser = function() {
this.vCtx.clearRect(0, 0, this.vCtx.canvas.width, this.vCtx.canvas.height);
let gradient=this.vCtx.createLinearGradient(0,64,0,0);
gradient.addColorStop(1,"rgba(255,255,255,0.6)");
gradient.addColorStop(0,"rgba(20,20,20,0.6)");
if(this.invert) {
gradient.addColorStop(1,"rgba(20,20,20,0.6)");
gradient.addColorStop(0,"rgba(255,255,255,0.6)");
} else {
gradient.addColorStop(1,"rgba(255,255,255,0.6)");
gradient.addColorStop(0,"rgba(20,20,20,0.6)");
}
this.vCtx.fillStyle = gradient;
let barWidth = 2;

@ -148,7 +148,7 @@ SoundManager.prototype.unlock = function() {
window.addEventListener('click', unlocker, false);
});
return this.lockedPromise;
}
};
SoundManager.prototype.playSong = function(song, playBuild, forcePlay) {
let p = Promise.resolve();

Loading…
Cancel
Save