Advertisement
Guest User

Template

a guest
Dec 8th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. 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
  2. start_cogent; %Don't forget to also stop it at the end!
  3.  
  4. cgloadlib; %lets us use lower level cogent functions including the mouse functions we use here
  5.  
  6. warning('off','MATLAB:nargchk:deprecated')
  7. %%
  8. %FIXATION POINT
  9.  
  10. %%forcus on red then focus on the rest
  11.  
  12. settextstyle('calibri',25); %set font and size of font
  13. preparestring('Match the WRITTEN WORD to the COLOUR of the square',1);
  14. drawpict(1);
  15. clearpict(1);
  16. wait(5000)
  17. settextstyle('calibri',70); %set font and size of font
  18. preparestring('+',2); %use full stop as fixation point, buffer 2
  19. drawpict(2);
  20. clearpict(2);
  21. wait(4000)
  22. DesiredText='RED'
  23. TextColour=[1 0 0; 0 1 0; 0 0 1]
  24. DrawSquare(Desiredtext,LeftColour,RightColour,TextColour)
  25.  
  26.  
  27.  
  28.  
  29. % 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
  30. % start_cogent; %Don't forget to also stop it at the end!
  31. %
  32. % cgloadlib; %lets us use lower level cogent functions including the mouse functions we use here
  33.  
  34. % warning('off','MATLAB:nargchk:deprecated')
  35. % config_display(0,1, [0 0 0], [0 1 0], 'calibri', 22,6);
  36. % preparestring('red', 2);
  37. % drawpict(2);
  38. % wait(3000)
  39. % clearpict(2);
  40.  
  41. % cgloadlib
  42. % cgopen(1,0,0,0)
  43. % cgscale(30)
  44. % cgalign('r','c')
  45. % cgpencol(1,0,0)
  46. % cgrect(-6,-4,7,7)
  47. % cgalign('l','c')
  48. % cgpencol(0,0,1)
  49. % cgrect(6,-4,7,7)
  50. % cgpencol(1,0,0)
  51. % cgfont('calibri',4)
  52. % cgtext(['RED'],0,9)
  53. % cgflip
  54. % wait(5000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement