Reference for set_ellipse_mode
Specify how Sketchingpy should interpret the position and size arguments. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
set_ellipse_mode
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Determine how arcs should be placed within the sketch and how they should be sized for ellipses. Available options:
- center: Provide x and y coordinates followed by width and height.
- radius: Provide x and y coordinates followed by half width and half height.
- corner: Left and top coordinates followed by width and height.
- corners: Left and top coordinates followed by right and bottom coordinates.
Snippet
Indiciate that the ellipse parameters will be center X, center Y, width, and height.
sketch.set_ellipse_mode('center')
Parameters
- mode: String describing the mode to use.
Examples
Availability
Available for all platforms.