aboutsummaryrefslogtreecommitdiffstats
path: root/data/color.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/color.js')
-rw-r--r--data/color.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/color.js b/data/color.js
index 574ad19..c6cdc71 100644
--- a/data/color.js
+++ b/data/color.js
@@ -6,7 +6,7 @@
// originally from
// http://www.mjijackson.com/2008/02\
// /rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
-var Color = exports.Color = function Color(r, g, b) {
+function Color(r, g, b) {
this.Luminosity = 0.85;
this.Desaturated = 0.4;
@@ -19,7 +19,7 @@ var Color = exports.Color = function Color(r, g, b) {
this.g = g;
this.b = b;
}
-};
+}
Color.prototype.update = function(r, g, b) {
this.r = r;