Slide 90
Slide 90 text
int centerX = width / 2 + x;
int centerY = height / 2 + y;
// ਅΜதͷখؙ͍͞
canvas.drawCircle(centerX, centerY, width / 16, paint);
if (rpm != 0.0f) {
// 1पΛ8ஈ֊ʹؙΊΔ
int step = (int) ((Float) animator.getAnimatedValue() * 8);
float degree = step / (float) split;
// ͦͷҐஔʹؙΛඳ͘
canvas.drawCircle(
centerX - (float) Math.cos(2 * Math.PI * degree) * (width / 2) * 0.75f,
centerY - (float) Math.sin(2 * Math.PI * degree) * (height / 2) * 0.75f,
width / 8,
paint);
}