Difference between revisions of "Colors.subtract"
From ComputerCraft Wiki
m (Fix wrong API name) |
m (Int -> {{type|number}} (Boo! I missed one!)) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=colors.subtract | |name=colors.subtract | ||
− | |args= | + | |args={{Type|number}} colors, {{Type|number}} color1, {{Type|number}} color2, … |
|api=colors | |api=colors | ||
− | |returns= | + | |returns={{Type|number}} the set <var>colors</var> after removing sets <var>color1</var>, <var>color2</var>, … |
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc= | + | |desc=Removes one or more colors (or sets of colors) from an initial set; each parameter beyond the first may be a single color or may be a set of colors (in the latter case, all colors in the set are removed from the original set). |
|examples= | |examples= | ||
{{Example | {{Example |
Latest revision as of 00:44, 12 July 2013
Function colors.subtract | |
Removes one or more colors (or sets of colors) from an initial set; each parameter beyond the first may be a single color or may be a set of colors (in the latter case, all colors in the set are removed from the original set). | |
Syntax | colors.subtract(number colors, number color1, number color2, …) |
Returns | number the set colors after removing sets color1, color2, … |
Part of | ComputerCraft |
API | colors |