def _get_rgb(color: Color) -> Tuple[float, float, float]: """ returns the r, g, and b values of a Color, given the Color object. :param color: The Color object. """ return color.R(), color.G(), color.B()
def _get_color(constructor) -> Tuple[float, float, float]: """ Returns the r, g, and b values of a Color, given a constructor. :param constructor: A constructor that accepts 1 parameter of type Color. """ return OutputData._get_rgb(constructor(Color.Color()))