Next / Previous / Contents / Shipman's homepage

9.3. RGBModel.colorToParams()

This method takes a Color instance and returns the three parameters of that color in the RGB model. No conversion is necessary, since the Color instance uses the RGB model internally.

# - - -   R G B M o d e l . c o l o r T o P a r a m s

    def colorToParams ( self, color ):
        """Convert a Color to the three RGB parameters.
        return ( ( color.r, color.g, color.b ) )