summaryrefslogtreecommitdiff
path: root/public/js/color.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/color.js')
-rw-r--r--public/js/color.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/public/js/color.js b/public/js/color.js
index dff865c..5063423 100644
--- a/public/js/color.js
+++ b/public/js/color.js
@@ -31,19 +31,6 @@ Color.prototype.alpha = function(a){
c.a = a;
return c;
}
-Color.prototype.swatch = function(){
- var that = this;
- var el = document.createElement("div");
- el.className = "swatch";
- el.style.backgroundColor = this.toString();
- document.getElementById("palette").appendChild(el);
- el.onclick = function(){
- color = that;
- makeBrushes();
- brush = brush.copy({ color: color });
- }
-}
-
var colors = {
red: new Color([ 255,0,0,0.1 ]),
@@ -54,12 +41,3 @@ var colors = {
yellow: new Color([ 255,255,0 ]),
peru: new Color([ 205,133,63 ]),
}
-
-for (var c in colors) {
- if (colors.hasOwnProperty(c)) {
- colors[c].swatch();
- }
-}
-
-var color = colors.black;
-