Flash Lag Effect

37 views
Skip to first unread message

Siddharth Mehrotra

unread,
Feb 18, 2016, 3:31:50 AM2/18/16
to psychopy-users

Hello all,

I am new to Psychopy and willing to learn about it. I want to replicate the flash lag experiment that is shown in below link. I surfed across the internet, but I couldn't find how to make moving dot.


Kindly help in this regard.

Thanks,
Siddharth.


Michael MacAskill

unread,
Feb 18, 2016, 4:19:50 AM2/18/16
to psychop...@googlegroups.com
Dear Siddarth,

Create a circle stimulus and then have its position change dynamically as a function of time.

e.g. there is a variable called t which represents the time in seconds since the start of the trial. So you could put an equation like this in the stimulus' [x, y] position field so that it moves in a circle:

[cos(t * some_speed_factor) * radius, sin(t * some_speed_factor) * radius]

or to just move rightwards in a horizontal direction:

[(t * some_speed_factor) - start_position, 0]

Set the position field to update on every frame.

Regards,

Michael
--
Michael R. MacAskill, PhD 66 Stewart St
Research Director, Christchurch 8011
New Zealand Brain Research Institute NEW ZEALAND

Senior Research Fellow, michael....@nzbri.org
Te Whare Wānanga o Otāgo, Otautahi Ph: +64 3 3786 072
University of Otago, Christchurch http://www.nzbri.org/macaskill

Siddharth Mehrotra

unread,
Feb 19, 2016, 2:06:33 AM2/19/16
to psychopy-users
Hello Michael,

Thanks for responding. It really worked. :)

Can you please briefly guide me how can i print "You were off by <<some number>> pixels" as depicted in experiment.


Regards,
Siddharth.
Reply all
Reply to author
Forward
0 new messages