title: How to darken a given color (int)
body: <p>I have a function that takes a given color and I would like it to darken the color (reduce its brightness by 20% or so). I can't figure out how to do this given just a color (int). What is the proper approach?</p>
  
  <pre><code>public static int returnDarkerColor(int color){
      int darkerColor = .... 
      return darkerColor;
  }
  </code></pre>