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)
- Display stops updating if I change the backbuffer-- What am I doing wrong?
- [A5] Drawing a textured trapezoid (2D)
- Java + Allegro = jalleg?
- [A5] al_draw_text() not drawing a character
- Blit to Android display
- scores on-screen display
- Blit bitmap to display
- "al_put_pixel" not working
- Allegro 5... no al_draw_gouraud_bitmap() function?
Other recent discussions:
- Illegal Function Call
- Player class not recognized
- Unable to save to png..
- Passing objects via functions
- Blank Screen
- [A5] What's the current, proper way to use both 2-D and 3-D functions
- [A5] Draw a red light on a bitmap
- Floodfill...ish... math.
- Clearing bitmaps to transparency
- One function call cuts my FPS in half