diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index 369f0b8..b0787ab 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -405,7 +405,7 @@ var contour = require('./contour'); ctx.globalAlpha = (contourValues[c]/max)*(style["-isoline-line-opacity"] || 0.8); } if(grad){ - ctx.strokeStyle = grad[contourValues[c]]; + ctx.strokeStyle = "rgb("+grad[4*contourValues[c]+1]+","+grad[4*contourValues[c]+2]+","+grad[4*contourValues[c]+3]+")"; } for (var y = 0; y < cellsY; y++) { for (var x = 0; x < this.globalGrid[y].length-1; x++){