# about screen(SetClut) - Windows

**URL:** <https://psychtoolbox.discourse.group/t/about-screen-setclut-windows/776>\
**Category:** Uncategorized\
**Created:** [May 16, 2004, 4:57pm UTC](https://psychtoolbox.discourse.group/t/about-screen-setclut-windows/776 "2004-05-16T16:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [May 16, 2004, 4:57pm UTC](https://psychtoolbox.discourse.group/t/about-screen-setclut-windows/776/1 "2004-05-16T16:57:07Z")

</div>

Hi,

&nbsp;

I tried to copy an image from a Matlab matrix onto the screen using Screen('PutImage') and changed the lookup table using Screen('SetClut'). This worked perfectly on the Mac platform, however, the changed lookup table didn't seem to apply to the image on the Windows platform. Can you please help me with this? I attached the code below.&nbsp;Thank you. 

&nbsp;

clear all; close all;

whichScreen=0;

[window, screenRect]=screen(whichScreen, 'OpenWindow', 0);

&nbsp;

onClut=(0:255)' \* [1 1 1];

offClut=zeros(256,3);

matlabClut=screen(window, 'GetClut');

testImage=ones(340,340)\*128;

&nbsp;

screen(window, 'SetClut', onClut);

screen(window, 'PutImage', testImage); % a gray square

getChar;

screen(window, 'SetClut', offClut);

screen(window, 'PutImage', testImage); % Mac: black screen;&nbsp;Win:&nbsp;still a gray square&nbsp;

getChar;

CmdWInToUpperLeft(window, matlabClut);

screen('CloseAll');

&nbsp;

&nbsp;

Regards,

Xu Cheng

&nbsp;
