colors.combine
From ComputerCraft Wiki
| Computes the union of sets of colors; each parameter may be a single color or may be a set of colors | |
| Syntax | colors.combine(int color1, int color2, …) |
| Returns | int the union of sets color1, color2, … |
| Part of | ComputerCraft |
| API | color |
Examples
| 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 |