|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T i
Length: 533 (0x215)
Types: TextFile
Names: »intrgb.frag«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5
└─⟦2ca9b63e1⟧ »./contrib-1/contrib-1.00«
└─⟦a8392fb20⟧
└─⟦this⟧ »contrib/examples/OReilly/Vol1/basicwin/color/intrgb.frag«
XStandardColormap \f(CWbest_map_info\fP;
unsigned long red, green, blue;
unsigned long pixelvalue;
int status;
status = \f(CWXGetStandardColormap\fP(display, \f(CWRootWindow\fP(display,
screen), &best_map_info, XA_RGB_BEST_MAP);
if (!status)
{
printf("%s: specified standard colormap not available",
argv[0]);
exit(-1);
}
pixelvalue = \f(CWbest_map_info\fP.base_pixel +
(red * \f(CWbest_map_info\fP.red_mult) +
(green * \f(CWbest_map_info\fP.green_mult) +
(blue * \f(CWbest_map_info\fP.blue_mult);