package ඓ.ᕣ.K.K.㸾;

import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import java.util.LinkedList;
import ඓ.ᕣ.K.K.AbstractC0747;

/* renamed from: ඓ.ᕣ.K.K.㸾.K  reason: contains not printable characters */
/* compiled from: BaseBallBuilder */
public abstract class AbstractC0758 extends AbstractC0747 {

    /* renamed from: ᨨ  reason: contains not printable characters */
    public Paint f3880;

    /* renamed from: 㿎  reason: contains not printable characters */
    public final LinkedList<C0759> f3881 = new LinkedList<>();

    /* renamed from: ඓ.ᕣ.K.K.㸾.K$K  reason: contains not printable characters */
    /* compiled from: BaseBallBuilder */
    public static class C0759 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public float f3882 = 0.0f;

        /* renamed from: ඓ  reason: contains not printable characters */
        public boolean f3883 = true;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final float f3884;

        /* renamed from: K  reason: contains not printable characters */
        public final float f3885;

        /* renamed from: 㸾  reason: contains not printable characters */
        public float f3886 = 0.0f;

        public C0759(float f, float f2) {
            this.f3885 = f;
            this.f3884 = f2;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public float m2279() {
            return this.f3884 + this.f3886;
        }

        /* renamed from: K  reason: contains not printable characters */
        public float m2280() {
            return this.f3885 + this.f3882;
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final void m2274(float f) {
        float r0 = m2199();
        float r1 = m2198();
        float f2 = r0 - f;
        this.f3881.add(new C0759(f2, r1));
        float f3 = 0.55191505f * f;
        float f4 = r1 + f3;
        this.f3881.add(new C0759(f2, f4));
        float f5 = r0 - f3;
        float f6 = r1 + f;
        this.f3881.add(new C0759(f5, f6));
        this.f3881.add(new C0759(r0, f6));
        float f7 = r0 + f3;
        this.f3881.add(new C0759(f7, f6));
        float f8 = r0 + f;
        this.f3881.add(new C0759(f8, f4));
        this.f3881.add(new C0759(f8, r1));
        float f9 = r1 - f3;
        this.f3881.add(new C0759(f8, f9));
        float f10 = r1 - f;
        this.f3881.add(new C0759(f7, f10));
        this.f3881.add(new C0759(r0, f10));
        this.f3881.add(new C0759(f5, f10));
        this.f3881.add(new C0759(f2, f9));
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2275(float f) {
        this.f3880 = new Paint(1);
        this.f3880.setStyle(Paint.Style.FILL_AND_STROKE);
        this.f3880.setStrokeWidth(f);
        this.f3880.setColor(-16777216);
        this.f3880.setDither(true);
        this.f3880.setFilterBitmap(true);
        this.f3880.setStrokeCap(Paint.Cap.ROUND);
        this.f3880.setStrokeJoin(Paint.Join.ROUND);
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m2277(Canvas canvas, Path path, Paint paint) {
        path.reset();
        path.moveTo(this.f3881.get(0).m2280(), this.f3881.get(0).m2279());
        path.cubicTo(this.f3881.get(1).m2280(), this.f3881.get(1).m2279(), this.f3881.get(2).m2280(), this.f3881.get(2).m2279(), this.f3881.get(3).m2280(), this.f3881.get(3).m2279());
        path.cubicTo(this.f3881.get(4).m2280(), this.f3881.get(4).m2279(), this.f3881.get(5).m2280(), this.f3881.get(5).m2279(), this.f3881.get(6).m2280(), this.f3881.get(6).m2279());
        path.cubicTo(this.f3881.get(7).m2280(), this.f3881.get(7).m2279(), this.f3881.get(8).m2280(), this.f3881.get(8).m2279(), this.f3881.get(9).m2280(), this.f3881.get(9).m2279());
        path.cubicTo(this.f3881.get(10).m2280(), this.f3881.get(10).m2279(), this.f3881.get(11).m2280(), this.f3881.get(11).m2279(), this.f3881.get(0).m2280(), this.f3881.get(0).m2279());
        canvas.drawPath(path, paint);
    }

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

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