Skip to content

Commit

Permalink
Invert spectrogram, missing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
mon committed Mar 21, 2016
1 parent 5d98335 commit e109eaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/js/HuesCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/js/SoundManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e109eaa

Please sign in to comment.