Table of Contents

Class: Texturer Texturer/__init__.py

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"

Table of Contents

This document was automatically generated on Tue Nov 5 16:56:40 2002 by HappyDoc version 2.0.1