def fromhls(self, h, l, s): """Convert to RGB from HSL.""" r, g, b = hls_to_rgb(h, l, s) self.r = round_int(r * 255.0) & 0xFF self.g = round_int(g * 255.0) & 0xFF self.b = round_int(b * 255.0) & 0xFF