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

# exshade(3alleg)

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**(3alleg)](/BITMAP/3alleg.md), [**COLOR\_MAP**(3alleg)](/COLOR_MAP/3alleg.md), [**END\_OF\_MAIN**(3alleg)](/END_OF_MAIN/3alleg.md), [**PALETTE**(3alleg)](/PALETTE/3alleg.md), [**RGB**(3alleg)](/RGB/3alleg.md), [**RGB\_MAP**(3alleg)](/RGB_MAP/3alleg.md), [**SCREEN\_H**(3alleg)](/SCREEN_H/3alleg.md), [**SCREEN\_W**(3alleg)](/SCREEN_W/3alleg.md), [**allegro\_error**(3alleg)](/allegro_error/3alleg.md), [**allegro\_init**(3alleg)](/allegro_init/3alleg.md), [**allegro\_message**(3alleg)](/allegro_message/3alleg.md), [**blit**(3alleg)](/blit/3alleg.md), [**clear\_bitmap**(3alleg)](/clear_bitmap/3alleg.md), [**color\_map**(3alleg)](/color_map/3alleg.md), [**create\_bitmap**(3alleg)](/create_bitmap/3alleg.md), [**create\_light\_table**(3alleg)](/create_light_table/3alleg.md), [**create\_rgb\_table**(3alleg)](/create_rgb_table/3alleg.md), [**destroy\_bitmap**(3alleg)](/destroy_bitmap/3alleg.md), [**draw\_gouraud\_sprite**(3alleg)](/draw_gouraud_sprite/3alleg.md), [**font**(3alleg)](/font/3alleg.md), [**install\_keyboard**(3alleg)](/install_keyboard/3alleg.md), [**install\_mouse**(3alleg)](/install_mouse/3alleg.md), [**keypressed**(3alleg)](/keypressed/3alleg.md), [**line**(3alleg)](/line/3alleg.md), [**load\_bitmap**(3alleg)](/load_bitmap/3alleg.md), [**mouse\_x**(3alleg)](/mouse_x/3alleg.md), [**mouse\_y**(3alleg)](/mouse_y/3alleg.md), [**palette\_color**(3alleg)](/palette_color/3alleg.md), [**poll\_mouse**(3alleg)](/poll_mouse/3alleg.md), [**replace\_filename**(3alleg)](/replace_filename/3alleg.md), [**rgb\_map**(3alleg)](/rgb_map/3alleg.md), [**screen**(3alleg)](/screen/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**set\_palette**(3alleg)](/set_palette/3alleg.md), [**set\_trans\_blender**(3alleg)](/set_trans_blender/3alleg.md), [**show\_mouse**(3alleg)](/show_mouse/3alleg.md), [**textout\_ex**(3alleg)](/textout_ex/3alleg.md)
