MATLAB Programming/Psychtoolbox/Screen Commands/DrawText

From Wikibooks, open books for an open world
< MATLAB Programming‎ | Psychtoolbox‎ | Screen Commands
Jump to navigation Jump to search


[newX,newY] = Screen(windowPtr,'DrawText',text,[x],[y],[color])

Draw text. text may include two-byte characters (e.g. Chinese). Default x y is current pen location. color is the CLUT index (scalar or [r g b] triplet) that you want to poke into each pixel; default produces black with the standard CLUT for this window's pixelSize. newX,newY return the final pen location.