Skip to content

Commit

Permalink
bug fixes with size and location of raphael canvas
Browse files Browse the repository at this point in the history
also, show fixation throughout entire trial
  • Loading branch information
jodeleeuw committed Jul 7, 2014
1 parent a0113f7 commit 351542d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/jspsych-visual-search-circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
var hstimw = stimw / 2;

// fixation location
var fix_loc = [Math.floor(paper_size / 2 - trial.fixation_size[0]), Math.floor(paper_size / 2 - trial.fixation_size[1])];
var fix_loc = [Math.floor(paper_size / 2 - trial.fixation_size[0] / 2), Math.floor(paper_size / 2 - trial.fixation_size[1] / 2)];

// possible stimulus locations on the circle
var display_locs = [];
Expand All @@ -80,7 +80,7 @@
}

// get target to draw on
var paper = Raphael(centerx - diam / 2, centery - diam / 2, paper_size, paper_size);
var paper = Raphael(centerx - paper_size / 2, centery - paper_size / 2, paper_size, paper_size);

show_fixation();

Expand All @@ -91,7 +91,6 @@
// wait
setTimeout(function() {
// after wait is over
fixation.remove();
show_search_array();
}, trial.timing_fixation);
}
Expand Down

0 comments on commit 351542d

Please sign in to comment.