Name
cpattern:GetRGBA -- get RGBA
Synopsis
status, red, green, blue, alpha = cpattern:GetRGBA()
Function
Gets the solid color for a solid color pattern.

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.

Inputs
none

Results
status
#CAIRO_STATUS_SUCCESS or #CAIRO_STATUS_PATTERN_TYPE_MISMATCH
red
red component of color
green
green component of color
blue
blue component of color
alpha
alpha component of color

Show TOC