====== MakeCLUTColorEntry ====== Packs a color index and red, green, and blue values into a single word. ==== Synopsis ==== ''%%VDLEntry MakeCLUTColorEntry (uint8 index,uint8 r, uint8g,uint8 b)%%'' ==== Description ==== This macro takes four color-specification arguments and packs them together into a single 32-bit word. The color-entry word generated by ''%%MakeCLUTColorEntry()%%'' can be passed to calls such as [[:documentation:development:opera:pf25:ppgfldr:ggsfldr:gprfldr:01gpr065#xref17003|SetScreenColor]]''%%()%%'' which require this kind of argument. ==== Arguments ==== * **index** An unsigned byte specifying an index into a color palette, with a value in the range of 0-31 for normal colors and 32 for the background color. * **r** An unsigned byte specifying the red component of the color to be built, with a value in the range of 0-255. * **g** An unsigned byte specifying the green component of the color to be built, with a value in the range of 0-255. * **b** An unsigned byte specifying the blue component of the color to be built, with a value in the range of 0-255. ==== Return Value ==== The macro returns a 32-bit color entry value. ==== Implementation ==== Macro implemented in graphics.h V20. ==== Associated File ==== graphics.h ==== See Also ==== ''%%SetScreenColor%%''(),[[:documentation:development:opera:pf25:ppgfldr:ggsfldr:gprfldr:01gpr041#xref36080|MakeCLUTGreenEntry]](), [[:documentation:development:opera:pf25:ppgfldr:ggsfldr:gprfldr:01gpr042#xref20626|MakeCLUTRedEntry]](), [[:documentation:development:opera:pf25:ppgfldr:ggsfldr:gprfldr:01gpr039#xref38531|MakeCLUTBlueEntry]]()