Skip to content

Commit d2cfcc7

Browse files
committed
add submodule update and make it easier to decide on dot matix size
1 parent 4347a32 commit d2cfcc7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

subfun/doDotMo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
% We assumed that zero is at the top left, but we want it to be
3434
% in the center, so shift the dots up and left, which just means
3535
% adding half of the screen width in pixel to both the x and y direction.
36-
thisEvent.dot.positions = (dots.positions - cfg.screen.winWidth / 2)';
36+
thisEvent.dot.positions = (dots.positions - cfg.dot.matrixWidth / 2)';
3737

3838
%% make textures
3939
dotTexture('make', cfg, thisEvent);

visualLocTanslational.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
%% Init the experiment
3434
[cfg] = initPTB(cfg);
3535

36+
cfg.dot.matrixWidth = cfg.screen.winHeight;
37+
3638
% Convert some values from degrees to pixels
3739
cfg.dot = degToPix('size', cfg.dot, cfg);
3840
cfg.dot = degToPix('speed', cfg.dot, cfg);

0 commit comments

Comments
 (0)