Jump to content

MATLAB Programming/Psychtoolbox/Screen Commands/FillPoly

From Wikibooks, open books for an open world

Usage:

Screen(windowPtr,'FillPoly',[color],pointList)

Fill polygon. color is the clut index (scalar or [r g b] triplet) that you want to poke into each pixel; default produces white with the standard CLUT for this window's pixelSize. pointList is a matrix: each row specifies the (x,y) coordinates of a vertex.