git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc53e8
)
JAL-4353 re-used random color code
author
Ben Soares
<b.soares@dundee.ac.uk>
Wed, 6 Dec 2023 22:00:06 +0000
(22:00 +0000)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Wed, 6 Dec 2023 22:00:06 +0000
(22:00 +0000)
src/jalview/util/ColorUtils.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/ColorUtils.java
b/src/jalview/util/ColorUtils.java
index
0e44f34
..
24128ea
100644
(file)
--- a/
src/jalview/util/ColorUtils.java
+++ b/
src/jalview/util/ColorUtils.java
@@
-236,10
+236,7
@@
public class ColorUtils
if ("random".equals(colour))
{
- Random rand = new Random();
- col = new Color(rand.nextInt(256), rand.nextInt(256),
- rand.nextInt(256));
- return col;
+ return generateRandomColor(null);
}
try