status, red, green, blue, alpha = cpattern:GetRGBA()
Note that the color and alpha values are not premultiplied.
This function also returns #CAIRO_STATUS_SUCCESS, or
#CAIRO_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a solid
color pattern.
#CAIRO_STATUS_SUCCESS or #CAIRO_STATUS_PATTERN_TYPE_MISMATCH