From: Robert Konigsberg Date: Sat, 2 Feb 2013 21:55:02 +0000 (-0800) Subject: s/RGBColor/RGBColorParser in the tests directory. X-Git-Tag: v1.0.0~103^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=421427956b54e7c1bea26f6865eaf007d406a2d2;p=dygraphs.git s/RGBColor/RGBColorParser in the tests directory. --- 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);