December 2012
Intermediate to advanced
631 pages
13h 10m
English
Alan W. Paeth, NeuralWare Inc., Pittsburgh, Pennsylvania
Reversing the colors of a frame buffer’s pixels is a common way to highlight a region. A useful reversal function provides color pairs that are visually distinct. On newer hardware, lookup tables are keyed by the window, introducing spatial dependence. This burdens the design of a best function. This chapter discusses a simple a priori solution that guarantees visually distinct color pairs, though their eventual appearance remains unknown to the algorithm. The typical use is in creating screen-wide, window-invariant tools such as system cursors or selection rectangles for display snapshots. The solution used in the Palette ...
Read now
Unlock full access