

This value affects the fill (`fillColor`) and outline (`lineColor`) colors of the shape. Values between 1.0 and 0.0 will result in colors being blended with objects in the background. A value of 1.0 indicates fully opaque and 0.0 is fully transparent (therefore invisible). The default value for `ori` is 0.0 degrees. Positive values will rotate the line clockwise, while negative values will rotate counterclockwise. ori : float Initial orientation of the line in degrees about its origin. The default value is `1.0` which results in no scaling. Scaling can be changed by setting the `size` property after initialization. Providing negative values to `size` will cause the line to be mirrored. A single value (`float`) will apply uniform scaling, while an array (`sx`, `sy`) will result in anisotropic scaling in the horizontal (`sx`) and vertical (`sy`) direction. size : float or array_like Initial scale factor for adjusting the size of the line. The default value is `(0.0, 0.0)` which results in no translation. This can be updated after initialization by setting the `pos` property.

pos : array_like Initial translation (`x`, `y`) of the line on-screen relative to the origin located at the center of the window or buffer in `units`. This arguments may be removed in a future version. Please use `colorSpace` to set the line colorspace. These change how the values passed to `lineColor` are interpreted. lineColorSpace : str or None Colorspace to use for the line. If `None`, a fully transparent color is used which makes the line invisible. lineColor : array_like, str, :class:`~` or None Color of the line. This will affect how parameters and attributes `pos`, `size` and `radius` are interpreted. end : array_like Coordinate `(x, y)` of the end-point of the line. start : array_like Coordinate `(x, y)` of the starting point of the line.
Psychopy draw line windows#
In many cases, a stimulus instance cannot be drawn on different windows unless those windows share the same OpenGL context, which permits resources to be shared between them. The stimulus instance will allocate its required resources using that Windows context. (New in version 1.72.00) Parameters - win : :class:`~` Window this line is being drawn to. `Line` accepts all input parameters, that :class:`~` accepts, except for `vertices`, `closeShape` and `fillColor`. Class Line ( ShapeStim ): """Creates a Line between two points.
