colours.combine

Combines given colours into the union of all input colours.

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

colours.combine
Function
Syntax
colours.combine(
  • colour... : number
)

Returns number
API colours
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.