Colors
SourcecolorA COLOR_BLACK
Source
string COLOR_BLACK_STR
Source
colorA COLOR_GOLD
Source
string COLOR_GOLD_STR
Source
colorA COLOR_WHITE
Source
string COLOR_WHITE_STR
Source
string DEFAULT_COLOR_NAME
Source
int MAX_PLAYER_COLORS
Source
color array(dimensions = 1) PLAYER_COLORS
Source
 Player color array. Access through playercolor.toColor() 
string array(dimensions = 1) PLAYER_COLOR_NAMES
Source
 Player color names array. Access through playercolor.getName() 
string array(dimensions = 1) hexs
Source
 Hexadecimal numbers 
 function color(int red, int green, int blue) returns color
Source
 Tuple for your RGB color needs. 0 = black, 255 = full color 
 function string.color(string which) returns string
Source
 function string.color(color which) returns string
Source
 function string.color(colorA which) returns string
Source
 function colorA(int red, int green, int blue, int alpha) returns colorA
Source
 Tuple for your RGBA color needs. 0 = black/transparent, 255 = full color/opaque 
 function colorHSV(real h, real s, real v) returns colorHSV
Source
 Tuple for your HSV(Hue Saturation Value) color needs. All values 0-1 
 function fromHexString(string number) returns colorA
Source
 Get a colorA tuple from a hexstring 
 function static playercolor.getName() returns string
Source
 Returns the name of the player color 
 function color.getName() returns string
Source
 Gets the name of the color. Only works on player colors. See PLAYER_COLORS. 
 function static player.getNameColored(boolean removeHash) returns string
Source
 function static player.getNameColored() returns string
Source
 function color.lerp(color target, real smoothness) returns color
Source
 function makeColor(int colo) returns colorA
Source
 function colorA.mix(colorA c2, real s) returns colorA
Source
	Mixes two colors, s would be a number 0<=s<=1 that determines
	the weight given to color c2.
	c1.mix(c2,0)   = c1
	c1.mix(c2,1)   = c2
	c1.mix(c2,0.5) = Mixing the colors c1 and c2 in equal proportions.
 function color.normalize() returns color
Source
 function static unit.setVertexColor(colorA col)
Source
 Set a units color to the tuplevalues with alpha 
 function static unit.setVertexColor(color col)
Source
 Set a units color to the tuplevalues without alpha 
 function testColorNames()
Source
 function testColors()
Source
 function testHSV()
Source
 function testPlayerColorConversion()
Source
 function testPlayerFromColorName()
Source
 function static playercolor.toColor() returns color
Source
 Returns the color associated with the playercolor 
 function string.toColor() returns color
Source
 Returns the color that the string describes. Only works on player colors. 
 function colorA.toColorString() returns string
Source
 Returns a string that is in the wc3 hexcolor format (|caarrggbb) 
 function color.toColorString() returns string
Source
 Returns a string that is in the wc3 hexcolor format (|crrggbb) 
 function toDec(string twochar) returns int
Source
 Converts a twochar string to an int 
 function color.toHSV() returns colorHSV
Source
 Returns the HSV equivalent 
 function toHex(int number) returns string
Source
 Converts and int to a hexnumber 
 function string.toPlayerColor() returns playercolor
Source
 Returns the player color that the string describes. Only works on player colors. 
 function toPlayerFromColorName(string colorName) returns player
Source
 Returns the player that corresponds to described color. Returns null if a
bad string is provided. See PLAYER_COLOR_NAMES for options. Returns players
based on starting color, not current color (does not respect SetPlayerColor)
 function colorHSV.toRGB() returns color
Source
 Returns the RGB equivalent 
 function color.toString() returns string
Source
 Returns the tuple in string format color(r,g,b) 
 function colorA.toString() returns string
Source
 Returns the tuple in string format colorA(r,g,b,a) 
 function colorHSV.toString() returns string
Source
 Returns the tuple in string format colorHSV(h,s,v) 
 function color.withAlpha(int a) returns colorA
Source
 Add an alpha value to a simple color tuple 
 function colorA.withoutAlpha() returns color
Source