/[libvob]/libvob/vob/usertest/color3.py
ViewVC logotype

Diff of /libvob/vob/usertest/color3.py

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

revision 1.3 by jvk, Wed Sep 3 13:09:17 2003 UTC revision 1.4 by jvk, Thu Sep 4 10:03:20 2003 UTC
# Line 59  def run(): Line 59  def run():
59      #vs.put(background((0,0,0)))      #vs.put(background((0,0,0)))
60      vs.put(background((.2,.2,.2)))      vs.put(background((.2,.2,.2)))
61    
62      c1 = (0, 60, 120, 180, 240, 300, )      c1 = (0, 36, 72, 108, 144, 180, 216, 252, 288, 324, )
63    
64      trials = [      trials = [
65          [c, normalize(c + d2), 15]          [c, normalize(c + d2), 15]
66          for c in c1          for c in c1
67          for d2 in [30, 60]          for d2 in [30, 60, 90]
68          ]          ]
69      trials2 = []      trials2 = []
70    
# Line 131  def run(): Line 131  def run():
131          outfile.flush()          outfile.flush()
132    
133          if var == 0:          if var == 0:
134              mul = .9 + .6 * r.nextDouble()              mul = 2**(-.1 + .7 * r.nextDouble())
135          else:          else:
136              mul = 1.1 - .6 * r.nextDouble()              mul = 2**(+.1 - .7 * r.nextDouble())
137                
138          if delta2 == 0:          if delta2 == 0:
139              mul = 1              mul = 1
140    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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