---
name: "draw_lit_rle_sprite"
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/draw_lit_rle_sprite/3alleg4"
---

# draw\_lit\_rle\_sprite(3alleg4)

Draws a tinted RLE sprite. Allegro game programming library.

## NAME

draw\_lit\_rle\_sprite - Draws a tinted RLE sprite. Allegro game programming library.

## SYNOPSIS

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

**void draw\_lit\_rle\_sprite(BITMAP \*bmp, const RLE\_SPRITE \*sprite,** **int x, y, color);**

## DESCRIPTION

Tinted version of draw\_rle\_sprite(). See the description of draw\_lit\_sprite(). This must only be used after you have set up the color  mapping table (for 256-color modes) or blender functions (for truecolor  modes). Example:

```
   /* Some one time initialisation code. */
   COLOR_MAP global_light_table;
   create_light_table(&global_trans_table, my_palette,
                      10, 10, 60, NULL);
   ...
   if (get_color_depth() == 8)
      color_map = &global_light_table;
   else
      set_trans_blender(40, 40, 255, 255);
   /* Lit the cape with a blueish light. */
   draw_lit_rle_sprite(buffer, rle_colored_cape, x, y, 64);
```

## SEE ALSO

**draw\_rle\_sprite**(3alleg4), **draw\_trans\_rle\_sprite**(3alleg4), **draw\_lit\_sprite**(3alleg4), **color\_map**(3alleg4), **set\_trans\_blender**(3alleg4), **bitmap\_mask\_color**(3alleg4)
