def baseColorAt(self, p):
     v = Vector(p)
     v.scale(1.0 / self.checkSize)
     
     if (int(abs(v.x) + 0.5) + int(abs(v.y) + 0.5) + int(abs(v.z) + 0.5)) % 2:
         return self.otherColor
     
     return self.baseColor
Ejemplo n.º 2
0
 def __init__(self, colorVector):
     self.__colorVector = Vector.__init__(self, colorVector)