
class Color {
  protected int r, g, b;

  public Color( int r, int g, int b ) {
    this.r = normalize( r );
    this.g = normalize( g );
    this.b = normalize( b );
  }

  private int normalize( int v ) {
    if ( v < 0 )
      return -v;
    else
      return v;
  }

  public int getR() {
    return r;
  }

  public int getG() {
    return g;
  }

  public int getB() {
    return b;
  }
}
