def colormode(self, mode=None, crange=None):
if mode is not None:<EOL><INDENT>if mode == "<STR_LIT>":<EOL><INDENT>self.color_mode = Bot.RGB<EOL><DEDENT>elif mode == "<STR_LIT>":<EOL><INDENT>self.color_mode = Bot.HSB<EOL><DEDENT>else:<EOL><INDENT>raise NameError(_("<STR_LIT>"))<EOL><DEDENT><DEDENT>if crange is not None:<EOL><INDENT>self.color_range = crange<EOL><DEDENT>return self.color_mode<EOL>
Sets the current colormode (can be RGB or HSB) and eventually
        the color range.

        If called without arguments, it returns the current colormode.