/[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.74 by tjl, Fri Feb 21 20:02:33 2003 UTC revision 1.75 by jvk, Sun Mar 2 17:11:14 2003 UTC
# Line 113  class ThePaperMill(PaperMill): Line 113  class ThePaperMill(PaperMill):
113          self.paperopts = PaperOptions.instance()          self.paperopts = PaperOptions.instance()
114          self.newpaperopts = OpenGL11_PaperOptions()          self.newpaperopts = OpenGL11_PaperOptions()
115            
116      def getPaper(self, seed, passmask=[1,1,1,1,1,1,1]):      def getPaper(self, seed, passmask=[1,1,1,1,1,1,1],
117                     numcolors = 8,
118                     minlum = 80):
119          pap = PaperHanger()          pap = PaperHanger()
120          pap.reg = Registry()          pap.reg = Registry()
121    
# Line 130  class ThePaperMill(PaperMill): Line 132  class ThePaperMill(PaperMill):
132    
133          # XXX: TODO: these could be passed inside the paper object          # XXX: TODO: these could be passed inside the paper object
134          # (and then the textures, too, would be protected from gc)          # (and then the textures, too, would be protected from gc)
135          colors = Colors(rng.nextInt())          colors = Colors(rng.nextInt(), colors = numcolors, minlum = minlum)
136          textures = Textures(rng.nextInt())          textures = Textures(rng.nextInt())
137          rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor)          rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor)
138    

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

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