From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30720 invoked from network); 24 Jun 1998 03:44:22 -0000 Received: from icarus.icarus.com (root@205.158.226.54) by mail2.redhat.com with SMTP; 24 Jun 1998 03:44:22 -0000 Received: from icarus (steve@localhost [127.0.0.1]) by icarus.icarus.com (8.8.7/8.8.5) with ESMTP id UAA15981 for ; Tue, 23 Jun 1998 20:44:17 -0700 Message-Id: <199806240344.UAA15981@icarus.icarus.com> X-Mailer: exmh version 2.0.2 To: axp-list@redhat.com Subject: [OFFTOPIC] Re: The new X In-Reply-To: Your message of "Tue, 23 Jun 1998 20:07:10 EDT." <19980623200710.U19844@xcski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Jun 1998 20:44:16 -0700 From: Stephen Williams ptomblin@xcski.com said: > I suspect what Windows does, and what X applications could easily do, > is to divide the entire color space up before hand into as many chunks > as your card would support, and then when an application requests a > color, gives it whichever of the pre-registered colours is the closest > match. That is exactly what the truecolor visual does under X. Try it. The results are mixed, although sure enough the colormap switching goes away. A color allocation will always succeed, but the closest color (that can be represented in 332) will be returned. ptomblin@xcski.com said: > But I'm sure my former collegues at Kodak could come up with something > better. "better" requires calculating a histogram of all the colors requested. A palette can be calculated from that, then the pixels can be mapped onto that calculated palette. But then, some application will display a photograph using a gazillion shades of pink and your green color scheme has left you with only 2 reds:-) Windows works because the desktop only uses a few colors that are known to exist in the M$ $tandard palette, and the applications that display images go through a *great* deal of effort to approximate and dither. High resolutions help. This is way off topic, I'll be quiet now. -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep."