an implementation of how to draw an accurate arc with 360 degree.