labellobi.blogg.se

Psychopy draw rectangle
Psychopy draw rectangle







**kwargs Additional arguments passed into `()` Returns - In-place modification of the PsychoPy window (No explicit return). adjust_height : bool If set to True, the height of the rectangle can be adjusted to the height and width of the window. adjust_width : bool If set to True, the width of the rectangle can be adjusted to the height and width of the window. alpha : float The opacity of the rectangle relative to the background, from 1.0 (opaque) to 0.0 (transparent).

psychopy draw rectangle

outline_color : Union The outline color of the rectangle as single string value or list, in which colorSpace='rgb255' argument has to be added. outline : float The width of the outline of the rectangle. color : Union The fill color of the rectangle as single string value or list, in which colorSpace='rgb255' argument has to be added. rotate : float The orientation of the rectangle in degrees, 0 being vertical and positive values rotating clockwise. size_height : float The height of the rectangle. size_width : float The width of the rectangle. y : float y-coordinates of the center of the rectangle, from -1 to 1. x : float x-coordinates of the center of the rectangle, from -1 to 1. Parameters - window: object A PsychoPy window for displaying one or more stimuli. See the PsychoPy documentation for more information (). The purpose of this wrapper is to have consistent behaviour for functions that are based on the different backends (e.g., PIL, PsychoPy). The difference lies within the names of the arguments and the values that they take (e.g., we use a consistent x-y plane for the screen "space" with 0 as the center, instead of pixels starting from the corner).

psychopy draw rectangle

It is essentially a wrapper around PsychoPy `()`. This function is intended to create lines similar to `image_rectangle()` within PsychoPy. The `*_rectangle` functions are meant to facilitate the creation of primitive shapes, in this case, rectangle(s), that can be assembled into illusory stimuli. Def psychopy_rectangle ( window, x = 0, y = 0, size_width = 1, size_height = 1, rotate = 0, color = "black", outline = 0, outline_color = "black", alpha = 1, adjust_width = False, adjust_height = False, ** kwargs, ): """ Creates a PsychoPy stimulus of a rectangle.









Psychopy draw rectangle