multiplyByScalar

fun multiplyByScalar(color: Color, scalar: Double, result: Color): Color(source)

Multiplies the provided Color componentwise by the provided scalar.

Return

The modified result parameter.

Parameters

color

The Color to be scaled.

scalar

The scalar to multiply with.

result

The object onto which to store the result.

See also