Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

set_color - Sets the specified palette entry to the specified RGB triplet. Allegro game programming

Description

       Sets the specified palette entry to the specified RGB triplet. Unlike the other  palette  functions  this
       doesn't  do  any  retrace synchronisation, so you should call vsync() before it to prevent snow problems.
       Example:

          RGB rgb;
          ...
          vsync();
          set_color(192, &rgb);

Name

       set_color  -  Sets  the  specified  palette  entry to the specified RGB triplet. Allegro game programming
       library.

See Also

set_palette(3alleg4),  get_color(3alleg4),  _set_color(3alleg4),   ex12bit(3alleg4),   exrgbhsv(3alleg4),
       exscroll(3alleg4)

Allegro                                           version 4.4.3                               set_color(3alleg4)

Synopsis

#include<allegro.h>voidset_color(intindex,constRGB*p);

See Also