set_color(3alleg4)

set_color3alleg4

Sets the specified palette entry to the specified rgb triplet. allegro game programming library.

Usage

#include <allegro.h>

void set_color(int index, const RGB *p);

Overview

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);

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.