Here you can find the source of circle(Canvas canvas, int color, int stroke, float x, float y, float radius)
public static void circle(Canvas canvas, int color, int stroke, float x, float y, float radius)
//package com.java2s; import android.graphics.Canvas; import android.graphics.Paint; public class Main { public static void circle(Canvas canvas, int color, int stroke, float x, float y, float radius) { Paint paint = new Paint(); paint.setColor(color);/* www .j a v a2s . c o m*/ paint.setStyle(Paint.Style.FILL_AND_STROKE); paint.setStrokeWidth(stroke); canvas.drawCircle(x, y, radius, paint); } }