summaryrefslogtreecommitdiff
path: root/js/ui/controls.js
diff options
context:
space:
mode:
authortimb <opuscule@gmail.com>2015-06-10 17:49:41 -0400
committertimb <opuscule@gmail.com>2015-06-10 17:49:41 -0400
commit3f1b27a8e876f3e3c21f3449f6fc571d5381faa6 (patch)
tree1620e5b57089c2f00e7d6454be50b3b0205fa32a /js/ui/controls.js
parent1b1109b59a8e4d64aab2f8494e9df051a2028044 (diff)
formatting (rm tabs)
Diffstat (limited to 'js/ui/controls.js')
-rw-r--r--js/ui/controls.js29
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)