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)
- help: memory bitmap background image causing artifacts
- Allegro color bitmap
- KrampusHack 2020: Odd Results With Color Mapping Functions
- How to fix loading videos from zip that is in a path?
- still al_draw_text() problem
- al_draw_text problem
- Lag in the main loop
- Shader Puzzle aka Reverse Engineering cool effect
- Day and Night Cycles
Other recent discussions:
- Mixing bitmaps
- Controlling threads
- Allegro and OpenGL Drawing Problem
- How to draw pixels of bitmaps transparently upon collision
- Flashing word + waiting for a key to be pressed
- Text opacity
- Text opacity
- How to store rgb information of a pixel on a text file?
- Tint bitmap
- Colors behaving differently than expected