#NEWLINE# def _write_a_gs_lst( self , gradient ) : #NEWLINE# #INDENT# positions = gradient [ 'positions' ] #NEWLINE# colors = gradient [ 'colors' ] #NEWLINE# self . _xml_start_tag ( 'a:gsLst' ) #NEWLINE# for i in range ( len ( colors ) ) : #NEWLINE# #INDENT# pos = int ( ( positions [ i ] * 1000 ) ) #NEWLINE# attributes = [ ( 'pos' , pos ) ] #NEWLINE# self . _xml_start_tag ( 'a:gs' , attributes ) #NEWLINE# color = get_rgb_color ( colors [ i ] ) #NEWLINE# self . _write_a_srgb_clr ( color ) #NEWLINE# self . _xml_end_tag ( 'a:gs' ) #NEWLINE# #UNINDENT# self . _xml_end_tag ( 'a:gsLst' )