parameters: (self)
docstring: Helps in extracting all the colors present in the gradient
docstring_summary: Helps in extracting all the colors present in the gradient
docstring_tokens: Helps in extracting all the colors present in the gradient
function: def extract_colors(self):
          """
          Helps in extracting all the colors present in the gradient
          """
          initial_list = []
          for col in self.synfig_gradient:
              red = float(col[0].text) ** (1/settings.GAMMA[0])
              green = float(col[1].text) ** (1/settings.GAMMA[1])
              blue = float(col[2].text) ** (1/settings.GAMMA[2])
              alpha = float(col[3].text)
              initial_list.append([float(col.attrib["pos"]), Color(red, green, blue, alpha)]) 
          self.colors = initial_list
function_tokens: def extract_colors ( self ) : initial_list = [ ] for col in self . synfig_gradient : red = float ( col [ 0 ] . text ) ** ( 1 / settings . GAMMA [ 0 ] ) green = float ( col [ 1 ] . text ) ** ( 1 / settings . GAMMA [ 1 ] ) blue = float ( col [ 2 ] . text ) ** ( 1 / settings . GAMMA [ 2 ] ) alpha = float ( col [ 3 ] . text ) initial_list . append ( [ float ( col . attrib [ "pos" ] ) , Color ( red , green , blue , alpha ) ] ) self . colors = initial_list