JoystickPuck.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:BB8 作者:
@Override
public void draw(Canvas canvas) {

    RadialGradient gradient = new RadialGradient(
            this.position.x,
            this.position.y,
            this.radius,
            this.color_0,
            this.color_1,
            Shader.TileMode.MIRROR
    );

    this.paint.setShader(gradient);

    canvas.drawCircle(this.position.x, this.position.y, this.radius, this.paint);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号