summaryrefslogtreecommitdiff
path: root/js/ui/brush.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ui/brush.js')
-rw-r--r--js/ui/brush.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/ui/brush.js b/js/ui/brush.js
index f05d6cc..730cfc0 100644
--- a/js/ui/brush.js
+++ b/js/ui/brush.js
@@ -68,6 +68,13 @@ var brush = (function(){
brush.contract = function(i){
this.expand(-i)
}
+
+ brush.assign = function(lex){
+ brush.char = lex.char
+ brush.fg = lex.fg
+ brush.bg = lex.bg
+ brush.opacity = 1
+ }
brush.char = " "
brush.fg = 0