\r
if(color.getRGB()<-1)\r
{\r
- r = Integer.toHexString(color.getRed());\r
- if(r.length()<2)\r
- r = "0"+r;\r
- g = Integer.toHexString(color.getGreen());\r
- if(g.length()<2)\r
- g = "0"+g;\r
- b = Integer.toHexString(color.getBlue());\r
- if(b.length()<2)\r
- b = "0"+b;\r
- out.println("<td bgcolor=\"#"+ r + g + b + "\">"+seq.getCharAt(res)+"</td>");\r
+ out.println("<td bgcolor=\"#"\r
+ + jalview.util.Format.getHexString(color)\r
+ + "\">"+seq.getCharAt(res)+"</td>");\r
}\r
else\r
out.println("<td>"+seq.getCharAt(res)+"</td>");\r