/[gzz]/gzz/gfx/libpaper/papermill.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/papermill.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by jvk, Sat Aug 31 06:04:44 2002 UTC revision 1.17 by jvk, Sat Aug 31 07:06:06 2002 UTC
# Line 462  class PaperMill: Line 462  class PaperMill:
462              rgb3DTextures = [              rgb3DTextures = [
463                  ("rgbw", [128, 128, 128, 3,                  ("rgbw", [128, 128, 128, 3,
464                            "RGB", "RGB",                            "RGB", "RGB",
465                            "filereader", ["file", "lava/gfx/data/map3d_F0.01_k0.0325_eps0.015_teps0.5_iter10000.dat",  "scale", "10", "bias", "-1.5" ]]),                            "filereader", ["file", "lava/gfx/data/map3d_F0.01_k0.0325_eps0.015_teps0.5_iter5000.dat",  "scale", "10", "bias", "-1.5" ]]),
466                  ]                  #("rgbw", [64, 64, 64, 3,
467                    #          "RGB", "RGB",
468                    #          "filereader", ["file", "lava/gfx/map3d.dat",  "scale", "10", "bias", "-3" ]]),
469                    
470                   ]
471    
472              dotTextures = [              dotTextures = [
473                  ("dotprodn", [512, 512, 0, 2,                  ("dotprodn", [512, 512, 0, 2,
# Line 481  class PaperMill: Line 485  class PaperMill:
485                  ]                  ]
486                            
487              self.textures = {              self.textures = {
488                  "R2": [ NamedTexture(name, args) for (name, args) in rgbTextures ],                  #"R2": [ NamedTexture(name, args) for (name, args) in rgbTextures ],
489                  "R3": [ NamedTexture(name, args) for (name, args) in rgb3DTextures ],                                  "R3": [ NamedTexture(name, args) for (name, args) in rgb3DTextures ],                
490                  "D2": [ NamedTexture(name, args) for (name, args) in dotTextures ],                  #"D2": [ NamedTexture(name, args) for (name, args) in dotTextures ],
491              }              }
492                            
493      def makePaperPass(self, seed, ppass, trans = 0, type = None, emboss = 0):      def makePaperPass(self, seed, ppass, trans = 0, type = None, emboss = 0):
# Line 502  class PaperMill: Line 506  class PaperMill:
506                      selectRandom(self.textures[types[i]],rnd)                      selectRandom(self.textures[types[i]],rnd)
507                      (t, type) = selectDet(self.textures[types[i]], type)                      (t, type) = selectDet(self.textures[types[i]], type)
508                  else:                  else:
509                        #print types, self.textures
510                      t = selectRandom(self.textures[types[i]],rnd)                      t = selectRandom(self.textures[types[i]],rnd)
511    
512                  if emboss:                  if emboss:

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26