def METHOD_NAME(self, r, g, b, a):
    self._r = r if type(r) is float else r / 255
    self._g = g if type(g) is float else g / 255
    self._b = b if type(b) is float else b / 255
    self._a = a if type(a) is float else a / 255