Reference for draw_arc
Draw a partial ellipse using starting and ending angles. This is part of the reference section.
Arc
draw_arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Using starting and ending angles, draw a partial ellipse which is either drawn outside line only (stroke) and / or filled from the center of that ellipse.
Snippet
Draw an arc from 90 to 360 degrees centered at x coordinate 100 and y coordinate 200 with width of 50 pixels and height of 60 pixels.
sketch.set_angle_mode('degrees') sketch.set_arc_mode('center') sketch.draw_arc(100, 200, 50, 60, 90, 360)
Parameters
- x1: The x location at which to draw the arc.
- y1: The y location at which to draw the arc.
- x2: Horizontal size.
- y2: Vertical size.
- a1: Starting angle.
- a2: Ending angle.
Examples
Availability
Available for all platforms.