al_map_rgba_f
ALLEGRO_COLOR al_map_rgba_f(float r, float g, float b, float a)
Introduced in 5.0.0
Convert r, g, b, a (ranging from 0.0f-1.0f) into an ALLEGRO_COLOR.
See also: al_map_rgba, al_map_rgb, al_map_rgb_f
Examples: ex_bitmap_flip, ex_bitmap_target, ex_blend, ex_blend2, ex_blend_test, ex_blit, ex_display_options, ex_draw_bitmap, ex_expose, ex_haiku, ex_lines, ex_logo, ex_mixer_pp, ex_mouse_cursor, ex_prim, ex_resize, ex_rotate, ex_scale, ex_threads, ex_timedwait, ex_transform, ex_ttf
Most helpful discussions:
- Transparent bitmap (1)
- al_draw_tinted_bitmap() not working as expected (1)
- Problem with al_creat_bitmap
- Any way to make a transparent white primitive?
- Vivace extra points. Its there a better way of doing this one.
- Allegro color bitmap
- KrampusHack 2020: Odd Results With Color Mapping Functions
- Draw to bitmap failing
- Speed of clearing a working area on a bitmap
- Day and Night Cycles
Other recent discussions:
- Mixing bitmaps
- Help with blender and alpha masking
- Improving Performance on a Pi 3
- How to store rgb information of a pixel on a text file?
- Transparancy Difference on windows and ubuntu
- Complications when drawing FPS
- Further question regarding camera and projection transforms
- Lighting using too much cpu
- Scaled font print call?
- Allegro 5 - Bitmap Deferred Corruption(?)