Reference for draw_ellipse
Draw a circle or ellipse. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
draw_ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Draw an ellipse or, in the case of equal width and height, a circle.
Snippet
Draw an ellipse centered at x coordinate 100 and y coordinate 200 with width of 50 pixels and height of 60 pixels.
sketch.set_ellipse_mode('center') sketch.draw_ellipse(100, 200, 50, 60)
Parameters
- x1: The x location at which to draw the ellipse.
- y1: The y location at which to draw the ellipse.
- x2: Horizontal size.
- y2: Vertical size.
Examples
Availability
Available for all platforms.