package ඓ.ᕣ.K.K.㳳;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.view.animation.DecelerateInterpolator;
import ඓ.ᕣ.K.K.AbstractC0747;

/* renamed from: ඓ.ᕣ.K.K.㳳.K  reason: contains not printable characters */
/* compiled from: LeafBuilder */
public class C0750 extends AbstractC0747 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public int f3819;

    /* renamed from: ؿ  reason: contains not printable characters */
    public Path f3820;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public float f3821;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public float f3822;

    /* renamed from: 㑃  reason: contains not printable characters */
    public float f3823;

    /* renamed from: 㗗  reason: contains not printable characters */
    public int f3824 = 0;

    /* renamed from: 㳳  reason: contains not printable characters */
    public float f3825;

    /* renamed from: 㿎  reason: contains not printable characters */
    public Paint f3826;

    /* renamed from: 䁗  reason: contains not printable characters */
    public float f3827;

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    public void onAnimationRepeat(Animator animator) {
        int i = this.f3824 + 1;
        this.f3824 = i;
        if (i > 2) {
            this.f3824 = 0;
        }
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public final float m2220(int i) {
        return (float) Math.sin((((double) i) * 3.141592653589793d) / 180.0d);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m2222(Context context) {
        this.f3826 = new Paint(1);
        this.f3826.setStyle(Paint.Style.FILL);
        this.f3826.setStrokeWidth(2.0f);
        this.f3826.setColor(-1);
        this.f3826.setDither(true);
        this.f3826.setFilterBitmap(true);
        this.f3822 = this.f3803;
        float f = this.f3822;
        this.f3821 = 0.9f * f;
        this.f3825 = 0.7f * f;
        this.f3823 = f * 0.3f;
        this.f3827 = 3.0f * context.getResources().getDisplayMetrics().density;
        this.f3819 = 0;
        this.f3820 = new Path();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2226(Canvas canvas) {
        canvas.save();
        canvas.rotate((float) this.f3819, m2199(), m2198());
        Path path = this.f3820;
        path.reset();
        path.moveTo((m2221(-23) * this.f3821) + m2199(), (m2220(-23) * this.f3821) + m2198());
        for (int i = 0; i < 5; i++) {
            int i2 = (72 * i) - 18;
            int i3 = i2 - 5;
            path.lineTo((m2221(i3) * this.f3821) + m2199(), (m2220(i3) * this.f3821) + m2198());
            int i4 = i2 + 5;
            path.quadTo((m2221(i2) * this.f3822) + m2199(), (m2220(i2) * this.f3822) + m2198(), (m2221(i4) * this.f3821) + m2199(), (m2220(i4) * this.f3821) + m2198());
            int i5 = i2 + 36;
            int i6 = i5 - 5;
            path.lineTo((m2221(i6) * this.f3825) + m2199(), (m2220(i6) * this.f3825) + m2198());
            float r7 = (m2221(i5) * this.f3823) + m2199();
            float r8 = (m2220(i5) * this.f3823) + m2198();
            int i7 = i5 + 5;
            path.quadTo(r7, r8, (m2221(i7) * this.f3825) + m2199(), (m2220(i7) * this.f3825) + m2198());
        }
        path.close();
        this.f3820.addCircle(m2199(), m2198(), this.f3827, Path.Direction.CW);
        this.f3820.setFillType(Path.FillType.EVEN_ODD);
        canvas.drawPath(this.f3820, this.f3826);
        canvas.restore();
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m2228() {
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2223(int i) {
        this.f3826.setAlpha(i);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final float m2221(int i) {
        return (float) Math.cos((((double) i) * 3.141592653589793d) / 180.0d);
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2224(ValueAnimator valueAnimator) {
        valueAnimator.setInterpolator(new DecelerateInterpolator());
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2225(ValueAnimator valueAnimator, float f) {
        int i = this.f3824;
        if (i == 0) {
            this.f3821 = this.f3803 * f;
            this.f3819 = (int) (f * 360.0f);
        } else if (i == 1) {
            this.f3819 = (int) ((1.0f - f) * 360.0f);
        } else if (i == 2) {
            this.f3821 = (1.0f - f) * this.f3803;
        }
    }

    @Override // ඓ.ᕣ.K.K.AbstractC0747
    /* renamed from: K  reason: contains not printable characters */
    public void m2227(ColorFilter colorFilter) {
        this.f3826.setColorFilter(colorFilter);
    }
}
