Difference between revisions of "Colors.subtract"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
m (Int linking fix.) |
||
Line 4: | Line 4: | ||
|args=[[int (type)|int]] colors, [[int (type)|int]] color1, [[int (type)|int]] color2, … | |args=[[int (type)|int]] colors, [[int (type)|int]] color1, [[int (type)|int]] color2, … | ||
|api=color | |api=color | ||
− | |returns=[[int]] the set <var>colors</var> after removing sets <var>color1</var>, <var>color2</var>, … | + | |returns=[[int (type)|int]] the set <var>colors</var> after removing sets <var>color1</var>, <var>color2</var>, … |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Computes the difference of a set by removing colors from it; 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) | |desc=Computes the difference of a set by removing colors from it; 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) |
Revision as of 18:36, 30 November 2012
Function colors.subtract | |
Computes the difference of a set by removing colors from it; 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(int colors, int color1, int color2, …) |
Returns | int the set colors after removing sets color1, color2, … |
Part of | ComputerCraft |
API | color |