changeSourceRgba

common
fun changeSourceRgba(red: Double, green: Double, blue: Double, alpha: Double)

Sets the source pattern to a translucent color. This color will then be used for any subsequent drawing operation until a new source pattern is set. The color, and alpha components are floating point numbers in the range 0 to 1. If the values passed in are outside that range then they will be clamped. The default source pattern is opaque black, which is equivalent to the following:

changeSourceRgba(red = 0.0, green = 0.0, blue = 0.0, alpha = 1.0)

Parameters

red

The red colour to use.

green

The green colour to use.

blue

The blue colour to use.

linuxArm32
fun changeSourceRgba(red: Double, green: Double, blue: Double, alpha: Double)

Parameters

red

The red colour to use.

green

The green colour to use.

blue

The blue colour to use.

linuxX64
fun changeSourceRgba(red: Double, green: Double, blue: Double, alpha: Double)

Parameters

red

The red colour to use.

green

The green colour to use.

blue

The blue colour to use.