Docs @ Psychtoolbox Wiki : WhiteIndex

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

WhiteIndex

PsychtoolboxPsychOneliners

color=WhiteIndex(windowPtrOrScreenNumber)
Returns the CLUT index to produce white at the current screen depth,
assuming a standard color lookup table for that depth. E.g.
white=WhiteIndex(w);
Screen(w,'FillRect',white);

See BlackIndex.

When the screen is 1 to 8 bit mode, the Macintosh OS always makes the
first clut element white and the last black. In 16 or 32 bit mode the
clut goes from black to white. These CLUT conventions can be overridden
by Screen 'SetClut', which makes a direct call to the video driver,
bypassing the Mac OS, allowing you to impose any CLUT whatsoever.




Path   Retrieve current version of WhiteIndex.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/WhiteIndex.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 6.1636 seconds