![]() ![]() ![]() v1.84.00: ShapeStim became BaseShapeStim. It is also retained in case backwards compatibility is needed. BaseShapeStim is currently used by ShapeStim and Aperture (for basic shapes). They can also be rotated (tOri(_)), translated (tPos(_)), and scaled (tSize(_)) like any other stimulus. Shapes can be outlines or filled, set lineColor and fillColor to a color name, or None. gl knownShapes = knownShapes = knownShapes class BaseShapeStim ( BaseVisualStim, ColorMixin, ContainerMixin ): """Create geometric (vector) shapes by defining vertex locations. # Shaders will work but require OpenGL2.0 drivers AND PyOpenGå…ƒ.0+ import pyglet import psychopy # so we can get the _path_ from psychopy import logging from lors import Color # tools must only be imported *after* event or MovieStim breaks on win32 # (JWP has no idea why!) # from import cm2pix, deg2pix from import ( attributeSetter, # logAttrib, setAttribute ) from import val2array from import ( BaseVisualStim, ColorMixin, ContainerMixin, WindowMixin ) # from import setColor import psychopy.visual from ntrib import tesselate pyglet. # Distributed under the terms of the GNU General Public License (GPL) import copy import numpy # Ensure setting pyglet.options to False is done prior to any # other calls to pyglet or pyglet submodules, otherwise it may not get picked # up by the pyglet GL engine and have no effect. #!/usr/bin/env python # -*- coding: utf-8 -*- """Create geometric (vector) shapes by defining vertex locations.""" # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |