setColor

actual fun setColor(instance: EntityInstance, r: Float, g: Float, b: Float)

Dynamically update the light's color in linear sRGB.

Parameters

instance

Light instance

r

Linear red channel

g

Linear green channel

b

Linear blue channel

expect fun setColor(instance: EntityInstance, r: Float, g: Float, b: Float)

Dynamically update the light's color in linear sRGB.

Parameters

instance

Light instance

r

Linear red channel

g

Linear green channel

b

Linear blue channel

actual fun setColor(instance: EntityInstance, r: Float, g: Float, b: Float)

Dynamically update the light's color in linear sRGB.

Parameters

instance

Light instance

r

Linear red channel

g

Linear green channel

b

Linear blue channel

actual fun setColor(instance: EntityInstance, r: Float, g: Float, b: Float)

Dynamically update the light's color in linear sRGB.

Parameters

instance

Light instance

r

Linear red channel

g

Linear green channel

b

Linear blue channel

actual fun setColor(instance: EntityInstance, r: Float, g: Float, b: Float)

Dynamically update the light's color in linear sRGB.

Parameters

instance

Light instance

r

Linear red channel

g

Linear green channel

b

Linear blue channel