Bläddra i källkod

make colors less knallig

Eren Yilmaz 6 år sedan
förälder
incheckning
203617b4f8
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/graph/InitializeNodePositions.java

+ 2 - 2
src/graph/InitializeNodePositions.java

@@ -19,8 +19,8 @@ public class InitializeNodePositions {
      */
     public static void placeNodes( LayeredGraphNode graph ) {
         float hue = 0; // color hue
-        float saturation = 1; // color saturation
-        float brightness = 1; // color brightness
+        float saturation = 1f; // color saturation
+        float brightness = 0.75f; // color brightness
         for( LayeredGraphNode n : graph.getContainedNodes() )
         {
             n.setColor( Color.getHSBColor( hue, saturation, brightness ), null );