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