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)
- 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(?)
- [a5] al_create_bitmap() not creating mipmap in OPENGL
- al_draw_soft_line
- Getting artefact when loading image
Other recent discussions:
- Rotate text with transformations
- Problem with al_draw_filled_circle()
- [Allegro 5.0.10] Lightning with blenders
- Best way for collision detection/bounding box collision
- Illegal Function Call
- Player class not recognized
- Best algorithm for shadow casting on a 2-D grid?
- Can't make bitmap tinted
- Text Transparency / RE:Bitmap Transparency
- bitmap transparency