---
name: "_set_color"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/_set_color"
---

# \_set\_color(3alleg)

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**(3alleg)](/set_color/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**ex3buf**(3alleg)](/ex3buf/3alleg.md)
