def __init__(self,experimentRuntime, eventTriggers=None, timeout=None): ScreenState.__init__(self,experimentRuntime, eventTriggers, timeout) self.stim['OUTER_POINT']=visual.Circle(self.window(), radius=(self.TARGET_OUTER_RADIUS,self.TARGET_OUTER_RADIUS), lineWidth=0, lineColor=None, lineColorSpace='rgb255', name='FP_OUTER', opacity=1.0, interpolate=False, units='pix',pos=(0,0)) self.stimNames.append('OUTER_POINT') self.stim['OUTER_POINT'].setFillColor(self.TARGET_OUTER_COLOR,'rgb255') self.stim['INNER_POINT']=visual.Circle(self.window(), radius=(self.TARGET_INNER_RADIUS,self.TARGET_INNER_RADIUS), lineWidth=0, lineColor=None, lineColorSpace='rgb255', name='FP_INNER', opacity=1.0, interpolate=False, units='pix', pos=(0,0)) self.stimNames.append('INNER_POINT') self.stim['INNER_POINT'].setFillColor(self.TARGET_INNER_COLOR,'rgb255') self._showDynamicStim=False self.dynamicStimPositionFuncPtr=None ppd=experimentRuntime.devices.display.getPixelsPerDegree() self.stim['DYNAMIC_STIM']=visual.GratingStim(self.window(),tex=None, mask="gauss", pos=[0,0],size=ppd,color='purple',opacity=0.0) self.stimNames.append('DYNAMIC_STIM') self.nextAreaOfInterest=None self.aoiTriggeredTime=None self.aoiTriggeredID=None
def flip(self, text=''): if text is not None: text="TARGET_SCREEN SYNC: [%s] [%s] "%(str(self.stim['OUTER_POINT'].pos),text) return ScreenState.flip(self,text)