al_map_rgba
ALLEGRO_COLOR al_map_rgba(
unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Introduced in 5.0.0
Convert r, g, b, a (ranging from 0-255) into an ALLEGRO_COLOR.
See also: al_map_rgb, al_map_rgba_f, al_map_rgb_f
Examples: ex_blend2, ex_drawpixels, ex_logo
Most helpful discussions:
- A5 Bitmap Fade In and Out (1)
- KrampusHack 2016
- [A5] Show & Hide window/display Cross-Platform ?
- Why some Shaders don't work !
- Coordinate systems
- Problem with events
- Allegro 5 - Bitmap Deferred Corruption(?)
- Rotate text with transformations
- How to draw transparency text
- "al_put_pixel" not working
Other recent discussions:
- How to use al_draw_soft_line function
- Major Memory Issue in Allegro 5 Project
- Allegro5, OpenGL contexts, and transparent windows
- Best way for collision detection/bounding box collision
- [A5] Masked drawing?
- Allegro 5... no al_draw_gouraud_bitmap() function?
- Combining Allegro 5.1.8 with OpenGL culling problems
- Characters missing after al_get_text_width()
- using allegro with RGB image array ?
- al_map_rgba vs. al_map_rgba_f