Color (API)

From ComputerCraft Wiki
Revision as of 05:32, 31 January 2012 by Kaleb702 (Talk | contribs)

Jump to: navigation, search

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.

Its functions are:

Method name 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