Difference between revisions of "Color (API)"

From ComputerCraft Wiki
Jump to: navigation, search
m
(Redirected page to Colors (API))
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
The Colors API allows you to mess with colors. For the British just replace 'color' with 'colour' and it will use the other API, colours, which is just a British version.
+
#REDIRECT [[Colors_(API)]]
 
+
Its functions are:
+
{| border="1" cellpadding="2" cellspacing="0"
+
!style="background:#EEE" width="200px"|Method name
+
!style="background:#EEE" width="*"|Description
+
|-
+
|colors.combine( color1, color2, color3, so on)
+
|combines the colors
+
|-
+
|colors.subtract( colors, color1, color2, so on)
+
|subtracts the given colors
+
|-
+
|colors.test( colors, color )
+
|<no description given>
+
|}
+
 
+
Color constants include, in ascending bit order:
+
 
+
* colors.white
+
* colors.orange
+
* colors.magenta
+
* colors.lightBlue
+
* colors.yellow
+
* colors.lime
+
* colors.pink
+
* colors.gray
+
* colors.lightGray
+
* colors.cyan
+
* colors.purple
+
* colors.blue
+
* colors.brown
+
* colors.green
+
* colors.red
+
* colors.black
+
[[Category:APIs]]
+

Latest revision as of 13:15, 5 July 2012

Redirect to: