lansd@godzilla.ele.toronto.edu (Robert Lansdale) (03/22/88)
This is directed at programmers who have done colour graphics on X11 (I guess X10 is very similar). I have been developing a 3-d graphics package over the last several months for a SUN 3/(50-160) with three Matrox boards hanging off it and running X10/X11. It allows three colour modes with the Matrox: - TRUE colour (24 bit rgb across the 3 boards) - 256 colours from a 256 entry colourmap (3-3-2 mapping) using one Matrox board. - 256 levels of grey-scale using the 256 entry colourmap for a single Matrox board. As far as X-Windows is concerned , my X11 driver only supports monochrome graphics currently, but has the hooks in it to allocate individual colors (ala 'ico.c'). My question: does anyone have any example code for X11 that will emulate the above three operational colour modes as close as possible (for a colour SUN3/160). In particular, some code that allocates as many entries in the hardware colurmap as possible and fill it with some rgb colour model or some grey-scale mapping. (I'm a little confused about creating an approximate colourmap from a variable number of colour cells - ideally I would just like to get 256 colourmap entries and fill it with a 3-3-2 map). (This is my first attempt at writing a proper graphics package so please bear with me!). -- --------------------------------------------------------------------- UUCP: {decvax,ihnp4,linus,utzoo,uw-beaver}!utcsri!godzilla!lansd ARPA: lansd%godzilla.ele.toronto.edu@relay.cs.net CSNET: lansd@godzilla.ele.toronto.edu