Docs @ Psychtoolbox Wiki : DrawDots

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Screen('DrawDots')

PsychtoolboxScreen.{mex*,dll} subfunction

Usage
Screen('DrawDots', windowPtr, xy [,size] [,color] [,center] [,dot_type]);

Quickly draw an array of dots. "xy" is a two-row vector containing the x and y
coordinates of the dot centers, relative to "center" (default center is [0 0]).
"size" is the width of each dot in pixels (default is 1). Instead of a common
size for all dots you can also provide a vector which defines a different dot
size for each dot. "color" is the the clut index (scalar or [r g b a] vector)
that you want to poke into each dot pixel (default is black). Instead of a
single "color" you can also provide a 3 or 4 row vector,which specifies an
individual RGB or RGBA color for each corresponding point."dot_type" is a flag
that determines what type of dot is drawn: 0 (default) squares, 1 circles (with
anti-aliasing), 2 circles (with high-quality anti-aliasing, if supported by your
hardware). If you use dot_type = 1 you'll also need to set a proper blending
mode with the Screen('BlendFunction') command!


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