Ori ( float) – Initial orientation of the shape in degrees about its origin. If None is specified, the size will be set Value is provided, the width and height will be set to the same Size ( array_like, float, int or None) – Width and height of the shape as (w, h) or. The default value is (0.0, 0.0) which results in no This can be updated after initialization by setting the pos The origin located at the center of the window or buffer in units. Pos ( array_like) – Initial position ( x, y) of the shape on-screen relative to If True the first and last vertex willīe joined by an edge. GLU_TESS_WINDING_ODD if None is specified.ĬloseShape ( bool) – Close the shape’s outline. WindingRule ( GLenum or None) – Winding rule to use for tesselation, default is Vertices ( array_like) – Nx2 array of points (eg.,, , ). Transparent color is used which makes the fill or outline invisible.įillColor (array_like, str, Color or None) – Color of the shape outline and fill. LineColor (array_like, str, Color or None) – Color of the shape outline and fill. LineWidth ( float) – Width of the shape outline. This will affect how parameters andĪttributes pos, size and radius are interpreted.ĬolorSpace ( str) – Sets the colorspace, changing how values passed to lineColor and Units ( str) – Units to use when drawing. Unless those windows share the same OpenGL context, which permits In manyĬases, a stimulus instance cannot be drawn on different windows The stimulus instance willĪllocate its required resources using that Windows context. Win ( Window) – Window this shape is being drawn to. Is almost completely backwards compatible (see changelog). Cannot be set dynamically.Ĭhanged Nov 2015: v1.84.00. Only for self-crossing or multi-loop shapes. Tessellator winding rule (default: GLU_TESS_WINDING_ODD). WindingRule is an advanced feature to allow control over the GLU BordersĪnd contains() are not supported for multi-loop stimuli. Is a list of points (x,y), e.g., to define a shape with a hole. Vertices can be a string, giving the name of a known set of vertices,Īlthough “cross” is the only named shape available at present.Īdvanced shapes: vertices can also be a list of loops, where each loop Whole can be rotated, translated, or scaled dynamically Vertices can be changed on a frame-by-frame basis. closeShape cannot be changed dynamically, but individual By default, these areĪssumed to define a closed figure (polygon) set closeShape=False forĪ line. Vertices is typically a list of points (x,y). Shapes can be lines, polygons (concave, convex, self-crossing), or have ShapeStim ( win, units = '', colorSpace = 'rgb', fillColor = False, lineColor = False, lineWidth = 1.5, vertices = - 0.5, 0, 0, 0.5, 0.5, 0, windingRule = None, closeShape = True, pos = 0, 0, size = 1, anchor = None, ori = 0.0, opacity = 1.0, contrast = 1.0, depth = 0, interpolate = True, name = None, autoLog = None, autoDraw = False, color = False, lineRGB = False, fillRGB = False, fillColorSpace = None, lineColorSpace = None ) ¶ Whether every change in this stimulus should be auto logged.ĭetermines whether the stimulus should be automatically drawn on every frame flip.ĭeprecated, please use colorSpace to set color space for the entire objectĭeprecated, please use colorSpace to set color space for the entire object.ĭetails ¶ class. The name ( str) of the object to be using during logged messages about this stim. Legacy property for setting the fill color of a stimulus in RGB, instead use obj._fillColor.rgb ![]() Legacy property for setting the border color of a stimulus in RGB, instead use obj._borderColor.rgb If True the edge of the line will be anti-aliased. The orientation of the stimulus (in degrees).ĭetermines how visible the stimulus is relative to background.Ī value that is simply multiplied by the color.ĭEPRECATED, depth is now controlled simply by drawing order. The size (width, height) of the stimulus in the stimulus units The position of the center of the stimulus in the stimulus units Should the last vertex be automatically connected to the first? The name of the color space currently being usedĪ list of lists or a numpy array (Nx2) specifying xy positions of each vertex, relative to the center of the field. A class for arbitrary shapes defined as lists of vertices (x,y).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |