set color

From Archaic Pixels
Jump to: navigation, search


set_color  prototypes   set_color int num int rgb ;  arguments   num the index of the palette entry to set 0-511 rgb the 9-bit rgb to set 0-511  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 ; slow down the program so results can be seen