package ῲ.ᨨ.ʬ;

import android.graphics.Color;
import com.google.android.material.progressindicator.BaseProgressIndicator;

/* renamed from: ῲ.ᨨ.ʬ.K  reason: contains not printable characters */
/* compiled from: ColorUtils */
public final class C1718 {

    /* renamed from: K  reason: contains not printable characters */
    public static final ThreadLocal<double[]> f6030 = new ThreadLocal<>();

    /* renamed from: ῲ  reason: contains not printable characters */
    public static int m4410(int i, int i2) {
        if (i2 >= 0 && i2 <= 255) {
            return (i & 16777215) | (i2 << 24);
        }
        throw new IllegalArgumentException("alpha must be between 0 and 255.");
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m4411(int i, int i2) {
        int alpha = Color.alpha(i2);
        int alpha2 = Color.alpha(i);
        int i3 = 255 - (((255 - alpha2) * (255 - alpha)) / BaseProgressIndicator.MAX_ALPHA);
        return Color.argb(i3, m4413(Color.red(i), alpha2, Color.red(i2), alpha, i3), m4413(Color.green(i), alpha2, Color.green(i2), alpha, i3), m4413(Color.blue(i), alpha2, Color.blue(i2), alpha, i3));
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m4413(int i, int i2, int i3, int i4, int i5) {
        if (i5 == 0) {
            return 0;
        }
        return (((255 - i2) * (i3 * i4)) + ((i * BaseProgressIndicator.MAX_ALPHA) * i2)) / (i5 * BaseProgressIndicator.MAX_ALPHA);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m4412(int i, int i2, float f) {
        float f2 = 1.0f - f;
        return Color.argb((int) ((((float) Color.alpha(i2)) * f) + (((float) Color.alpha(i)) * f2)), (int) ((((float) Color.red(i2)) * f) + (((float) Color.red(i)) * f2)), (int) ((((float) Color.green(i2)) * f) + (((float) Color.green(i)) * f2)), (int) ((((float) Color.blue(i2)) * f) + (((float) Color.blue(i)) * f2)));
    }
}
