Merge branch 'releases/Release_2_11_3_Branch'
[jalview.git] / src / jalview / util / ColorUtils.java
index 6734735..9ed98bd 100644 (file)
@@ -70,6 +70,18 @@ public class ColorUtils
   }
 
   /**
+   * 
+   * @return random color
+   */
+  public static final Color getARandomColor()
+  {
+
+    Color col = new Color((int) (Math.random() * 255),
+            (int) (Math.random() * 255), (int) (Math.random() * 255));
+    return col;
+  }
+
+  /**
    * Convert to Tk colour code format
    * 
    * @param colour