# Clut size

**URL:** <https://psychtoolbox.discourse.group/t/clut-size/765>\
**Category:** Uncategorized\
**Created:** [June 7, 2004, 9:09pm UTC](https://psychtoolbox.discourse.group/t/clut-size/765 "2004-06-07T21:09:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin\_guise](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kevin\_guise](https://psychtoolbox.discourse.group/u/kevin_guise)\
**Post date:** [June 7, 2004, 9:09pm UTC](https://psychtoolbox.discourse.group/t/clut-size/765/1 "2004-06-07T21:09:52Z")

</div>

I'm new to the psychtoolbox so this may be a bit of an elementary question; I apologize in advance. Is it possible to have a clut size greater than 256 gun combinations? If not, is this to assume that the greatest color depth you can display images at is 256? . Secondly, I am having difficulty compiling c++ code using matlabs lcc compiler. The help file for the compiler says that the correct syntax is \>mex sourcefile header library. I always get an error saying sourcefile.dll is of an unkown type.(note sourcefile.dll doesn't exist, library.dll does, which is listed in the command line.)  
Thanks for your time and help.  
  
note: I'm running matlab 6.5 rel 13 on windows 98 service pack 2 with an nvida gforce 2 video card.  
  
Best Regards,  
Kevin Guise

---

<div class="post-metadata">

**Author:** ![jsbenjamins](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jsbenjamins](https://psychtoolbox.discourse.group/u/jsbenjamins)\
**Post date:** [June 9, 2004, 6:41am UTC](https://psychtoolbox.discourse.group/t/clut-size/765/2 "2004-06-09T06:41:49Z")

</div>

Hi Kevin,  
  
The answer to your colour question is two-fold: yes, you can get   
greater than 8 bits colour depth, and no, you cannot enter more than   
256 gun combinations in the clut. So colour depth can be set to   
greater than 8 bits (the values in the clut), but clut size cannot be   
greater than 256 (number of clut entries).   
  
The question about the compiler I cannot answer, sorry.   
  
A note about your note: it may be that your NVidea GeForce 2 card   
supports ten bits graphics (though I can remember a colleague here   
who has a similar NVidea card and cannot use 10 bit graphics), but   
that does not automatically mean you can use that option. That's   
dependent on drivers etc. Check your manufacturer website for that.   
If you want to test if you can use 10 bits graphics in PTB, I can   
send you a simple m-file I wrote.   
  
best regards  
Jeroen Benjamins  
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), Kevin Guise \<Guisek1@m...\> wrote:  
> \> I'm new to the psychtoolbox so this may be a bit of an elementary   
> question; I apologize in advance. Is it possible to have a clut size   
> greater than 256 gun combinations? If not, is this to assume that the   
> greatest color depth you can display images at is 256? . Secondly, I   
> am having difficulty compiling c++ code using matlabs lcc compiler.   
> The help file for the compiler says that the correct syntax is \>mex   
> sourcefile header library. I always get an error saying   
> sourcefile.dll is of an unkown type.(note sourcefile.dll doesn't   
> exist, library.dll does, which is listed in the command line.)  
> \> Thanks for your time and help.  
> \>   
> \> note: I'm running matlab 6.5 rel 13 on windows 98 service pack 2   
> with an nvida gforce 2 video card.  
> \>   
> \> Best Regards,  
> \> Kevin Guise
