visigoth.stimuli.GazeStim¶
- class visigoth.stimuli.GazeStim(win, tracker)[source]¶
Stimulus linked to eyetracker that shows gaze location.
Methods
__init__(win, tracker)clearTextures()Clear all textures associated with the stimulus.
contains(x[, y, units])Returns True if a point x,y is inside the stimulus’ border.
draw()Draw the stimulus in its relevant window.
overlaps(polygon)Returns True if this stimulus intersects another one.
setAutoDraw(value[, log])Sets autoDraw.
setAutoLog([value, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message.
setBackColor(color[, colorSpace, operation, log])setBlendmode(value[, log])DEPRECATED.
setBorderColor(color[, colorSpace, …])Hard setter for fillColor, allows suppression of the log message, simultaneous colorSpace setting and calls update methods.
setColor(color[, colorSpace, operation, log])setContrast(newContrast[, operation, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message
setDKL(newDKL[, operation])DEPRECATED since v1.60.05: Please use the color attribute
setDepth(newDepth[, operation, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message
setFillColor(color[, colorSpace, operation, log])Hard setter for fillColor, allows suppression of the log message, simultaneous colorSpace setting and calls update methods.
setForeColor(color[, colorSpace, operation, log])Hard setter for foreColor, allows suppression of the log message, simultaneous colorSpace setting and calls update methods.
setLMS(newLMS[, operation])DEPRECATED since v1.60.05: Please use the color attribute
setLineColor(color[, colorSpace, operation, log])setMask(value[, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message.
setOpacity(newOpacity[, operation, log])Hard setter for opacity, allows the suppression of log messages and calls the update method
setOri(newOri[, operation, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message
setPhase(value[, operation, log])DEPRECATED.
setPos(newPos[, operation, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message.
setRGB(newRGB[, operation, log])DEPRECATED since v1.60.05: Please use the color attribute
setSF(value[, operation, log])DEPRECATED.
setSize(newSize[, operation, units, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message
setTex(value[, log])DEPRECATED.
setUseShaders([value, log])Usually you can use ‘stim.attribute = value’ syntax instead, but use this method if you need to suppress the log message
updateColors()Placeholder method to update colours when set externally, for example updating the pallette attribute of a textbox
updateOpacity()Placeholder method to update colours when set externally, for example updating the pallette attribute of a textbox.
Attributes
autoDrawDetermines whether the stimulus should be automatically drawn on every frame flip.
autoLogWhether every change in this stimulus should be auto logged.
backColorAlternative way of setting fillColor
blendmodeThe OpenGL mode in which the stimulus is draw
borderColorcolorAlternative way of setting foreColor.
colorSpaceThe name of the color space currently being used
contrastA value that is simply multiplied by the color.
depthDEPRECATED, depth is now controlled simply by drawing order.
fillColorSet the fill color for the shape.
foreColorForeground color of the stimulus
interpolateWhether to interpolate (linearly) the texture in the stimulus.
lineColorAlternative way of setting borderColor.
maskThe alpha mask (forming the shape of the image).
maskParamsVarious types of input.
nameThe name (str) of the object to be using during logged messages about this stim.
opacityDetermines how visible the stimulus is relative to background.
oriThe orientation of the stimulus (in degrees).
phasePhase of the stimulus in each dimension of the texture.
posThe position of the center of the stimulus in the stimulus units
sfSpatial frequency of the grating texture
sizeThe size (width, height) of the stimulus in the stimulus units
texTexture to used on the stimulus as a grating (aka carrier)
texResPower-of-two int.
unitsUnits to use when drawing.
useShadersShould shaders be used to render the stimulus (typically leave as True)
verticesPixThis determines the coordinates of the vertices for the current stimulus in pixels, accounting for size, ori, pos and units
winThe
Windowobject in which the