@@ -164,6 +164,49 @@ def clear_rect(self, x, y, width, height=None):
164164
165165 self ._send_canvas_command ('clearRect' , (x , y , width , height ))
166166
167+ # Arc methods
168+ def fill_arc (self , x , y , radius , start_angle , end_angle , anticlockwise = False ):
169+ """Draw a filled arc centered at ``(x, y)`` with a radius of ``radius``."""
170+ self ._send_canvas_command ('fillArc' , (x , y , radius , start_angle , end_angle , anticlockwise ))
171+
172+ def stroke_arc (self , x , y , radius , start_angle , end_angle , anticlockwise = False ):
173+ """Draw an arc outline centered at ``(x, y)`` with a radius of ``radius``."""
174+ self ._send_canvas_command ('strokeArc' , (x , y , radius , start_angle , end_angle , anticlockwise ))
175+
176+ def fill_arcs (self , x , y , radius , start_angle , end_angle , anticlockwise = False ):
177+ """Draw filled arcs centered at ``(x, y)`` with a radius of ``radius``.
178+
179+ Where ``x``, ``y``, ``radius`` and other arguments are NumPy arrays, lists or scalar values.
180+ """
181+ args = []
182+ buffers = []
183+
184+ populate_args (x , args , buffers )
185+ populate_args (y , args , buffers )
186+ populate_args (radius , args , buffers )
187+ populate_args (start_angle , args , buffers )
188+ populate_args (end_angle , args , buffers )
189+ args .append (anticlockwise )
190+
191+ self ._send_canvas_command ('fillArcs' , args , buffers )
192+
193+ def stroke_arcs (self , x , y , radius , start_angle , end_angle , anticlockwise = False ):
194+ """Draw a rectangular outlines centered at ``(x, y)`` with a radius of ``radius``.
195+
196+ Where ``x``, ``y``, ``radius`` and other arguments are NumPy arrays, lists or scalar values.
197+ """
198+ args = []
199+ buffers = []
200+
201+ populate_args (x , args , buffers )
202+ populate_args (y , args , buffers )
203+ populate_args (radius , args , buffers )
204+ populate_args (start_angle , args , buffers )
205+ populate_args (end_angle , args , buffers )
206+ args .append (anticlockwise )
207+
208+ self ._send_canvas_command ('strokeArcs' , args , buffers )
209+
167210 # Paths methods
168211 def begin_path (self ):
169212 """Call this method when you want to create a new path."""
0 commit comments