|
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 f
Length: 797 (0x31d) Types: TextFile Names: »fprgb.frag«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5 └─⟦2ca9b63e1⟧ »./contrib-1/contrib-1.00« └─⟦a8392fb20⟧ └─⟦this⟧ »contrib/examples/OReilly/Vol1/basicwin/color/fprgb.frag«
XStandardColormap \f(CWbest_map_info\fP; float red, green, blue; unsigned long pixelvalue; int status; .XX "XGetStandardColormap, example using" status = XGetStandardColormap(display, RootWindow(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 + ((unsigned long)(0.5 + (red * \f(CWbest_map_info\fP.red_max)) * \f(CWbest_map_info\fP.red_mult) + ((unsigned long)(0.5 + (green * \f(CWbest_map_info\fP.green_max)) * \f(CWbest_map_info\fP.green_mult) + ((unsigned long)(0.5 + (blue * \f(CWbest_map_info\fP.blue_max)) * \f(CWbest_map_info\fP.blue_mult);