Drawing a small patch for synchronization with optical sensor

Hi, I have already had visual stimuli with psychtoolbox.
I want to add a black or white patch to register the timestamp of stimuli start or end to be detected by an optical sensor.

I tried Drawtexture but did not get.
Please feel free to give some examples of getting patch like this.


Screen(‘FillRect’) should be all you need