drawBreak(params, window, break_dyad, trial_num)
DRAWBREAK is called by various easyFunctions to occasionally insert a break between trials. The break text is drawn to the screen for either a specified duration or until a specified keypress is entered.
All arguments are required. params: params object from easyLaunch (can be empty) window: Psychtoolbox window pointer device: Psychtoolbox device (can be empty for numeric wait periods) break_dyad: A two-cell array containing the following elements in corresponding positions: (1) break frequency (after how many trials is a break presented?); (2) break duration (if a value) or keypress to clear break (if a key name). trial_num: A positive integer indicating the current trial number.