在画布上显示星星效果

时间:2018-07-26 11:31:25

标签: android animation canvas

enter image description here

在画布上添加神奇效果就像这张图片一样,几秒钟后在触摸周围显示一些点,这些点将消失。现在我正在使用简单的Paint在画布上绘制线条。预先谢谢你

        mPaint = new Paint();
        mPaint.setAntiAlias(true);
        mPaint.setDither(true);
        mPaint.setStyle(Paint.Style.STROKE);
        mPaint.setStrokeJoin(Paint.Join.ROUND);
        mPaint.setStrokeCap(Paint.Cap.ROUND);
        mPaint.setStrokeWidth(mThickness);
        mPaint.setARGB(255, 51, 153, 255);
        mPaint.setShadowLayer(50, 10, 10, Color.BLUE);

0 个答案:

没有答案