Check out example codes for "awt draw circle". It will help you in understanding the concepts better.

Code Example 1

public void drawCenteredCircle(Graphics2D g, int x, int y, int r) {
  x = x-(r/2);
  y = y-(r/2);
  g.fillOval(x,y,r,r);
}

Learn ReactJs, React Native from akashmittal.com