---
name: "_set_color"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/_set_color/3alleg4"
---

# \_set\_color(3alleg4)

Inline version of set\_color(). Allegro game programming library.

## NAME

\_set\_color - Inline version of set\_color(). Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void \_set\_color(int index, const RGB \*p);**

## DESCRIPTION

This is an inline version of set\_color(), intended for use in the vertical retrace simulator callback function (retrace\_proc, which is now deprecated).

If you really must use \_set\_color from retrace\_proc, note that it should only be used under DOS, in VGA mode 13h and mode-X. Some SVGA chipsets aren't VGA compatible (set\_color() and set\_palette() will use VESA calls on these cards, but \_set\_color() doesn't know about that).

## SEE ALSO

**set\_color**(3alleg4), **set\_gfx\_mode**(3alleg4), **ex3buf**(3alleg4)
