#NEWLINE# def test_circles_3( ) : #NEWLINE# #INDENT# ' Circles with horizontal grid ' #NEWLINE# coordinate_system = cartesius . CoordinateSystem ( ) #NEWLINE# coordinate_system . add ( elements . Grid ( 1 , None , transparency_mask = 200 ) ) #NEWLINE# for i in range ( 1 , 20 ) : #NEWLINE# #INDENT# x = ( i / 2.0 ) #NEWLINE# y = math . sin ( x ) #NEWLINE# center = ( ( i / 1 ) , math . sin ( x ) ) #NEWLINE# coordinate_system . add ( elements . Circle ( x , radius = math . sqrt ( x ) , transparency_mask = 50 , fill_color = ( ( i * 10 ) , ( 2 * 10 ) , ( i * 10 ) ) , color = ( 0 , 0 , 0 ) ) ) #NEWLINE# #UNINDENT# return ( coordinate_system . draw ( 300 , 200 ) , coordinate_system . draw ( 300 , 200 , antialiasing = True ) )