ColorVisual

fun ColorVisual(    r: Int,     g: Int,     b: Int,     a: Int = 255)

Creates a solid ColorVisual filled with given RGBA values.

The alpha channel gets multiplied with the transparencyProperty i.e. alpha = 128 (50%) and transparency = 0.5 (50%) leads to 25% visibility / 75% transparency. All values must be in range 0 until 255 which corresponds to 00..FF in hexadecimal.

Parameters

r

Red channel.

g

Green channel.

b

Blue channel.

a

Alpha channel. Default: 255.


fun ColorVisual(color: Color)

Creates a solid ColorVisual filled with given Color.

Parameters

color

Color to use as filling.