Skip to content
Discussion options

You must be logged in to vote

There are a few different ways of doing this. One option is to create 'left' and 'right' versions of your images, where you add white space so that the image appears shifted to the left or right:

var test_stimuli = [
  { stimulus: "img/small_blue_circle_left.png", data: { test_part: 'test', correct_response: 'f', side: 'left' } },
  { stimulus: "img/small_red_triangle_right.png", data: { test_part: 'test', correct_response: 'j', side: 'right' } }
];

One annoying thing about this solution is that the size of the shift would be fixed (rather than e.g. a percentage of the screen width), and you'd have to edit your image files anytime you want to tweak the size of the shift.

Another option is…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by becky-gilbert
Comment options

You must be logged in to vote
2 replies
@InaQuadt
Comment options

@becky-gilbert
Comment options

Comment options

You must be logged in to vote
1 reply
@kafriebe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants