@staticmethod<EOL><INDENT>def get_hex_color_range(start_color, end_color, quantity):<DEDENT>
raw_colors = [c.hex for c in list(Color(start_color).range_to(Color(end_color), quantity))]<EOL>colors = []<EOL>for color in raw_colors:<EOL><INDENT>if len(color) == <NUM_LIT:4>:<EOL><INDENT>fixed_color = "<STR_LIT:#>"<EOL>for c in color[<NUM_LIT:1>:]:<EOL><INDENT>fixed_color += c * <NUM_LIT:2><EOL><DEDENT>colors.append(fixed_color)<EOL><DEDENT>else:<EOL><INDENT>colors.append(color)<EOL><DEDENT><DEDENT>return colors<EOL>
Generates a list of quantity Hex colors from start_color to end_color.

:param start_color: Hex or plain English color for start of range
:param end_color: Hex or plain English color for end of range
:param quantity: Number of colours to return
:return: A list of Hex color values