color

var color: Int

Sets alpha and RGB used when stroking and filling. The color is a 32-bit value, unpremultiplied, packing 8-bit components for alpha, red, blue, and green.

Return

unpremultiplied ARGB

See also

https://fiddle.skia.org/c/@Paint_setColor

Retrieves alpha and RGB, unpremultiplied, packed into 32 bits. Use helpers Color.getA, Color.getR, Color.getG, and Color.getB to extract a color component.