Beispiel #1
0
  // 그리기
  void Draw(Canvas canvas) {
    Paint pnt = new Paint();
    pnt.setAntiAlias(true);

    int r;
    int alpha;

    for (r = rad, alpha = 1; r > 4; r--, alpha += 5) {
      pnt.setColor(Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)));
      canvas.drawCircle(x, y, r, pnt);
    }
  }
Beispiel #2
0
 // 화면 그리기
 public void onDraw(Canvas canvas) {
   canvas.drawBitmap(mBack, 0, 0, null);
   for (int idx = 0; idx < arBall.size(); idx++) {
     arBall.get(idx).Draw(canvas);
   }
 }