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

# exshade(3alleg4)

Gouraud shaded sprites. Allegro game programming library.

## NAME

exshade - Gouraud shaded sprites. Allegro game programming library.

## SYNOPSIS

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

**Example exshade**

## DESCRIPTION

This program demonstrates how to draw Gouraud shaded (lit) sprites.  In an apparently black screen, a planet like sprite is drawn close to the middle of the screen. In a similar way to how the first test of extrans works, you move the cursor on the screen with the mouse. Attached to this mouse you can imagine a virtual spotlight illuminating the scene around. Depending on where the mouse is, the Gouraud shaded sprite will show the direction of the light.

## SEE ALSO

**BITMAP**(3alleg4), **COLOR\_MAP**(3alleg4), **END\_OF\_MAIN**(3alleg4), **PALETTE**(3alleg4), **RGB**(3alleg4), **RGB\_MAP**(3alleg4), **SCREEN\_H**(3alleg4), **SCREEN\_W**(3alleg4), **allegro\_error**(3alleg4), **allegro\_init**(3alleg4), **allegro\_message**(3alleg4), **blit**(3alleg4), **clear\_bitmap**(3alleg4), **color\_map**(3alleg4), **create\_bitmap**(3alleg4), **create\_light\_table**(3alleg4), **create\_rgb\_table**(3alleg4), **destroy\_bitmap**(3alleg4), **draw\_gouraud\_sprite**(3alleg4), **font**(3alleg4), **install\_keyboard**(3alleg4), **install\_mouse**(3alleg4), **keypressed**(3alleg4), **line**(3alleg4), **load\_bitmap**(3alleg4), **mouse\_x**(3alleg4), **mouse\_y**(3alleg4), **palette\_color**(3alleg4), **poll\_mouse**(3alleg4), **replace\_filename**(3alleg4), **rgb\_map**(3alleg4), **screen**(3alleg4), **set\_gfx\_mode**(3alleg4), **set\_palette**(3alleg4), **set\_trans\_blender**(3alleg4), **show\_mouse**(3alleg4), **textout\_ex**(3alleg4)
