title: Android set Color component (R, G, B)
body: <p>I want to create a Color variable to reference its qualities except I only seem to be able to get the R, G, B int values, I can't figure out how to set each one individually.</p>
  
  <p>I want to be able to do something like this:</p>
  
  <pre><code>private int ReturnColor(int a, int r, int g, int b) {
      return Color.argb(a, r, g, b);
  }
  
  if (ReturnColor(Alpha, Red, Green, Blue) == Dawn) Then...
  </code></pre>
  
  <p>Where Dawn would be a Color, I guess I could make a custom class but I was hoping there was a more straight forward method.</p>
  
  <p>EDIT: I ended up just creating a custom class with a int A, R, G and B variable.</p>
  
  <pre><code>public class CustomColor {
  
  int A;
  int R;
  int G;
  int B;
  
  public CustomColor() {}
  
  public CustomColor(int a, int r, int g, int b) {
      A = a;
      R = r;
      G = g;
      B = b;  
  }
  
  private int ReturnColor(int a, int r, int g, int b) {
      return Color.argb(a, r, g, b);
  }
  
  public boolean EqualTo(CustomColor c) {
  
      if(A == c.A &amp;&amp; R == c.R &amp;&amp; G == c.G &amp;&amp; B == c.B) return true;
      return false;
  }
  
  }//End CustomColor
  </code></pre>