Methods
|
|
__init__
color
mapName
setColor
|
|
__init__
|
__init__ (
self,
maxColors,
name=None,
withAlpha=0,
)
also must define self.textureColors as a list of
texture coordinates the user can access
|
|
color
|
color ( self, index )
return texture coordinate associated with index
|
|
mapName
|
mapName (
self,
index,
name,
)
associate a mnemonic name with texture index
index parameter ranges starts at 1, not 0
|
|
setColor
|
setColor (
self,
index,
color,
)
set color of texture region associated with index
Exceptions
|
|
KeyError, "No texture region named " + index
ValueError, "Color tuple wrong size"
|
|
|