• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

convert clut #8 to rgb 332 rrrgggbb

WMW8142

New member
Hello, I am working with System 7.5.3 and Think C 7.0, with Basilisk Emulator (Mac LC 68020 ).
I have changed the system to 8 bit colours with SetDepth(pGetMainDevice, 8, 1, 1); and I get the clut #8 colour table.
I can convert the 256 indexed colours (8 bit) from photoshop to rgb 332 (rrrgggbb), but
how can I display the images in c with the clut #8 colour table on screen.
How can I convert rgb 332 to clut #8 Color Table?
Thanks for help.
 
Top