I have below function for drawing an ellipse. I would like to return the center of the circle because I would draw circle in Ellipse. I don’t know how to get center of the circle.
Please your help is appreciated

You can offset the position (by either issuing the translate call as BionicBytes suggested or you may center the ellipse to the given position by adding the center of ellipse to the x and y value like this,