colors.combine
From ComputerCraft Wiki
Revision as of 14:23, 22 April 2013 by Hawk777 (Talk | contribs) (Make description match API table, use type template)
Function colors.combine | |
Combines a set of colors (or sets of colors) into a larger set. | |
Syntax | colors.combine(int color1, int color2, …) |
Returns | int the union of sets color1, color2, … |
Part of | ComputerCraft |
API | colors |
Examples
Example | |
Combine white, magenta, and light blue to yield 13 (the bitwise combination of the colors) | |
Code |
print(colors.combine(colors.white, colors.magenta, colours.lightBlue)) |
Output | 13 |