Version 2.2

master
William Toohey 9 years ago
parent efb3192820
commit eec53cf4c9
  1. 4
      src/js/HuesCanvas.js
  2. 2
      src/js/HuesCore.js
  3. 2
      src/js/HuesUI.js

@ -104,7 +104,7 @@ function HuesCanvas(element, audioContext, core) {
HuesCanvas.prototype.setInvert = function(invert) { HuesCanvas.prototype.setInvert = function(invert) {
this.invert = invert; this.invert = invert;
this.needsRedraw = true; this.needsRedraw = true;
} };
HuesCanvas.prototype.settingsUpdated = function() { HuesCanvas.prototype.settingsUpdated = function() {
this.setSmartAlign(localStorage["smartAlign"]); this.setSmartAlign(localStorage["smartAlign"]);
@ -249,7 +249,7 @@ HuesCanvas.prototype.drawInvert = function() {
this.context.fillStyle = "#FFF"; this.context.fillStyle = "#FFF";
this.context.fillRect(0,0,this.canvas.width,720); this.context.fillRect(0,0,this.canvas.width,720);
} }
} };
/* Second fastest method from /* Second fastest method from
http://stackoverflow.com/questions/10073699/pad-a-number-with-leading-zeros-in-javascript http://stackoverflow.com/questions/10073699/pad-a-number-with-leading-zeros-in-javascript

@ -29,7 +29,7 @@ function HuesCore(defaults) {
// Yes, we do indeed have Javascript // Yes, we do indeed have Javascript
this.clearMessage(); this.clearMessage();
// Bunch-o-initialisers // Bunch-o-initialisers
this.version = "0x15"; this.version = "0x16";
this.beatIndex = 0; this.beatIndex = 0;
// How long a beat lasts for in each section // How long a beat lasts for in each section

@ -266,7 +266,7 @@ HuesUI.prototype.invert = function(invert) {
} else { } else {
this.root.classList.remove("inverted"); this.root.classList.remove("inverted");
} }
} };
/* /*
Individual UIs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Individual UIs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Loading…
Cancel
Save