Example #1
0
# index of cell horizontal position (origin at left)
d.xi = range(s.ncellswide)
# index of cell vertical position (origin at bottom)
d.yi = range(s.ncellshigh)
# grid orientation relative to orioff (deg)
d.ori = 0
# grid x position relative to origin (deg)
d.xposDeg = 0
# grid y position relative to origin (deg)
d.yposDeg = 0
# bar brightness (0-1)
d.brightness = [0, 1]
# background brightness (0-1)
d.bgbrightness = 0.5
# antialiase the bar?
d.antialiase = True
# sweep duration (sec)
d.sweepSec = 0.25
# post-sweep duration to display blank screen (sec)
d.postsweepSec = 0
# contrast reverse
d.contrastreverse = False
# contrast reverse Frequency
d.cfreqCycSec = 0.5

vs = Variables()
#vs.xposDeg = Variable(vals=d.xposDeg, dim=-1, shuffle=False) # kwargs: vals, dim, shuffle, random
#vs.ori = Variable(vals=d.ori, dim=-1, shuffle=False)
vs.xi = Variable(vals=d.xi, dim=0, shuffle=True) # kwargs: vals, dim, shuffle, random
vs.yi = Variable(vals=d.yi, dim=1, shuffle=True)
vs.brightness = Variable(vals=d.brightness, dim=2, shuffle=True)