A PsychoPy wrapper to create moving visual stimuli without loops.
Project description
StimPy
StimPy is a thin PsychoPy wrapper to simplify the creation of visual stimuli.
Installation
Use the package manager pip to install StimPy.
pip install stimpy
Usage
import stimpy as sp
circle = sp.visual.Circle(
size=(2, 2), fillColor=(1, 1, 1),
pos=sp.Animate([(-40, -20), (-40, 20), (40, 20), (40, -20)], [1, 1, 1, 1])
)
scene = sp.Scene(color=(-1, -1, -1), units="deg")
scene.add(circle, begin=0, dur=4)
win = sp.Window(distance=13, width=26)
trial = sp.Trial(scene, win=win)
trial.start()
trial.save_movie("example.mp4", fps=60)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stimpy-0.3.0.tar.gz
(10.0 kB
view details)
Built Distribution
stimpy-0.3.0-py3-none-any.whl
(12.1 kB
view details)
File details
Details for the file stimpy-0.3.0.tar.gz
.
File metadata
- Download URL: stimpy-0.3.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d8d669c0d7b37088c9d21a83d21f66886e01ed1f193fb8331520b1ca72c6b93 |
|
MD5 | 03f1a126d776b19c3be0e759451e47b3 |
|
BLAKE2b-256 | f9e2cb75d9526f29f182dc2123998b0ef06d827c6b90bf9ab75057b61e467a85 |
File details
Details for the file stimpy-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: stimpy-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d068009e9f620f631274e98d5db092ed6bfc5a15d48842a99c23b495c090b521 |
|
MD5 | 29bf77382182e6744b78a8cc41fbeb64 |
|
BLAKE2b-256 | af8304ee76fddfb767ccf7eb2f837938e4c355cf353dabc50fef9d696aa7f348 |