private void initPaint() {
        mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
        res = getResources();
        source = BitmapFactory.decodeResource(res, R.drawable.cat);
        cover = BitmapFactory.decodeResource(res, R.drawable.circle);
        mStartColor = res.getColor(R.color.cpb_red);
        mEndColor = res.getColor(R.color.cpb_green);

        mPaint.setColor(Color.parseColor("#536DFE"));

        mbackPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
        mbackPaint.setStyle(Paint.Style.STROKE);
        mbackPaint.setStrokeWidth(3);
        mbackPaint.setColor(Color.WHITE);

    }
author : engineer
e-mail : yingkongshi11@gmail.com
time   : 2017/12/10
desc   :
version: 1.0
app/src/main/java/home/smart/fly/animations/master/widget/MasterPaintView.java