@requires_application()
def test_circle_draw():
 with TestingCanvas() as c:
  ellipse = visuals.Ellipse(center=(75, 35, 0), radius=20, color=(1, 0, 0, 1), parent=c.scene)
  assert_image_approved(c.render(), 'visuals/circle1.png')
  ellipse.parent = None
  ellipse = visuals.Ellipse(center=(75, 35, 0), radius=20, color=(1, 0, 0, 1), border_color=(0, 1, 1, 1), parent=c.scene)
  assert_image_approved(c.render(), 'visuals/circle2.png')
  ellipse.parent = None
  ellipse = visuals.Ellipse(center=(75, 35, 0), radius=20, border_color=(0, 1, 1, 1), parent=c.scene)
  assert_image_approved(c.render(), 'visuals/circle3.png', min_corr=0.7)

@ requires_application ( ) def test_circle_draw ( ) : with TestingCanvas ( ) as c : ellipse = visuals . Ellipse ( center = ( 75 , 35 , 0 ) , radius = 20 , color = ( 1 , 0 , 0 , 1 ) , parent = c . scene ) assert_image_approved ( c . render ( ) , 'visuals/circle1.png' ) ellipse . parent = None ellipse = visuals . Ellipse ( center = ( 75 , 35 , 0 ) , radius = 20 , color = ( 1 , 0 , 0 , 1 ) , border_color = ( 0 , 1 , 1 , 1 ) , parent = c . scene ) assert_image_approved ( c . render ( ) , 'visuals/circle2.png' ) ellipse . parent = None ellipse = visuals . Ellipse ( center = ( 75 , 35 , 0 ) , radius = 20 , border_color = ( 0 , 1 , 1 , 1 ) , parent = c . scene ) assert_image_approved ( c . render ( ) , 'visuals/circle3.png' , min_corr = 0.7 )
test drawing circles without transform using ellipsevisual .