File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 11function varargout = postInitializationSetup(varargin )
22 % varargout = postInitializatinSetup(varargin)
3-
3+
44 % generic function to finalize some set up after psychtoolbox has been
55 % initialized
6-
6+
77 cfg = deal(varargin{: });
8-
8+
99 cfg.dot.matrixWidth = cfg .screen .winWidth ;
10-
10+
1111 % Convert some values from degrees to pixels
1212 cfg.dot = degToPix(' size' , cfg .dot , cfg );
1313 cfg.dot = degToPix(' speed' , cfg .dot , cfg );
14-
14+
1515 % Get dot speeds in pixels per frame
1616 cfg.dot.speedPixPerFrame = cfg .dot .speedPix / cfg .screen .monitorRefresh ;
17-
17+
1818 cfg.aperture = degToPix(' xPos' , cfg .aperture , cfg );
19-
19+
2020 % dots are displayed on a square with a length in visual angle equal to the
2121 % field of view
2222 cfg.dot.number = round(cfg .dot .density * ...
2323 (cfg .dot .matrixWidth / cfg .screen .ppd )^2 );
24-
24+
2525 varargout = cfg ;
26-
27- end
26+
27+ end
You can’t perform that action at this time.
0 commit comments