setColor4f

fun setColor4f(color: Color4f, colorSpace: ColorSpace?): Paint

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

colorSpace

SkColorSpace describing the encoding of color