From 421427956b54e7c1bea26f6865eaf007d406a2d2 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sat, 2 Feb 2013 13:55:02 -0800 Subject: [PATCH] s/RGBColor/RGBColorParser in the tests directory. --- tests/linear-regression-addseries.html | 2 +- tests/linear-regression-fractions.html | 2 +- tests/linear-regression.html | 2 +- tests/plotters.html | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html index 7c7646d..5e79860 100644 --- a/tests/linear-regression-addseries.html +++ b/tests/linear-regression-addseries.html @@ -100,7 +100,7 @@ // Darken the series by 50% to generate its regression. var label = labels[i] + " Regression"; new_labels.push(label); - var c = new RGBColor(orig_colors[i - 1]); + var c = new RGBColorParser(orig_colors[i - 1]); c.r = Math.floor(255 - 0.5 * (255 - c.r)); c.g = Math.floor(255 - 0.5 * (255 - c.g)); c.b = Math.floor(255 - 0.5 * (255 - c.b)); diff --git a/tests/linear-regression-fractions.html b/tests/linear-regression-fractions.html index 6f8071b..253fa60 100644 --- a/tests/linear-regression-fractions.html +++ b/tests/linear-regression-fractions.html @@ -110,7 +110,7 @@ var p1 = g.toDomCoords(x1, y1); var p2 = g.toDomCoords(x2, y2); - var c = new RGBColor(g.getColors()[i - 1]); + var c = new RGBColorParser(g.getColors()[i - 1]); c.r = Math.floor(255 - 0.5 * (255 - c.r)); c.g = Math.floor(255 - 0.5 * (255 - c.g)); c.b = Math.floor(255 - 0.5 * (255 - c.b)); diff --git a/tests/linear-regression.html b/tests/linear-regression.html index 8f971f4..d7c3700 100644 --- a/tests/linear-regression.html +++ b/tests/linear-regression.html @@ -104,7 +104,7 @@ var p1 = g.toDomCoords(x1, y1); var p2 = g.toDomCoords(x2, y2); - var c = new RGBColor(g.getColors()[i - 1]); + var c = new RGBColorParser(g.getColors()[i - 1]); c.r = Math.floor(255 - 0.5 * (255 - c.r)); c.g = Math.floor(255 - 0.5 * (255 - c.g)); c.b = Math.floor(255 - 0.5 * (255 - c.b)); diff --git a/tests/plotters.html b/tests/plotters.html index 91c3a7c..9b800ec 100644 --- a/tests/plotters.html +++ b/tests/plotters.html @@ -61,9 +61,9 @@ var points = e.points; var y_bottom = e.dygraph.toDomYCoord(0); - // The RGBColor class is provided by rgbcolor.js, which is + // The RGBColorParser class is provided by rgbcolor.js, which is // packed in with dygraphs. - var color = new RGBColor(e.color); + var color = new RGBColorParser(e.color); color.r = Math.floor((255 + color.r) / 2); color.g = Math.floor((255 + color.g) / 2); color.b = Math.floor((255 + color.b) / 2); @@ -274,7 +274,7 @@ var candleData = "Date,Open,Close,High,Low\n" + var fillColors = []; var strokeColors = g.getColors(); for (var i = 0; i < strokeColors.length; i++) { - var color = new RGBColor(strokeColors[i]); + var color = new RGBColorParser(strokeColors[i]); color.r = Math.floor((255 + color.r) / 2); color.g = Math.floor((255 + color.g) / 2); color.b = Math.floor((255 + color.b) / 2); -- 2.7.4