client/annotviz/app/js/annotsRoll.js
changeset 99 9d968fbcaa2a
parent 89 b4bd49f01837
--- a/client/annotviz/app/js/annotsRoll.js	Mon Jan 19 09:52:52 2015 +0100
+++ b/client/annotviz/app/js/annotsRoll.js	Tue Jan 20 12:00:40 2015 +0100
@@ -24,9 +24,8 @@
     this.pixelsPerSecond = pixelsPerSecond;
     this.lineInterval = lineInterval;
 
-    this.addAnnot = function(category, user, catColor){
+    this.addAnnot = function(category, user, color){
     	var graphics = new PIXI.Graphics();
-    	var color = catColor;
     	var x = 0;
     	var y = -this.container.y;
         graphics.beginFill(color);
@@ -35,7 +34,7 @@
         
         this.container.addChild(graphics);
 
-        var catText = new PIXI.Text(category, { font: '16pt Arial', fill: '#65A954' });
+        var catText = new PIXI.Text(category, { font: '16pt Arial', fill: color.replace("0x", "#") });
         catText.x = x + 20;
         catText.y = y - 23;
         this.container.addChild(catText);
@@ -45,7 +44,7 @@
         userText.y = y + 2;
         this.container.addChild(userText);
         
-        this.addAnnotLine(color)
+        this.addAnnotLine(color);
     };
 
     this.addAnnotLine = function(color){