class RGBColor(object):
    @classmethod
    def White(cls):
        return cls(1.0, 1.0, 1.0)

    @classmethod
    def Red(cls):
        return cls(1.0, 0.0, 0.0)

    @classmethod
    def Green(cls):
        return cls(0.0, 1.0, 0.0)

    @classmethod
    def Blue(cls):
        return cls(0.0, 0.0, 1.0)

    @classmethod
    def Black(cls):
        return cls(0.0, 0.0, 0.0)

    def __init__(self, r, g, b):
        self.r = r
        self.g = g
        self.b = b

    def mult(self, scalar):
        return RGBColor(self.r * scalar, self.g * scalar, self.b * scalar)

    def __add__(self, other):
        return RGBColor(self.r + other.r, self.g + other.g, self.b + other.b)

    def __div__(self, n):
        return RGBColor(self.r / n, self.g / n, self.b / n)

    def __mul__(self, other):
        return RGBColor(self.r * other.r, self.g * other.g, self.b * other.b)

    def to_list(self):
        return [min(c, 255.0) for c in [self.r * 255.0, self.g * 255.0, self.b * 255.0]]
