summaryrefslogtreecommitdiff
path: root/js/ui/controls.js
diff options
context:
space:
mode:
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)