psychopy/psychopy — pull request #83 by maebert (2011-11-08 18:58:58+00:00)
Title: visual.ShapeStim patched to respect size attribute

Basically, the `size` of a `ShapeStim` will now be a scalar transformation of its vertices. In other words, size is independent of the `units` and will scale the vertices either symmetrically (if `size` is an int or float) or asymmetrically (if size is a tuple-like structure with two elements). The core of the implementation is to do

```python
self._verticesRendered = self._verticesRendered * self.size
```

at the end of `ShapeStim._calcVerticesRendered`, which will work iff `size` is a `numpy.array` (which it will be when set with either the `__init__` or the newly added ``setSize(...)`.