def insert_colorpoint(self, position=<NUM_LIT:0.5>, color1=[<NUM_LIT:1.0>,<NUM_LIT:1.0>,<NUM_LIT:0.0>], color2=[<NUM_LIT:1.0>,<NUM_LIT:1.0>,<NUM_LIT:0.0>]):
L = self._colorpoint_list<EOL>if   position <= <NUM_LIT:0.0>:<EOL><INDENT>L.insert(<NUM_LIT:0>,[<NUM_LIT:0.0>,color1,color2])<EOL><DEDENT>elif position >= <NUM_LIT:1.0>:<EOL><INDENT>L.append([<NUM_LIT:1.0>,color1,color2])<EOL><DEDENT>else:<EOL><INDENT>for n in range(len(self._colorpoint_list)):<EOL><INDENT>if position <= L[n+<NUM_LIT:1>][<NUM_LIT:0>]:<EOL><INDENT>L.insert(n+<NUM_LIT:1>,[position,color1,color2])<EOL>break<EOL><DEDENT><DEDENT><DEDENT>self.update_image()<EOL>return self<EOL>
Inserts the specified color into the list.