comma separated rgb values
authoramwaterhouse <Andrew Waterhouse>
Fri, 7 Oct 2005 10:24:56 +0000 (10:24 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 7 Oct 2005 10:24:56 +0000 (10:24 +0000)
src/jalview/schemes/UserColourScheme.java

index 660441e..4b963fe 100755 (executable)
@@ -38,6 +38,16 @@ public class UserColourScheme
       col = ColourSchemeProperty.getAWTColorFromName(colour);\r
 \r
     if(col==null)\r
+    {try{\r
+      java.util.StringTokenizer st = new java.util.StringTokenizer(colour, ",");\r
+      int r = Integer.parseInt( st.nextToken() );\r
+      int g = Integer.parseInt( st.nextToken() );\r
+      int b = Integer.parseInt( st.nextToken() );\r
+      col = new Color(r,g,b);\r
+    }catch(Exception ex){}\r
+    }\r
+\r
+    if(col==null)\r
     {\r
       System.out.println("Unknown colour!! "+colour);\r
     }\r