colours.combine
Combines given colours into the union of all input 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 | ||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| colours.combine Function | |
|---|---|
|
Syntax colours.combine(
| |
| 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.