package IMuAHx_6.Mqv2r_3.KQgRr5e_0.KQgRr5e_0.X6FRs_4;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PointF;
import android.view.animation.Animation;
import android.view.animation.Transformation;
import java.util.Random;
/* compiled from: StoreHouseBarItem.java */
/* loaded from: classes.dex */
public class KQgRr5e_0 extends Animation {
    public float KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public PointF f249KQgRr5e_0;

    /* renamed from: PGPF6hQ_2  reason: collision with other field name */
    public PointF f250PGPF6hQ_2;

    /* renamed from: QxJ9d_1  reason: collision with other field name */
    public PointF f251QxJ9d_1;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Paint f248KQgRr5e_0 = new Paint();
    public float QxJ9d_1 = 1.0f;
    public float PGPF6hQ_2 = 0.4f;

    public KQgRr5e_0(int i, PointF pointF, PointF pointF2, int i2, int i3) {
        this.f249KQgRr5e_0 = new PointF((pointF.x + pointF2.x) / 2.0f, (pointF.y + pointF2.y) / 2.0f);
        float f = pointF.x;
        PointF pointF3 = this.f249KQgRr5e_0;
        this.f251QxJ9d_1 = new PointF(f - pointF3.x, pointF.y - pointF3.y);
        float f2 = pointF2.x;
        PointF pointF4 = this.f249KQgRr5e_0;
        this.f250PGPF6hQ_2 = new PointF(f2 - pointF4.x, pointF2.y - pointF4.y);
        QxJ9d_1(i2);
        PGPF6hQ_2(i3);
        this.f248KQgRr5e_0.setAntiAlias(true);
        this.f248KQgRr5e_0.setStyle(Paint.Style.STROKE);
    }

    public void KQgRr5e_0(int i) {
        this.KQgRr5e_0 = (-new Random().nextInt(i)) + i;
    }

    public void PGPF6hQ_2(int i) {
        this.f248KQgRr5e_0.setStrokeWidth(i);
    }

    public void QxJ9d_1(int i) {
        this.f248KQgRr5e_0.setColor(i);
    }

    @Override // android.view.animation.Animation
    public void applyTransformation(float f, Transformation transformation) {
        float f2 = this.QxJ9d_1;
        KQgRr5e_0(f2 + ((this.PGPF6hQ_2 - f2) * f));
    }

    public void KQgRr5e_0(float f, float f2) {
        this.QxJ9d_1 = f;
        this.PGPF6hQ_2 = f2;
        super.start();
    }

    public void KQgRr5e_0(float f) {
        this.f248KQgRr5e_0.setAlpha((int) (f * 255.0f));
    }

    public void KQgRr5e_0(Canvas canvas) {
        PointF pointF = this.f251QxJ9d_1;
        float f = pointF.x;
        float f2 = pointF.y;
        PointF pointF2 = this.f250PGPF6hQ_2;
        canvas.drawLine(f, f2, pointF2.x, pointF2.y, this.f248KQgRr5e_0);
    }
}
