|
|
@ -1269,11 +1269,13 @@ HuesEditor.prototype.drawWave = function() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
HuesEditor.prototype.drawOneWave = function(wave, center, width) { |
|
|
|
HuesEditor.prototype.drawOneWave = function(wave, center, width) { |
|
|
|
this.waveContext.drawImage(wave, |
|
|
|
try { |
|
|
|
center - width/2, 0, // source x/y
|
|
|
|
this.waveContext.drawImage(wave, |
|
|
|
width, WAVE_HEIGHT_PIXELS, // source width/height
|
|
|
|
center - width/2, 0, // source x/y
|
|
|
|
0, 0, // dest x/y
|
|
|
|
width, WAVE_HEIGHT_PIXELS, // source width/height
|
|
|
|
width, WAVE_HEIGHT_PIXELS); // dest width/height
|
|
|
|
0, 0, // dest x/y
|
|
|
|
|
|
|
|
width, WAVE_HEIGHT_PIXELS); // dest width/height
|
|
|
|
|
|
|
|
} catch(e) {} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
HuesEditor.prototype.alert = function(msg) { |
|
|
|
HuesEditor.prototype.alert = function(msg) { |
|
|
|