.\" Generated by the Allegro makedoc utility .TH create_rgb_table 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME create_rgb_table \- Generates an RGB mapping table with lookup data for a palette. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void create_rgb_table(RGB_MAP *table, const PALETTE pal, .B void (*callback)(int pos)); .SH DESCRIPTION Fills the specified RGB mapping table with lookup data for the specified palette. If the callback function is not NULL, it will be called 256 times during the calculation, allowing you to display a progress indicator. Example: .nf RGB_MAP rgb_table; create_rgb_table(&rgb_table, palette, NULL); rgb_map = &rgb_table; .fi .SH SEE ALSO .BR rgb_map (3alleg4), .BR ex3d (3alleg4), .BR excolmap (3alleg4), .BR exrgbhsv (3alleg4), .BR exshade (3alleg4), .BR extrans (3alleg4)