set_color

Prototypes:
Arguments:
Description:

This sets an absolute palette index to an absolute RGB value.

Complete Example:

#include "huc.h"

main()
{
  int c; /* set up a variable to hold the current color */
  for(c=0; c<512; c++) /* loop through all 512 available colors */
  {
    set_color(0, c); /* set the color */
    vsync(3); /* eliminates snow and slows down the program so results can be seen */
  }
}

See Also:

Palette Overview | Color Values