-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtext_on_screen_vars.m
21 lines (18 loc) · 966 Bytes
/
text_on_screen_vars.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% define font and font size
Screen('TextSize', Sc.window, 13);Screen('TextFont', Sc.window, 'Myriad Pro');
% define instructions for confidence judgement
rTxt = cfg.instr.cjtext{1};
middleRT = cfg.instr.cjtext{2};
middleLT = cfg.instr.cjtext{3};
lTxt = cfg.instr.cjtext{4};
instr{1} = cfg.instr.instr{1};
instr{2} = cfg.instr.instr{2};
interval = {'LEFT' 'RIGHT'};
RTbounds = Screen('TextBounds',Sc.window,rTxt);
MRTbounds = Screen('TextBounds',Sc.window,middleRT);
MLTbounds = Screen('TextBounds',Sc.window,middleLT);
LTbounds = Screen('TextBounds',Sc.window,lTxt);
LintBounds = Screen('TextBounds',Sc.window,interval{1});
RintBounds = Screen('TextBounds',Sc.window,interval{2});
% define final decision prompt
fdTxt = cfg.instr.finaldecision{1};