Api > Color > Operator ( number * Color )
Operator ( number * Color )⚓︎
Multiplies color rhs
by the number lhs
. Each color component is scaled separately.
LHS Type | Symbol | RHS Type | Result Type |
---|---|---|---|
number | * | Color | Color |
Usage⚓︎
---@type number
local lhs;
---@type Color
local rhs;
local result = lhs * rhs; -- result is Color