Creates a Line between two points.
(New in version 1.72.00)
Rect accepts all input parameters, that ~psychopy.visual.ShapeStim accepts, except for vertices, closeShape and fillColor.
| Parameters : |
|
|---|
Draw the stimulus in its relevant window. You must call this method after every MyWin.flip() if you want the stimulus to appear on that frame and then update the screen again.
Add or remove a stimulus from the list of stimuli that will be automatically drawn on each flip
| Parameters : |
|
|---|
Turn on (or off) autoLogging for this stimulus.
| Parameters : |
|
|---|
For ShapeStim use setLineColor() or setFillColor()
Set the contrast of the stimulus
DEPRECATED since v1.60.05: Please use setColor
Changes the end point of the line. Argument should be a tuple, list or 2x1 array specifying the coordinates of the end point
Sets the color of the shape fill. See PatchStim.setColor() for further details of how to use this function.
Note that shapes where some vertices point inwards will usually not ‘fill’ correctly.
DEPRECATED since v1.60.05: Please use setFillColor()
DEPRECATED since v1.60.05: Please use setColor
Sets the color of the shape edge. See PatchStim.setColor() for further details of how to use this function.
DEPRECATED since v1.60.05: Please use setLineColor()
Set the stimulus orientation in degrees
Set the stimulus position in the specified (or inherited) units
DEPRECATED since v1.60.05: Please use setColor
Sets the size of the shape. Size is independent of the units of shape and will simply scale the shape’s vertices by the factor given. Use a tuple or list of two values to scale asymmetrically.
Changes the start point of the line. Argument should be
Set this stimulus to use shaders if possible.
Set the xy values of the vertices (relative to the centre of the field). Values should be:
- an array/list of Nx2 coordinates.