Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config_display(0, 1, [0 0 0], [1 1 1], 'calibri', 22,6); %sets up display with default options, except that screen is windowed rather than full screen
- start_cogent; %Don't forget to also stop it at the end!
- cgloadlib; %lets us use lower level cogent functions including the mouse functions we use here
- warning('off','MATLAB:nargchk:deprecated')
- %%
- %FIXATION POINT
- %%forcus on red then focus on the rest
- settextstyle('calibri',25); %set font and size of font
- preparestring('Match the WRITTEN WORD to the COLOUR of the square',1);
- drawpict(1);
- clearpict(1);
- wait(5000)
- settextstyle('calibri',70); %set font and size of font
- preparestring('+',2); %use full stop as fixation point, buffer 2
- drawpict(2);
- clearpict(2);
- wait(4000)
- DesiredText='RED'
- TextColour=[1 0 0; 0 1 0; 0 0 1]
- DrawSquare(Desiredtext,LeftColour,RightColour,TextColour)
- % config_display(0, 1, [0 0 0], [1 1 1], 'calibri', 22,6); %sets up display with default options, except that screen is windowed rather than full screen
- % start_cogent; %Don't forget to also stop it at the end!
- %
- % cgloadlib; %lets us use lower level cogent functions including the mouse functions we use here
- % warning('off','MATLAB:nargchk:deprecated')
- % config_display(0,1, [0 0 0], [0 1 0], 'calibri', 22,6);
- % preparestring('red', 2);
- % drawpict(2);
- % wait(3000)
- % clearpict(2);
- % cgloadlib
- % cgopen(1,0,0,0)
- % cgscale(30)
- % cgalign('r','c')
- % cgpencol(1,0,0)
- % cgrect(-6,-4,7,7)
- % cgalign('l','c')
- % cgpencol(0,0,1)
- % cgrect(6,-4,7,7)
- % cgpencol(1,0,0)
- % cgfont('calibri',4)
- % cgtext(['RED'],0,9)
- % cgflip
- % wait(5000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement