1. Joseph Walton
  2. confluence-blame

Commits

Joseph Walton  committed cf8a544

Slightly nicer colours?

  • Participants
  • Parent commits e9cb66d
  • Branches master

Comments (0)

Files changed (1)

File src/main/java/ShowBlamed.java

View file
             String randomColour(Revision<SFThing> r)
             {
                 float hue = (float) Math.random();
-                hue = new Random(ch.revDetails.get(r).who.hashCode()).nextFloat();
+                hue = new Random(ch.revDetails.get(r).who.hashCode()).nextFloat() + (float) (Math.random() / 5);
                 float saturation = 0.2f + (float) (Math.random() / 5);
                 float brightness = 0.85f;