package c.a.h; import android.graphics.Color; import c.d.b.a.a; import java.util.Arrays; /* compiled from: Swatch */ public final class d { public final int a; public final int b; /* renamed from: c reason: collision with root package name */ public final int f60c; public final int d; public final int e; public float[] f; public d(int i, int i2) { this.a = Color.red(i); this.b = Color.green(i); this.f60c = Color.blue(i); this.d = i; this.e = i2; } public d(int i, int i2, int i3, int i4) { this.a = i; this.b = i2; this.f60c = i3; this.d = Color.rgb(i, i2, i3); this.e = i4; } public float[] a() { if (this.f == null) { float[] fArr = new float[3]; this.f = fArr; c.a(this.a, this.b, this.f60c, fArr); } return this.f; } public String toString() { StringBuilder sb = new StringBuilder(d.class.getSimpleName()); sb.append(" "); sb.append("["); sb.append(Integer.toHexString(this.d)); sb.append(']'); sb.append("[HSL: "); sb.append(Arrays.toString(a())); sb.append(']'); sb.append("[Population: "); return a.v(sb, this.e, ']'); } }