/[gzz]/gzz/gfx/util/papersampler.py
ViewVC logotype

Diff of /gzz/gfx/util/papersampler.py

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

revision 1.20 by tjl, Tue Mar 4 15:23:35 2003 UTC revision 1.21 by jvk, Tue Mar 4 15:38:06 2003 UTC
# Line 86  current = scroll.getCurrent() Line 86  current = scroll.getCurrent()
86    
87  pages = [enfMaker.makeEnfilade(current.subSpan(i, i+1)) for i in range(0, current.length())]  pages = [enfMaker.makeEnfilade(current.subSpan(i, i+1)) for i in range(0, current.length())]
88    
89  pages = pages[:16] # XXX:  pages = pages[:18] # XXX:
90    
91  textureSeeds = [i for i in range(523, 523+current.length())]  textureSeeds = [i for i in range(523, 523+current.length())]
92    
# Line 143  def textPaperScene(vs, layout, scale): Line 143  def textPaperScene(vs, layout, scale):
143    
144  def createTextPapers():  def createTextPapers():
145      from gfx.demo import fontfilter2      from gfx.demo import fontfilter2
146      trials = 32      trials = len(pages) * 2
147            
148      for subj in range(0,2):      for subj in range(0,2):
149          global textureSeeds          global textureSeeds
# Line 155  def createTextPapers(): Line 155  def createTextPapers():
155    
156          conditions1 = [ cond for cond in textConds ]          conditions1 = [ cond for cond in textConds ]
157          conditions2 = [ cond for cond in textConds ]          conditions2 = [ cond for cond in textConds ]
158            conditions3 = [ cond for cond in textConds ]
159            conditions4 = [ cond for cond in textConds ]
160          rng.shuffle(conditions1)          rng.shuffle(conditions1)
161          rng.shuffle(conditions2)          rng.shuffle(conditions2)
162          conditions = conditions1 + conditions2          rng.shuffle(conditions3)
163            rng.shuffle(conditions4)
164            conditions = conditions1 + conditions2 + conditions3 + conditions4
165                    
166          pageSpanCellView = gzz.view.PageSpanCellView()          pageSpanCellView = gzz.view.PageSpanCellView()
167          pageSpanCellView.pageSpanPaperMaker = PSPMaker()          pageSpanCellView.pageSpanPaperMaker = PSPMaker()

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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