@requires_application()
def test_arc_draw1():
 with TestingCanvas() as c:
  ellipse = visuals.Ellipse(center=(50.0, 50.0), radius=(20, 15), start_angle=150.0, span_angle=120.0, color=(0, 0, 1, 1), parent=c.scene)
  assert_image_approved(c.render(), 'visuals/arc1.png')
  ellipse.parent = None
  ellipse = visuals.Ellipse(center=(50.0, 50.0), radius=(20, 15), start_angle=150.0, span_angle=120.0, border_color=(1, 0, 0, 1), parent=c.scene)
  assert_image_approved(c.render(), 'visuals/arc2.png', min_corr=0.6)

@ requires_application ( ) def test_arc_draw1 ( ) : with TestingCanvas ( ) as c : ellipse = visuals . Ellipse ( center = ( 50.0 , 50.0 ) , radius = ( 20 , 15 ) , start_angle = 150.0 , span_angle = 120.0 , color = ( 0 , 0 , 1 , 1 ) , parent = c . scene ) assert_image_approved ( c . render ( ) , 'visuals/arc1.png' ) ellipse . parent = None ellipse = visuals . Ellipse ( center = ( 50.0 , 50.0 ) , radius = ( 20 , 15 ) , start_angle = 150.0 , span_angle = 120.0 , border_color = ( 1 , 0 , 0 , 1 ) , parent = c . scene ) assert_image_approved ( c . render ( ) , 'visuals/arc2.png' , min_corr = 0.6 )
test drawing arcs using ellipsevisual .