colours.subtract

Subtracts given colours from the first given colour.

ExampleSubtracting 2 colours from one initial colour
Subtracting orange and white from lime.
Code
<nowiki>
colours.subtract(colours.lime, colours.orange, colours.white)
    </nowiki>
Output 32

colours.subtract
Function
Syntax
colours.subtract(
  • 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.