def __init__(self, position, size, line_width=2, **kw):
     Stimulus.__init__(self, **kw)
     ul = (position[0] - size[0] / 2., position[1])
     add = lambda a, b: map(operator.add, a, b)
     self._vertices = [[ul[0], ul[1], 0],
                       [ul[0] + size[0], ul[1], 0],
                       [ul[0] + size[0], ul[1] + size[1], 0],
                       [ul[0], ul[1] + size[1], 0]]
     self._color = Color('red')
     self._gl_color = gl.glColor3f if len(self._color) == 3 else gl.glColor4f
     self._line_width = line_width
Beispiel #2
0
 def __init__(self, position, size, line_width=2, **kw):
     Stimulus.__init__(self, **kw)
     ul = (position[0] - size[0] / 2., position[1])
     add = lambda a, b: map(operator.add, a, b)
     self._vertices = [[ul[0], ul[1], 0],
                       [ul[0] + size[0], ul[1], 0],
                       [ul[0] + size[0], ul[1] + size[1], 0],
                       [ul[0], ul[1] + size[1], 0]]
     self._color = Color('red')
     self._gl_color = gl.glColor3f if len(self._color) == 3 else gl.glColor4f
     self._line_width = line_width
 def __init__(self, checksPerCall=25, sleepPerCheck=0.01, **kw):
     Stimulus.__init__(self, **kw)
     self.checksPerCall = checksPerCall
     self.sleepPerCheck = sleepPerCheck
Beispiel #4
0
 def __init__(self, **kw):
     Stimulus.__init__(self, **kw)
     self.parameters.colorindex = np.zeros(self.parameters.grid)
     self.parameters.colorindex.fill(0.5)
Beispiel #5
0
 def __init__(self,**kw):
     Stimulus.__init__(self,**kw)
     self.parameters.colorindex = np.zeros(self.parameters.grid)
     self.parameters.colorindex.fill(0.5)
 def __init__(self, checksPerCall=25, sleepPerCheck=0.01, **kw):
     Stimulus.__init__(self, **kw)
     self.checksPerCall = checksPerCall
     self.sleepPerCheck = sleepPerCheck