al_unmap_rgb
void al_unmap_rgb(ALLEGRO_COLOR color,
unsigned char *r, unsigned char *g, unsigned char *b)
Introduced in 5.0.0
Retrieves components of an ALLEGRO_COLOR, ignoring alpha Components will range from 0-255.
See also: al_unmap_rgba, al_unmap_rgba_f, al_unmap_rgb_f
Examples: ex_draw
Most helpful discussions:
- [A5] al_get_pixel (2)
- Structs within structs, and how to assign them?
- Strange frame skipping
- Learning shaders, one and for all.
- Suggestions for optimization
- Draw rgb information from al_get_pixel with al_draw_text
- How to store rgb information of a pixel on a text file?
- upgrading tank war codebase to allegro 5
- Bitmaps and multi-threading
- Nine Patch - Drawing issue
Other recent discussions: