Scalar multiplication of a Color object by a factor
A new color object thats been scaled by the given factor
const color = new Color(0.2, 0.3, 0.4)colorScalarProduct(color, 2).toArray() // -> [0.4, 0.6, 0.8]
Generated using TypeDoc
Scalar multiplication of a Color object by a factor
Returns
A new color object thats been scaled by the given factor
Example