set Color4f
Sets alpha and RGB used when stroking and filling. The color is four floating point values, unpremultiplied. The color values are interpreted as being in the colorSpace. If colorSpace is nullptr, then color is assumed to be in the sRGB color space.
Return
this
Parameters
color
unpremultiplied RGBA
color Space
SkColorSpace describing the encoding of color