al_map_rgb_f
ALLEGRO_COLOR al_map_rgb_f(float r, float g, float b)
Introduced in 5.0.0
Convert r, g, b, (ranging from 0.0f-1.0f) into an ALLEGRO_COLOR, using 1.0f for alpha.
See also: al_map_rgba, al_map_rgb, al_map_rgba_f
Examples: ex_bitmap, ex_bitmap_flip, ex_blend, ex_color, ex_disable_screensaver, ex_display_options, ex_draw, ex_drawpixels, ex_draw_bitmap, ex_filter, ex_font_justify, ex_fs_window, ex_icon, ex_lines, ex_lockbitmap, ex_logo, ex_mixer_pp, ex_mouse_events, ex_multisample, ex_pixelformat, ex_premulalpha, ex_prim, ex_threads, ex_timer, ex_transform, ex_vsync, ex_warp_mouse
Most helpful discussions:
- al_draw_line failure (1)
- Struct with a #define in it
- Vivace extra points. Its there a better way of doing this one.
- sorry, unimplemented: non-trivial designated initializers
- Black stripe with menus on Windows
- Mipmap causing texture bleeding
- Allegro color bitmap
- letters are rendered in their seperated form, this may require glyph hook maybe?
- Icon on Mac
- Draw to bitmap failing
Other recent discussions:
- Speed of clearing a working area on a bitmap
- Can I Draw Scaled Text?
- Single-pixel precision issues with GTX 500 series
- First person camera using transformations
- al_uninstall_system excutes a function called "shutdown" if present
- Day and Night Cycles
- Implementing a simple skybox.
- Question about ALLEGRO_FULLSCREEN_WINDOW
- [A5] Trying to understand transformations
- Problem with ALLEGRO_FULLSCREEN_WINDOW and multi monitor