setARGB

fun setARGB(a: Int, r: Int, g: Int, b: Int): Paint

Sets color used when drawing solid fills. The color components range from 0 to 255. The color is unpremultiplied; alpha sets the transparency independent of RGB.

Parameters

a

amount of alpha, from fully transparent (0) to fully opaque (255)

r

amount of red, from no red (0) to full red (255)

g

amount of green, from no green (0) to full green (255)

b

amount of blue, from no blue (0) to full blue (255)

See also