From: Adil Date: Thu, 13 Dec 2012 22:24:28 +0000 (-0500) Subject: Missed an RGBColor-->RGBColorParser change. X-Git-Tag: v1.0.0~142^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=a0ee95027119b0fb1ccb2eac50bdf9809a54f836;p=dygraphs.git Missed an RGBColor-->RGBColorParser change. --- diff --git a/gallery/linear-regression.js b/gallery/linear-regression.js index 43daecd..11caff2 100644 --- a/gallery/linear-regression.js +++ b/gallery/linear-regression.js @@ -88,7 +88,7 @@ Gallery.register( 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));