title: How do I use the darker() method?
body: <p>I can't find out how to make a color darker with the darker() method. Every time I run this method, the output is the same for both print lines.</p>
  <pre><code>public void makeDarker() {
      
      System.out.println(getColor());
      
      getColor().darker();
      
      System.out.println(getColor());
  }
  </code></pre>
  <p>Output:</p>
  <p>java.awt.Color[r=200,g=200,b=200]</p>
  <p>java.awt.Color[r=200,g=200,b=200]</p>