diff options
| author | timb <opuscule@gmail.com> | 2015-06-10 17:49:41 -0400 |
|---|---|---|
| committer | timb <opuscule@gmail.com> | 2015-06-10 17:49:41 -0400 |
| commit | 3f1b27a8e876f3e3c21f3449f6fc571d5381faa6 (patch) | |
| tree | 1620e5b57089c2f00e7d6454be50b3b0205fa32a /js/ui/controls.js | |
| parent | 1b1109b59a8e4d64aab2f8494e9df051a2028044 (diff) | |
formatting (rm tabs)
Diffstat (limited to 'js/ui/controls.js')
| -rw-r--r-- | js/ui/controls.js | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/js/ui/controls.js b/js/ui/controls.js index 0665747..6b34ff7 100644 --- a/js/ui/controls.js +++ b/js/ui/controls.js @@ -10,7 +10,7 @@ var controls = (function(){ brush.modified = false } controls.cross.generate = function(){ - brush.fill(brush) + brush.fill(brush) blit.cross(brush) } controls.cross.done = function(){ @@ -25,7 +25,7 @@ var controls = (function(){ brush.modified = false } controls.circle.generate = function(){ - brush.fill(brush) + brush.fill(brush) blit.circle(brush) } controls.circle.done = function(){ @@ -40,7 +40,7 @@ var controls = (function(){ drawing = true } controls.square.generate = function(){ - brush.fill(brush) + brush.fill(brush) } controls.square.done = function(){ drawing = false @@ -74,9 +74,9 @@ var controls = (function(){ controls.clear = new BlurredTool (clear_el) controls.clear.use = function(){ - if (confirm("really delete this colorcode?")) { - canvas.erase() - } + if (confirm("really delete this colorcode?")) { + canvas.erase() + } } controls.webcam = new BlurredTool (webcam_el) @@ -140,16 +140,15 @@ var controls = (function(){ // var ShaderTool = Tool.extend({ - active: false, + active: false, use: function(state){ - this.active = typeof state == "boolean" ? state : ! this.active - if (this.active) { - shader_rapper.style.display = "block" - shader_textarea.focus() - } - else { - shader_rapper.style.display = "none" - } + this.active = typeof state == "boolean" ? state : ! this.active + if (this.active) { + shader_rapper.style.display = "block" + shader_textarea.focus() + } else { + shader_rapper.style.display = "none" + } }, done: function(){ this.use(false) |
