X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FColorUtils.java;fp=src%2Fjalview%2Futil%2FColorUtils.java;h=b728c9de4031d06760b970bdd764f6cad062a103;hb=fa48c836ad6e85a9e8146177cc865f4a061dc1a4;hp=6734735f3fcd7af0654ef443b97b9319452b7599;hpb=133c24e81c5edd0134239e1cf291b05a7389afb1;p=jalview.git diff --git a/src/jalview/util/ColorUtils.java b/src/jalview/util/ColorUtils.java index 6734735..b728c9d 100644 --- a/src/jalview/util/ColorUtils.java +++ b/src/jalview/util/ColorUtils.java @@ -68,7 +68,18 @@ public class ColorUtils return color; } + + /** + * + * @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 *