Wand ellipse() function in Python
elippse() function is used to draw an ellipse on the image. Just similar to drawing circle the ellipse() function requires two pairs of point that is, origin and a pair of (x, y) radius of the ellipse. To draw a partial ellipse, provide a pair of starting & ending degrees as the third parameter.
Syntax :wand.drawing.ellipse(origin, radius, rotation)
Parameter Input Type Description origin (collections.abc.Sequence) – (numbers.Real, numbers.Real) pair which represents origin x and y of ellipse. radius (collections.abc.Sequence) – (numbers.Real, numbers.Real) pair which represents radius x and radius y of ellipse rotation (collections.abc.Sequence) – (numbers.Real, numbers.Real) pair which represents start and end of ellipse. Default (0, 360)
Example #2: Drawing partial ellipse using rotation argument
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course