colours.combine

From ComputerCraft
(Redirected from Colors.combine)
Jump to: navigation, search

colours.combine
Function
Syntax
colours.combine()
Returns number
API colours
Source CC:Tweaked (source)

Combines given colours into the union of all input colours.

ExampleExampleCombining 3 colours
Combine white, light blue and magenta to yield 13 (the bitwise combination of the colors)
Code
colours.combine(colours.white, colours.lightBlue, colours.magenta)
Output 13