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

Code Example 1

circle(x, y, diameter)

Learn ReactJs, React Native from akashmittal.com