package l0;

import android.graphics.Color;
import android.graphics.Paint;

/* JADX INFO: renamed from: l0.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1119a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final float f14252a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final float f14253b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Paint f14254c;

    public C1119a(float f3, float f7, int i) {
        f3 = f3 > 1.0f ? 1.0f : f3;
        f3 = f3 < 0.0f ? 0.0f : f3;
        f7 = f7 > 1.0f ? 1.0f : f7;
        float f8 = f7 >= 0.0f ? f7 : 0.0f;
        Paint paint = new Paint();
        this.f14254c = paint;
        paint.setColor(Color.rgb(Color.red(i), Color.green(i), Color.blue(i)));
        this.f14252a = f3;
        this.f14253b = f8;
        a(1.0f);
    }

    public final void a(float f3) {
        float f7 = this.f14252a;
        float f8 = this.f14253b;
        this.f14254c.setAlpha((int) ((((f7 - f8) * f3) + f8) * 255.0f));
    }
}
