Skip to content

Commit a751603

Browse files
committed
add more background color options
1 parent da973e6 commit a751603

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devSandbox.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
% Init the structure that will contain PTB setup
2424
cfg = struct;
2525

26+
% Set some colors to be choosen as background
27+
cfg.white = [255 255 255];
28+
cfg.black = [ 0 0 0 ];
29+
cfg.grey = mean([cfg.black; cfg.white]);
30+
2631
% Set the PTB window background manually
27-
cfg.backgroundColor = [ 127 127 127 ];
32+
cfg.backgroundColor = cfg.grey;
2833

2934
% Init PTB, see the Sub-Functions below
3035
cfg = devSandbox_initPTB(cfg);

0 commit comments

Comments
 (0)