def _average(self):
r, g, b, a = <NUM_LIT:0>, <NUM_LIT:0>, <NUM_LIT:0>, <NUM_LIT:0><EOL>for clr in self:<EOL><INDENT>r += clr.r<EOL>g += clr.g<EOL>b += clr.b<EOL>a += clr.alpha<EOL><DEDENT>r /= len(self)<EOL>g /= len(self)<EOL>b /= len(self)<EOL>a /= len(self)<EOL>return color(r, g, b, a, mode="<STR_LIT>")<EOL>
Returns one average color for the colors in the list.